forked from ytiurin/tetris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.html
152 lines (123 loc) · 5.72 KB
/
dev.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html><html><head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width">
<title>Play TETRIS</title>
<link rel="manifest" href="./manifest.json">
<meta name="theme-color" content="#C2FFAE">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@ytiurin">
<meta name="twitter:creator" content="@ytiurin">
<meta name="twitter:title" content="Play TETRIS game">
<meta name="twitter:description" content="Play the original TETRIS game and post your results on the shared leaderboard.">
<meta name="twitter:image" content="https://cdn.rawgit.com/ytiurin/tetris/master/public/screenshot.png">
<link rel="fluid-icon" href="https://github.com/fluidicon.png" title="TETRIS">
<link rel="apple-touch-icon" href="https://github.com/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="57x57" href="https://github.com/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="https://github.com/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="https://github.com/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="https://github.com/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="https://github.com/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="https://github.com/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="https://github.com/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="https://github.com/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="https://github.com/apple-touch-icon-180x180.png">
<link rel="mask-icon" href="https://assets-cdn.github.com/pinned-octocat.svg" color="#000000">
<link rel="icon" type="image/x-icon" href="https://assets-cdn.github.com/favicon.ico">
<meta name="description" content="Play the original TETRIS game and post your results on the shared leaderboard.">
<link rel="canonical" href="https://ytiurin.github.com/tetris" data-pjax-transient>
<style>
body {
margin: 0;
background-color:#000000;
color:#C2FFAE;
font-family: 'DejaVuSansMono', monospace;
font-size:12px;
line-height: 1.2;
}
#loading {
margin:20px;
}
#container {
display:none;
}
</style>
</head><body>
<div id="loading">LOADING..._</div>
<div id="container">
<div id="game"></div>
<div class="controls left">
<button id="control-drop" data-key="32">DROP</button>
<button id="control-left" data-key="37">LEFT</button>
</div>
<div class="controls right">
<button id="control-pause" data-key="80">PAUSE</button>
<button id="control-rotate" data-key="38">ROTATE</button>
<button id="control-right" data-key="39">RIGHT</button>
</div>
<div class="controls top">
<button id="mute-sound">MUTE SOUND</button>
</div>
<div id="userboard">
<div id="your-score"></div>
<div id="your-best-score"></div><br/><br/>
YOUR NAME: <input type="text" id="name-input" /><br/><br/><br/>
<div style="text-align:right;">
<button id="userboard-close">CANCEL</button>
<button id="userboard-send">SEND</button>
</div>
</div>
<div id="leaderboard">
MONTH LEADERS:<br/><br/>
<div id="score-leaders"></div>
<div style="text-align:center;">
<button id="leaderboard-close">CLOSE</button></div>
</div>
<div id="share">
<a class="twitter-share-button"
href="https://twitter.com/share"
data-text="I liked the original #TETRIS game simulator #javascript #games #retro #github"
data-url="https://ytiurin.github.com/tetris/"
data-related="ytiurin">
Tweet
</a>
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/ytiurin/tetris" data-icon="octicon-star" data-count-href="/ytiurin/tetris/stargazers" data-count-api="/repos/ytiurin/tetris#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star ytiurin/tetris on GitHub">Star</a>
<br/><br/><br/>
<span id="leaderboard-link" class="link">Leaderboard</span>
<a target="_blank" href="https://github.com/ytiurin/tetris" rel="noopener">Fork on Github</span>
</div>
</div>
<script async defer="defer" type="text/javascript" src="./src/all.js"></script>
<script>
// Let's register our serviceworker
navigator.serviceWorker.register('./sw.js', {
// The scope cannot be parent to the script url
scope: './'
});
</script>
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-2810014-11', 'auto');
ga('send', 'pageview');
</script>
</body></html>