mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-html5
synced 2025-12-28 15:20:40 +00:00
Fix the console toggle in the new ES6 environment.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
This commit is contained in:
parent
fa63a5392d
commit
a2d39ea672
@ -146,8 +146,10 @@
|
||||
m.style.display = 'none';
|
||||
}
|
||||
|
||||
window.addEventListener('resize', handle_resize);
|
||||
SpiceHtml5.resize_helper(sc);
|
||||
window.addEventListener('resize', SpiceHtml5.handle_resize);
|
||||
if (sc) {
|
||||
SpiceHtml5.resize_helper(sc);
|
||||
}
|
||||
}
|
||||
/* SPICE port event listeners
|
||||
window.addEventListener('spice-port-data', function(event) {
|
||||
@ -162,6 +164,7 @@
|
||||
*/
|
||||
|
||||
document.getElementById('connectButton').onclick = connect;
|
||||
document.getElementById('show_console').onchange = toggle_console;
|
||||
</script>
|
||||
|
||||
</head>
|
||||
@ -173,7 +176,7 @@
|
||||
<label for="host">Host:</label> <input type='text' id='host' value='localhost'> <!-- localhost -->
|
||||
<label for="port">Port:</label> <input type='text' id='port' value='5959'>
|
||||
<label for="password">Password:</label> <input type='password' id='password' value=''>
|
||||
<label for="show_console">Show console </label><input type="checkbox" id="show_console" value="1" onchange="toggle_console()" checked>
|
||||
<label for="show_console">Show console </label><input type="checkbox" id="show_console" value="1"" checked>
|
||||
<button id="connectButton">Start</button>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user