-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (47 loc) · 1.58 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
<!DOCTYPE html>
<!-- Game by Mario Martinez, Concept by Wouter Visser -->
<!-- Source: http://www.github.com/martimatix/sweet-sweet-friction -->
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sweet Sweet Friction</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<script src="elm.js"></script>
<style>
@font-face {
font-family: Haettenschweiler;
src:
url('fonts/haettenschweiler-webfont.woff2') format('woff2'),
url('fonts/haettenschweiler-webfont.woff') format('woff');
}
body {
background-color: rgb(5, 163, 255);
overflow: hidden;
text-align: center;
cursor: default;
}
.noselect {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Chrome/Safari/Opera */
-khtml-user-select: none; /* Konqueror */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
not supported by any browser */
}
</style>
</head>
<body>
<div id="elm-target"></div>
<script type="text/javascript">
var highScore = parseInt(localStorage.getItem('sweetSweetFriction:highScore')) || null;
var app = Elm.Main.init({
node: document.getElementById("elm-target"),
flags: highScore,
});
app.ports.saveHighScore.subscribe(function(score) {
localStorage.setItem('sweetSweetFriction:highScore', score);
});
</script>
</body>
</html>