-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (39 loc) · 1.53 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Obaké. A Ludum Dare 41 entry by Mr Speaker</title>
<link rel="stylesheet" href="res/main.css" />
<link href="https://fonts.googleapis.com/css?family=Amatic+SC" rel="stylesheet">
</head>
<body>
<div id="games">
<canvas id="minecraft"></canvas>
<div id="pitfall"></div>
<img id="cross" class="ui" src="res/cross.png" />
</div>
<div id="icons">
<a href="https://github.com/mrspeaker/ld41"><img src="res/images/code.png" /></a>
<img id="fs" src="res/images/fs.png" />
</div>
<script type="module" src="src/main.js"></script>
<noscript>
<p class="anotherVisitor">Welcome! This is my LD41 game entry
If you'd like to explore it, you will need to enable JavaScript.
Go on, just for a minute!
</p>
</noscript>
<p id="nosupport" class="anotherVisitor">Welcome! This is my LD41 game entry.
But it's using features (<span id="nomodule">
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import">JavaScript
Native Modules</a></span><span id="nowebgl2">WebGL2</span>)
that it seems like your browser doesn't support yet.<br/><br/>
<a href="https://github.com/mrspeaker/ld41">But have a look at the code</a>
if you're that way inclined!
</p>
<script nomodule>
document.querySelector("#nosupport").style.display = "block";
document.querySelector("#nomodule").style.display = "inline";
</script>
</body>
</html>