forked from rohanrhu/snake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
145 lines (122 loc) · 4.15 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
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name=description content="Snake game.">
<meta name=viewport content="width=device-width; initial-scale=1; maximum-scale=1.0; user-scalable=0;">
<link href="https://fonts.googleapis.com/css?family=Londrina+Solid|VT323" rel="stylesheet">
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<title>Snake - Game</title>
<style type="text/css">
* {
margin: 0px;
padding: 0px;
}
body {
text-align: center;
background: #245425;
color: #fafafa;
}
.game {
margin-top: 25px;
display: inline-block;
border: 10px solid #378239;
border-radius: 10px;
box-shadow: 0px 0px 15px 0px rgba(5, 53, 6, 0.4);
}
.gameIframe {
border: 0px;
display: block;
margin: auto;
}
.logo {
font-family: 'Londrina Solid', cursive;
font-size: 50px;
margin-top: 25px;
text-shadow: 0px 0px 10px rgba(5, 53, 6, 0.56);
}
.description {
font-family: 'Londrina Solid', cursive;
font-size: 25px;
text-shadow: 0px 0px 10px rgba(5, 53, 6, 0.56);
}
.link {
font-family: 'VT323', monospace;
font-size: 20px;
margin-top: 10px;
display: inline-block;
border: 1px solid #378239;
background: #306b32;
border-radius: 2px;
padding: 5px 10px;
}
.a,
.a:visited {
color: #fafafa;
transition: opacity 250ms;
text-decoration: none;
}
.a:hover {
opacity: 0.8;
}
.footer {
font-family: 'Arial';
font-size: 13px;
margin-top: 25px;
}
.footer .a {
color: #6ce06f;
}
@media screen and (max-width: 450px) {
.logo {
font-size: 30px;
margin-top: 15px;
}
.description {
font-size: 20px;
}
.link {
font-size: 15px;
}
}
</style>
<script type="text/javascript">
$(document).ready(function () {
var gameIframe = document.getElementById('gameIframe');
var w = window.innerWidth;
var h = window.innerHeight;
if (h < 800) {
gameIframe.width = 500;
gameIframe.height = 300;
}
if (w <= 770) {
gameIframe.width = 600;
}
if (w <= 600) {
gameIframe.width = 275;
}
});
</script>
</head>
<body>
<div class="logo">
snake
</div>
<div class="description">
HTML5 SNAKE GAME WITH PIXI.JS
</div>
<div class="clear"></div>
<div class="link">
<a class="a" href="http://oguzhaneroglu.com/games/snake/" title="HTML5 Snake Game with pixi.js">http://oguzhaneroglu.com/games/snake/</a>
</div>
<div class="clear"></div>
<div class="game">
<iframe src="game.html" id="gameIframe" class="gameIframe" width="800" height="600"></iframe>
</div>
<div class="footer">
Licensed under <a class="a" href="https://opensource.org/licenses/MIT" title="MIT License">MIT</a>.
Copyright © 2017, <a class="a" href="http://oguzhaneroglu.com/" title="Oğuzhan Eroğlu, Software Engineer">Oğuzhan Eroğlu</a>.
</div>
<a href="https://github.com/rohanrhu/snake" target="_blank"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"></a>
</body>
</html>