-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstart.html
85 lines (83 loc) · 3.93 KB
/
start.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<title>sm64 player</title>
<link rel="stylesheet" href="style.css">
<center><h1>Click to start this nostalgia</h1>
<h3>SM64-JS | Made by Chase Wicklund on replit! (@jscraft) revived by @ripjaw1219</h3></center>
<script>
document.addEventListener('click', () => {
<!--
document.write( '<html lang=\"en-us\"><head>\n' );
document.write( ' <meta charset=\"utf-8\">\n' );
document.write( ' <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n' );
document.write( ' <title>Super Mario 64</title>\n' );
document.write( ' <style>\n' );
document.write( ' body, html{\n' );
document.write( ' margin: 0;\n' );
document.write( ' padding: 0;\n' );
document.write( ' width: 100vw;\n' );
document.write( ' min-height: 100vh;\n' );
document.write( ' font-family: Arial, Helvetica, sans-serif;\n' );
document.write( ' color: white;\n' );
document.write( ' image-rendering: pixelated;\n' );
document.write( ' scrollbar-width: none;\n' );
document.write( ' }\n' );
document.write( ' ::-webkit-scrollbar {\n' );
document.write( ' display: none;\n' );
document.write( ' }\n' );
document.write( ' #container {\n' );
document.write( ' width: 100vw;\n' );
document.write( ' height: 100vh;\n' );
document.write( ' display: flex;\n' );
document.write( ' align-items: center;\n' );
document.write( ' justify-content: center;\n' );
document.write( ' }\n' );
document.write( ' canvas {\n' );
document.write( ' width: 100vw;\n' );
document.write( ' height: 100vh;\n' );
document.write( ' }\n' );
document.write( ' </style>\n' );
document.write( ' </head>\n' );
document.write( ' <body>\n' );
document.write( ' <div id=\"container\">\n' );
document.write( ' <canvas class=\"emscripten\" id=\"canvas\" width=\"1920\" height=\"1080\" style=\"cursor: default;\"></canvas>\n' );
document.write( ' </div>\n' );
document.write( ' <script type=\"text/javascript\">\n' );
document.write( ' var Module = {\n' );
document.write( ' preRun: [],\n' );
document.write( ' postRun: [],\n' );
document.write( ' print: (function() {\n' );
document.write( ' return function(text) {\n' );
document.write( ' if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(\' \');\n' );
document.write( ' console.log(text);\n' );
document.write( ' };\n' );
document.write( ' })(),\n' );
document.write( ' printErr: function(text) {\n' );
document.write( ' if (arguments.length > 1)\n' );
document.write( ' text = Array.prototype.slice.call(arguments).join(\' \');\n' );
document.write( ' console.error(text);\n' );
document.write( ' },\n' );
document.write( ' canvas: (function() {\n' );
document.write( ' var canvas = document.getElementById(\'canvas\');\n' );
document.write( ' canvas.width = window.innerWidth; // Todo: how to do this from c++\n' );
document.write( ' canvas.height = window.innerHeight;\n' );
document.write( ' canvas.addEventListener(\"webglcontextlost\", function(e) {\n' );
document.write( ' alert(\'WebGL context lost. You will need to reload the page.\');\n' );
document.write( ' e.preventDefault();\n' );
document.write( ' }, false);\n' );
document.write( ' return canvas;\n' );
document.write( ' })(),\n' );
document.write( ' setStatus: function(text) {\n' );
document.write( ' }\n' );
document.write( ' };\n' );
document.write( ' </script>\n' );
document.write( ' <script async=\"\" type=\"text/javascript\" src=\"./game/sm64.js\"></script>\n' );
document.write( ' <script>\n' );
document.write( ' </script>\n' );
document.write( ' \n' );
document.write( '\n' );
document.write( '\n' );
document.write( '\n' );
document.write( '\n' );
document.write( '</body></html>' );
//-->
})
</script>