1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 12:04:15 +00:00

spice config corrections

This commit is contained in:
catborise 2018-08-14 16:49:25 +03:00
parent 0dd2eafc97
commit 2a5a761f05
2 changed files with 6 additions and 4 deletions

View file

@ -63,7 +63,7 @@
{% block content %} {% block content %}
<div id="login"> <div id="login" hidden>
<span class="logo">SPICE</span> <span class="logo">SPICE</span>
<label for="host">Host:</label> <input type='text' id='host' value='{{ ws_host }}'> <!-- localhost --> <label for="host">Host:</label> <input type='text' id='host' value='{{ ws_host }}'> <!-- localhost -->
<label for="port">Port:</label> <input type='text' id='port' value='{{ ws_port }}'> <label for="port">Port:</label> <input type='text' id='port' value='{{ ws_port }}'>
@ -213,7 +213,7 @@
} }
function fullscreen() { function fullscreen() {
var screen=document.getElementById('spice-area'); var screen=document.getElementById('spice-screen?');
if(screen.requestFullscreen) { if(screen.requestFullscreen) {
screen.requestFullscreen(); screen.requestFullscreen();
} else if(screen.mozRequestFullScreen) { } else if(screen.mozRequestFullScreen) {

View file

@ -27,7 +27,7 @@
{% load staticfiles %} {% load staticfiles %}
{% block head %} {% block head %}
<title>Spice Javascript client</title> <title>WebVirtCloud - Spice - Lite</title>
<script src="{% static "js/spice-html5/spicearraybuffer.js" %}"></script> <script src="{% static "js/spice-html5/spicearraybuffer.js" %}"></script>
<script src="{% static "js/spice-html5/enums.js" %}"></script> <script src="{% static "js/spice-html5/enums.js" %}"></script>
<script src="{% static "js/spice-html5/atKeynames.js" %}"></script> <script src="{% static "js/spice-html5/atKeynames.js" %}"></script>
@ -140,6 +140,8 @@
//password = spice_query_var('password', ''); //password = spice_query_var('password', '');
password = '{{ console_passwd | safe }}'; password = '{{ console_passwd | safe }}';
if (password === 'None') password = '';
path = spice_query_var('path', 'websockify'); path = spice_query_var('path', 'websockify');
if ((!host) || (!port)) { if ((!host) || (!port)) {
@ -233,7 +235,7 @@
} }
function fullscreen() { function fullscreen() {
var screen=document.getElementById('spice-area'); var screen=document.getElementById('spice-screen');
if(screen.requestFullscreen) { if(screen.requestFullscreen) {
screen.requestFullscreen(); screen.requestFullscreen();
} else if(screen.mozRequestFullScreen) { } else if(screen.mozRequestFullScreen) {