mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-26 15:13:34 +00:00
Somewhere along the way, the refactors broke playback.js. This fixes the actual functionality, and makes its JS loading match that in vnc.html.
54 lines
1.7 KiB
HTML
54 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>VNC Playback</title>
|
|
<!-- promise polyfills promises for IE11 -->
|
|
<script src="../vendor/promise.js"></script>
|
|
<!-- ES2015/ES6 modules polyfill -->
|
|
<script type="module">
|
|
window._noVNC_has_module_support = true;
|
|
</script>
|
|
<script>
|
|
window.addEventListener("load", function() {
|
|
if (window._noVNC_has_module_support) return;
|
|
var loader = document.createElement("script");
|
|
loader.src = "vendor/browser-es-module-loader/dist/browser-es-module-loader.js";
|
|
document.head.appendChild(loader);
|
|
});
|
|
</script>
|
|
<!-- actual script modules -->
|
|
<script type="module" src="./playback-ui.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
Iterations: <input id='iterations' style='width:50'>
|
|
Perftest:<input type='radio' id='mode1' name='mode' checked>
|
|
Realtime:<input type='radio' id='mode2' name='mode'>
|
|
|
|
<input id='startButton' type='button' value='Start' style='width:100px' disabled>
|
|
|
|
<br><br>
|
|
|
|
Results:<br>
|
|
<textarea id="messages" style="font-size: 9;" cols=80 rows=25></textarea>
|
|
|
|
<br><br>
|
|
|
|
<div id="VNC_screen">
|
|
<div id="VNC_status_bar" class="VNC_status_bar" style="margin-top: 0px;">
|
|
<table border=0 width=100%><tr>
|
|
<td><div id="VNC_status">Loading</div></td>
|
|
</tr></table>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
<!--
|
|
<script type='text/javascript'
|
|
src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
|
|
-->
|
|
|
|
<script type="module" src="./playback-ui.js">
|
|
</html>
|