-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathindex.html
45 lines (45 loc) · 2.07 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
<!DOCTYPE html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>URL Snake!</title>
<meta name=description content="Play the classic snake game on the browser URL."/>
<meta name=viewport content="width=device-width, initial-scale=1.0"/>
<link rel=canonical href="/snake/">
<link rel="shortcut icon" href=favicon.ico />
<link rel=stylesheet href=style.css>
<script data-goatcounter="https://demian.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
<script>
if ('ontouchstart' in document.documentElement) {
document.documentElement.classList.add('touch')
}
</script>
</head>
<noscript>⚠ Sorry, this game requires JavaScript.</noscript>
<div id=url-container class=invisible>URL: <span id=url></span></div>
<div class=expandable>
<button class="help-toggle expand-btn" aria-label=Help>?</button>
<div class="expandable-content hidden">
<span class=no-touch-only>Use the arrow keys or WASD to control the snake on the URL.</span>
<span class=touch-only>Use the arrows to control the snake on the URL.</span>
<a id=reveal-url href=#>Click here</a> if you can't see the page URL<span id=url-escaping-note class=invisible> or if it looks messed up with <span id=replacement-char-description></span></span>. <button class=collapse-btn aria-label=Hide>〈</button>
</div>
</div>
<div id=max-score-container class="expandable invisible">
<button class="high-score-toggle expand-btn" aria-label="Max score">!</button>
<div class="expandable-content hidden">
Your highest score is <span id=max-score></span> points!
<span id=max-score-grid></span><a id=share class=invisible href=#><i class=icon-share></i>Share</a> <button class=collapse-btn aria-label=Hide>〈</button>
</div>
</div>
<div class="controls touch-only">
<button id=up>▲︎</button>
<button id=left>◀︎</button>
<button id=down>▼︎</button>
<button id=right>▶︎</button>
</div>
<footer>
Made with (⠠⠇) by <a href=https://twitter.com/epidemian>@epidemian</a> |
<a href=https://github.com/epidemian/snake>Code</a>
</footer>
<script src=snake.js></script>