4 <meta charset="utf-8"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <title>Loading Rocks'n'Diamonds</title>
6 <link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32">
7 <link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16">
9 <body style="background:black;text-align:center;vertical-align:middle;">
10 <canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" tabindex=-1></canvas>
11 <script type='text/javascript'>
19 var element = document.getElementById('output');
20 if (element) element.value = ''; // clear browser cache
21 return function(text) {
22 if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
26 printErr: function(text) {
27 if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
28 if(text.startsWith("[FATAL]")) console.error(text);
29 else console.warn(text);
31 setStatus: function(text) {/*if(text == '') { document.title = "Rocks'n'Diamonds (stopped)"; } */},
34 document.title = "Rocks'n'Diamonds (exited)";
37 var canvas = document.getElementById('canvas');
39 // As a default initial behavior, pop up an alert when webgl context is lost. To make your
40 // application robust, you may want to override this behavior before shipping!
41 // See http://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15.2
42 canvas.addEventListener("webglcontextlost", function(e) { alert('WebGL context lost. You will need to reload the page.'); e.preventDefault(); }, false);
47 monitorRunDependencies: function(left) {
48 this.totalDependencies = Math.max(this.totalDependencies, left);
51 window.onerror = function(event) {
52 alert("An error occurred, see console.");
53 document.title = "Rocks'n'Diamonds (aborted)";
56 <script async type="text/javascript" src="rocksndiamonds.data.js"></script>
57 <script async type="text/javascript" src="rocksndiamonds.js"></script>