-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
182 lines (125 loc) · 6.17 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>NodePong 0.1b</title>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="viewport" content="width=device-width;" />
<script type="text/javascript" src="/socket.io/socket.io.js"></script>
<!--script type="text/javascript" src="http://code.jquery.com/jquery-1.5.min.js"></script-->
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.js"></script>
<!-- don't serve to desktops: prevents opening links in new tab with keyboard modifiers -->
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>
<!-- TypeKit support -->
<script type="text/javascript" src="http://use.typekit.com/fhn8jqe.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<link rel="stylesheet" href="nodepong.css" type="text/css" media="screen"></link>
<style type="text/css">
.wf-loading html,
.wf-loading body {
/* Hide the blog title and post titles while web fonts are loading */
visibility: hidden;
}
</style>
<!-- Google analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-8589533-3']);
_gaq.push(['_setDomainName', '.nodepong.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div class="center"><noscript>NodePong is a browser-based JavaScript game - enable scripts and try again!</noscript></div>
<div id="readout"></div>
<div id="readout2"></div>
<div id="returned"></div>
<div class="center">
<div id="toucharea">
<!-- COURT -->
<div id="court">
<img id="xgif" src="img/x.gif" alt="4x3 spacer gif" />
<div id="login">
<div id="hello">NODEPONG</div>
<a href="#" onClick="makeID();return false"><span id="loginMessage">WHAT YOUR PONG NAME</span></a>
<form id="nameform" method="post" action="#"><input type="text" id="entername" maxlength="6" />
<input type="submit" id="go" value="Go" onclick="validateName();return false;" /></form>
<input type="submit" id="cancel" value="spectate" onclick="spectate();return false;" /></form>
</div>
<h1 id="alert"></h1>
<div id="playerhide">
<div id="vs">VS</div>
<div id="centerline"> </div>
<div id="p1"></div>
<div id="p2"></div>
<div id="player1"></div>
<div id="player2"></div>
</div>
<div id="xball">
<div id="ball"> </div>
</div>
<div id="scores">
<div id="score1">
<div class="s1"></div>
<div class="s2"></div>
<div class="s3"></div>
<div class="s4"></div>
<div class="s5"></div>
<div class="s6"></div>
<div class="s7"></div>
</div>
<div id="score2">
<div class="s1"></div>
<div class="s2"></div>
<div class="s3"></div>
<div class="s4"></div>
<div class="s5"></div>
<div class="s6"></div>
<div class="s7"></div>
</div>
</div>
</div> <!-- end court -->
</div><!-- end toucharea -->
</div><!-- end center -->
<div class="center">
<!-- INFO SCREEN -->
<div id="info">
<div id="status"></div>
<div id="insertcoin"><a href="javascript:insertcoin()">CLICK HERE TO PLAY</a></div>
<div id="spectate"><a href="javascript:spectate()">CLICK HERE TO SPECTATE</a></div>
<div id="playerCounts">0 players, 0 spectators</div>
<div id="rotate">rotate for fullscreen</div>
<div id="leaderboard">
NODEPONG TOP 10<br/>
<table id="scoretable"> <!-- YES A TABLE I USE IT FOR TABULAR DATA -->
<tr><td class="rank">1.</td><td class="name">...</td><td class="scor">...</td></tr>
<tr><td class="rank">2.</td><td class="name">...</td><td class="scor">...</td></tr>
<tr><td class="rank">3.</td><td class="name">...</td><td class="scor">...</td></tr>
<tr><td class="rank">4.</td><td class="name">...</td><td class="scor">...</td></tr>
<tr><td class="rank">5.</td><td class="name">...</td><td class="scor">...</td></tr>
<tr><td class="rank">6.</td><td class="name">...</td><td class="scor">...</td></tr>
<tr><td class="rank">7.</td><td class="name">...</td><td class="scor">...</td></tr>
<tr><td class="rank">8.</td><td class="name">...</td><td class="scor">...</td></tr>
<tr><td class="rank">9.</td><td class="name">...</td><td class="scor">...</td></tr>
<tr><td class="rank">10.</td><td class="name">...</td><td class="scor">...</td></tr>
</table>
</div>
<div id="footer">
<p>Thanks for playing NodePong version 0.1b<br/>
<p>Hosted by <a href="http://duostack.com">Duostack</a></p>
<p>Made with Node.js, Socket.IO, jQuery, and CSS3.</p>
<p>Bug? Comment? Question? <a href="mailto:nodepong@meetar.net?subject=HELLO NODEPONG">Let me know.</a></p>
<p>Want to know more? <a href="http://about.nodepong.com">Right this way, sir and/or madame.</a></p>
<p><a href="https://github.com/meetar/NodePong">github repo</a></p>
<p>MIT License (C) <a href="http://meetar.net">P Richardson</a> 2011</p>
</div> <!-- end footer -->
</div> <!-- end info -->
</div><!-- end center -->
<script type="text/javascript" src="/client.js"></script>
</body>
</html>