2021-06-15 06:42:55 +00:00
|
|
|
{% load static %}
|
2016-04-17 22:25:46 +00:00
|
|
|
{% load i18n %}
|
|
|
|
<html>
|
2020-06-24 09:39:32 +00:00
|
|
|
|
2016-04-17 22:25:46 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2019-06-24 11:26:25 +00:00
|
|
|
<link rel="shortcut icon" href="{% static "favicon.ico" %}">
|
2016-04-17 22:25:46 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2020-05-19 16:53:54 +00:00
|
|
|
<link rel="stylesheet" href="{% static "css/wvc-main.min.css" %}" id="wvc_css">
|
2017-06-06 12:49:11 +00:00
|
|
|
<link href="{% static "css/webvirtcloud.css" %}" rel="stylesheet">
|
2016-04-17 22:25:46 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
#main_container {
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
max-width: none;
|
|
|
|
height: 100%;
|
2020-06-24 09:39:32 +00:00
|
|
|
background-color: #494949;
|
|
|
|
border-bottom-right-radius: 850px 600px;
|
2016-04-17 22:25:46 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#main_container canvas {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2020-06-24 09:39:32 +00:00
|
|
|
{% block head %}{% endblock %}
|
2016-04-17 22:25:46 +00:00
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2020-06-24 09:39:32 +00:00
|
|
|
<div id='main_container' class="container">
|
|
|
|
<nav class="navbar navbar-expand-md navbar-dark bg-primary" arial-label="console navbar">
|
|
|
|
<div class="container">
|
|
|
|
<a class="navbar-brand">{{ instance.name }}</a>
|
2021-07-07 11:12:38 +00:00
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse"
|
2020-06-24 09:39:32 +00:00
|
|
|
aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
2020-05-19 16:53:54 +00:00
|
|
|
|
2020-06-24 09:39:32 +00:00
|
|
|
<div class="collapse navbar-collapse">
|
2021-07-07 11:12:38 +00:00
|
|
|
<ul class="navbar-nav me-auto my-2 my-lg-0 navbar-nav-scroll" style="--bs-scroll-height: 100px;">
|
2020-06-24 09:39:32 +00:00
|
|
|
<li class="nav-item dropdown">
|
2021-07-07 11:12:38 +00:00
|
|
|
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown" role="button"
|
|
|
|
id="dropdownMenuLink" aria-haspopup="true" aria-expanded="false">
|
2020-06-24 09:39:32 +00:00
|
|
|
{% trans "Send key(s)" %}
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
|
|
|
|
<a class="dropdown-item" id="ctrlaltdel" href='#'>Ctrl+Alt+Del</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf1" href='#'>Ctrl+Alt+F1</a>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf2" href='#'>Ctrl+Alt+F2</a>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf3" href='#'>Ctrl+Alt+F3</a>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf4" href='#'>Ctrl+Alt+F4</a>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf5" href='#'>Ctrl+Alt+F5</a>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf6" href='#'>Ctrl+Alt+F6</a>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf7" href='#'>Ctrl+Alt+F7</a>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf8" href='#'>Ctrl+Alt+F8</a>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf9" href='#'>Ctrl+Alt+F9</a>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf10" href='#'>Ctrl+Alt+F10</a>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf11" href='#'>Ctrl+Alt+F11</a>
|
|
|
|
<a class="dropdown-item" id="ctrlaltf12" href='#'>Ctrl+Alt+F12</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item" id="fullscreen_button">
|
|
|
|
<a class="nav-link" href='#'>{% trans "Fullscreen" %}</a>
|
|
|
|
</li>
|
|
|
|
{% block navbarmenu %}{% endblock %}
|
|
|
|
</ul>
|
2020-05-19 16:53:54 +00:00
|
|
|
</div>
|
2020-06-24 09:39:32 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
<script src="{% static "js/jquery.js" %}"></script>
|
|
|
|
<script src="{% static "js/bootstrap.bundle.min.js" %}"></script>
|
2016-04-17 22:25:46 +00:00
|
|
|
|
2020-06-24 09:39:32 +00:00
|
|
|
<script>
|
|
|
|
function log_message(msg, type) {
|
|
|
|
var exist = $('#status').is('div');
|
2021-07-07 11:12:38 +00:00
|
|
|
status_div = $('<div id="status" class="alert alert-' + type + ' role="alert"><button type="button" class="btn-close" aria-label="Close"></button>' + msg + '</div>');
|
2020-06-24 09:39:32 +00:00
|
|
|
if (exist) {
|
|
|
|
$('#status').remove();
|
|
|
|
$('body').prepend(status_div);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
status_div.hide();
|
|
|
|
$('body').prepend(status_div);
|
|
|
|
status_div.fadeIn(200);
|
|
|
|
}
|
|
|
|
if (type != 'danger') {
|
|
|
|
status_div.delay(3000).fadeOut(200);
|
|
|
|
}
|
2016-04-17 22:25:46 +00:00
|
|
|
}
|
|
|
|
|
2020-06-24 09:39:32 +00:00
|
|
|
function log_error(msg) {
|
|
|
|
log_message(msg, 'danger');
|
|
|
|
}
|
2016-04-17 22:25:46 +00:00
|
|
|
|
2020-06-24 09:39:32 +00:00
|
|
|
function log_info(msg) {
|
|
|
|
log_message(msg, 'info');
|
|
|
|
}
|
|
|
|
{% if console_error %}
|
2018-05-31 09:38:03 +00:00
|
|
|
log_error('{{ console_error|escapejs }}');
|
2020-06-24 09:39:32 +00:00
|
|
|
{% endif %}
|
|
|
|
</script>
|
2016-04-17 22:25:46 +00:00
|
|
|
|
2020-06-24 09:39:32 +00:00
|
|
|
{% block foot %}{% endblock %}
|
2016-04-17 22:25:46 +00:00
|
|
|
</body>
|
2020-06-24 09:39:32 +00:00
|
|
|
|
|
|
|
</html>
|