-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.html
124 lines (122 loc) · 3.31 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
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="chrome=1, IE=edge">
<link rel="apple-touch-icon" href="/assets/images/icon.png" />
<link rel='shortcut icon' href='/assets/images/favicon.ico' />
<script type="text/javascript" src="build/client/game.js"></script>
<script type="text/javascript">
Clay = {};
Clay.gameKey = "slime";
Clay.readyFunctions = [];
Clay.ready = function( fn ) {
Clay.readyFunctions.push( fn );
};
( function() {
var clay = document.createElement("script");
clay.src = ( "https:" == document.location.protocol ? "https://" : "http://" ) + "clay.io/api/api-src.js";
var tag = document.getElementsByTagName("script")[0]; tag.parentNode.insertBefore(clay, tag);
} )();
</script>
<style>
body, html {
margin:0;
padding:0;
}
body {
background: #9FFF23;
font: 12px "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, "Lucida Grande", sans-serif;
overflow: hidden;
}
#center {
text-align: center;
}
#please-rotate {
width: 100%;
height: 100%;
position: fixed;
z-index: 5;
background: #fff;
display: none;
text-align: center;
font-size: 16px;
padding-top: 100px;
font-size: 2em;
font-weight: bold;
}
#please-rotate div {
max-width: 320px;
}
.info {
display: none;
}
@media only screen and (min-width: 800px) {
.info {
display: none;
text-align: left;
margin-top: 5px;
border: 1px solid rgba( 0, 0, 0, 0.3 );
}
.info .social {
background: rgba( 0, 0, 0, 0.3 );
color: #fff;
}
.info .social a {
display: block;
float: left;
padding: 5px;
background: rgba( 255, 255, 255, 0.1 );
color: #fff;
text-decoration: none;
text-align: center;
margin-right: 8px;
width: 103px;
}
.info .social a:hover {
background: rgba( 255, 255, 255, 0.3 );
}
.info .social a.last {
margin-right: 0;
}
.info .instructions {
padding: 5px;
}
.clear {
clear: both;
}
}
</style>
</head>
<body style="margin:0px;">
<div id='please-rotate'>
<div>Please rotate your device to landscape mode.</div>
</div>
<div id='center'>
<canvas id="canvas" width="480px" height="268px"></canvas>
<div class='info'>
<div class='social'>
<a href='javascript: void( 0 );' onclick='Social.facebook();'>
Post to Facebook
</a>
<a href='javascript: void( 0 );' onclick='Social.tweet();'>
Post to Twitter
</a>
<a href='javascript: void( 0 );' onclick='new Clay.Screenshot();'>
Take a screenshot
</a>
<a href='javascript: void( 0 );' onclick='Clay.Ratings();' class='last'>
Rate this game
</a>
<div class='clear'></div>
</div>
<div class='instructions'>Instructions: <br />
Use the arrow keys to move (or WASD), hit the ball over the net.
<div><a href='javascript: void( 0 );' onclick='Social.showDemo();'>Demo Video of Multiplayer</a></div>
<div><a href='https://github.com/claydotio/Slime-Volley' target='_BLANK'>Source Code</a></div>
<div><a href='javascript: void( 0 );' onclick='Clay.Facebook.invite();'>Invite Your Friends</a></div>
</div>
</div>
</div>
</body>
</html>