This repository was archived by the owner on Sep 11, 2019. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
169 lines (144 loc) · 6.09 KB
/
Copy pathindex.html
File metadata and controls
169 lines (144 loc) · 6.09 KB
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
<!doctype html>
<head>
<title></title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<p id="pageHeader">Type-a-Number!</p>
</header>
<div role="main">
<div id="loginDiv" style="display: none;">Welcome! <a href="javascript:login.showLoginDialog()"><img src="img/gplus_signin_normal.png"></a></div>
<div id="welcome" style="display: none;">
<div id="message">Welcome, playername!</div>
<input type="button" id="welcomeAchievements" disabled="true" value="View achievements" onclick="welcome.showAchievements()"/>
<input type="button" id="welcomeleaderboards" disabled="true" value="View leaderboards" onclick="welcome.showLeaderboards()" />
<input type="button" id="playGameEasy" disabled="true" value="Play Game (Easy)" onclick="welcome.startGame(game.EASY)" />
<input type="button" id="playGameHard" disabled="true" value="Play Game (Hard)" onclick="welcome.startGame(game.HARD)" />
<input type="button" id="seeFriends" disabled="true" value="See my friends!" onclick="welcome.seeFriends()" />
<input type="button" id="showAdmin" disabled="true" value="Admin tasks" onclick="welcome.showAdmin()" />
</div>
<div id="game" style="display:none;">
<div id="gameMessageArea"></div>
<input type="text" id="scoreRequestTF" accept=""/><br/>
<div id="challengeArea" style="display:none;"></div>
<div id="gameBragArea" style="display: none;">
<span id="bragMessage"></span><br/>
<div id="bragButton"><button>Challenge!</button></div>
</div>
<input type="button" id="submitScoreButton" value="Request Score" onclick="game.requestScore()" /><br/>
<input type="button" id="gameLeaderboardButton" value="High Scores" onclick="game.showLeaderboard()" /><br/>
<input type="button" id="gameBackButton" value="Back" onclick="game.back()" /><br/>
</div>
<div id="achievements" style="display: none;">
<table id="achievementsTable">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Icon</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<input type="button" id="achievementsBack" value="Go back" onclick="achievementTable.goBack()"/>
</div>
<div id="leaderboards" style="display: none;">
<table id="leaderboardsTable">
<thead>
<tr>
<th>Icon</th>
<th>Name</th>
<th>See it?</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<input type="button" id="leaderboardsBack" value="Go back" onclick="leaderboardsTable.goBack()"/>
</div>
<div id="leaderboard" style="display: none;">
<div id="leaderboardTitle"></div>
<table id="leaderboardTable">
<thead>
<tr>
<th>Avatar</th>
<th>Player</th>
<th>Score</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<input type="button" id="leaderboardBack" value="Go back" onclick="leaderboardTable.goBack()"/>
</div>
<div id="friends" style="display: none;">
<div id="friendsTitle"></div>
<table id="friendsTable">
<thead>
<tr>
<th>Avatar</th>
<th>Player</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<input type="button" id="pageFriendsPrev" value="Prev" onclick="friendsTable.showPrev()"/>
<input type="button" id="pageFriendsNext" value="Next" onclick="friendsTable.showNext()"/>
<input type="button" id="friendsBack" value="Go back" onclick="friendsTable.goBack()"/>
</div>
<div id="adminPanel" style="display: none;">
<div id="adminNotes"><strong>Note: </strong> Only developers who are listed as testers can use these functions.</div>
<input type="button" id="resetAchievements" value="Reset Achievements" onclick="admin.resetAchievements()"/>
<input type="button" id="resetScores" value="Reset Scores" onclick="admin.resetScores()"/>
<input type="button" id="adminBack" value="Go back" onclick="admin.goBack()"/>
</div>
<div id="achUnlocked" style="display:none;" class="unlockWidget">
<img src="" style="float: left;" class="smallIcon"/>
<p>Achievement unlocked!<br/>
<span id="achName">Name</span><br/>
<span id="achDescrip">Achievement unlocked!</span>
</p>
</div>
<div id="leadUnlocked" style="display:none;" class="unlockWidget">
<img src="" style="float: left;" class="smallIcon"/>
<p>New high score!<br/>
<span id="leadName">Name</span><br/>
</p>
</div>
</div>
<footer>
</footer>
<!-- JavaScript at the bottom for fast page loading -->
<script>
var apisLoaded = function() {
console.log("Ready to init");
login.init();
}
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!-- The game scripts -->
<script src="js/achievementManager.js"></script>
<script src="js/achievementTable.js"></script>
<script src="js/achievementWidget.js"></script>
<script src="js/admin.js"></script>
<script src="js/challenge.js"></script>
<script src="js/constants.js"></script>
<script src="js/friendsTable.js"></script>
<script src="js/game.js"></script>
<script src="js/leaderboardManager.js"></script>
<script src="js/leaderboardsTable.js"></script>
<script src="js/leaderboardTable.js"></script>
<script src="js/leaderboardWidget.js"></script>
<script src="js/login.js"></script>
<script src="js/player.js"></script>
<script src="js/utils.js"></script>
<script src="js/b64Utils.js"></script>
<script src="js/welcome.js"></script>
<!-- Start the process of loading the Google JavaScript client library -->
<script src="https://apis.google.com/js/client:plusone.js?onload=apisLoaded"></script>
<!-- end scripts -->
</body>
</html>