-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (38 loc) · 1.9 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Snake</title>
<link rel="stylesheet" href="dist/css/main.css"/>
<!-- bootstraper - inject from dist/js/bootstraper.min.js - source in /src/js/bootstraper.js -->
<script>!function(){"use strict";function e(){var e=document.getElementsByTagName("script")[0],l=document.createElement("script");l.async=!0,l.src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default&callback=MH.polyfillReady",e.parentNode.insertBefore(l,e)}function l(){n.polyfillReady=!0}var n={done:!1,callbacks:[],pointer:null,intervalTiming:100,polyfillReady:!1};"keys"in Object?l():e(),n.pointer=setInterval(function(){"complete"!==document.readyState&&"interactive"!==document.readyState||!n.polyfillReady||(clearInterval(n.pointer),n.done=!0,n.callbacks.length&&n.callbacks.forEach(function(e){e()}))},n.intervalTiming),window.MH={onReady:function(e){n.done?e():n.callbacks.push(e)},polyfillReady:l}}();</script>
<!-- main code -->
<script src="dist/js/bundle.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-23697840-8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-23697840-8', { 'anonymize_ip': true });
</script>
</head>
<body>
<div class="wrapper">
<h1 class="page-title">Snake</h1>
<div class="game__wrapper">
<canvas id="game-canvas" class="game__canvas"></canvas>
<div class="screen__wrapper">
<div class="screen screen--gameover js-gameover">
<div class="screen__inner">
<div class="screen__title">Gameover</div>
<div class="screen__actions">
<button class="btn js-start">Try again</button>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>