-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
106 lines (100 loc) · 4.03 KB
/
index.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
<link rel="icon" href="favicon.png">
<meta charset="utf-8">
<!-- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> -->
<!-- <meta http-equiv="Cross-Origin-Embedder-Policy" content="require-corp" /> -->
<!-- <meta http-equiv="Cross-Origin-Opener-Policy" content="same-origin" /> -->
<meta property="og:type" content="website">
<meta property="og:title" content="Kurumi-X ~ Modular Wavetable Workstation">
<meta property="og:site_name" content="Kurumi-X ~ Modular Wavetable Workstation">
<meta property="og:description" content="🧛 The Wavetable Workstation as powerful as Vampires 🧛">
<meta property="og:image" content="https://system64mc.github.io/kurumi/favicon.jpeg">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:footer" content="🧛🦇">
<meta name="theme-color" content="#fc0000">
<title>Kurumi ~ Modular Wavetable Workstation</title>
<link rel="canonical" href="https://codepo8.github.io/kurumi/" />
<link rel="manifest" href="/kurumi/manifest.webmanifest">
<!-- <link type="application/json+oembed" href="embed.json"> -->
<title>Kurumi ~ Modular Wavetable Workstation</title>
<style>
body { margin: 0; background-color: black }
.game {
position: absolute;
top: 0px;
left: 0px;
margin: 0px;
border: 0;
width: 100%;
height: 100%;
overflow: hidden;
display: block;
image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: optimize-contrast;
image-rendering: crisp-edges;
image-rendering: pixelated;
-ms-interpolation-mode: nearest-neighbor;
}
</style>
</head>
<body>
<canvas class="game" id="canvas" oncontextmenu="event.preventDefault()" tabindex=-1></canvas>
<script type='text/javascript'>
if (navigator.serviceWorker) {
navigator.serviceWorker.register (
'/kurumi/sw.js',
{scope: '/kurumi/'}
);
}
var Module = {
preRun: [],
postRun: [],
print: (function() {
return function(text) {
text = Array.prototype.slice.call(arguments).join(' ');
console.log(text);
};
})(),
printErr: function(text) {
text = Array.prototype.slice.call(arguments).join(' ');
console.error(text);
},
canvas: (function() {
var canvas = document.getElementById('canvas');
//canvas.addEventListener("webglcontextlost", function(e) { alert('FIXME: WebGL context lost, please reload the page'); e.preventDefault(); }, false);
return canvas;
})(),
setStatus: function(text) { },
monitorRunDependencies: function(left) { },
};
function setWinSize() {
Module._mySetWindowSize(window.innerWidth, window.innerHeight);
}
// window.addEventListener("resize", setWinSize);
window.onresize = function(event) {
setWinSize();
}
// window.onkeypress = function(event) {
// var code = event.keyCode || event.which;
// if(code == 122){
// preventDefault();
// Module._mySetWindowSize(visualViewport.width, visualViewport.height);
// // Module.requestFullscreen(true, true);
// }
// }
// Module.requestFullscreen(true, true);
window.addEventListener
window.onerror = function() {
console.log("onerror: " + event.message);
};
</script>
<script async type="text/javascript" src="index.js"></script>
</body>
</html>