-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·70 lines (41 loc) · 1.03 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Sample of websocket with golang</title>
<script src="js/jquery.x.min.js"></script>
<script src="js/appconfig.js"></script>
<script src="js/peeerest.js"></script>
<script>
$(function() {
PeeeREST.init($('#glist'));
PeeeREST.GetGameList();
});
var mainjs = {
RefreshGameList:function(){
PeeeREST.GetGameList();
},
NewGame:function(){
PeeeREST.NewGame();
},
};
</script>
</head>
<body style="font-family:sans;font-size:30px;">
<h1 align="center"><img src="img/logo.png"></h1>
<div id="GameList" style="text-align:center;">
<h3>Games</h3>
<ul id="glist">
<li>x</li>
</ul>
</div>
<p align="center">
<table align="center">
<tr>
<td><img src='img/button_refresh.png' onclick="return mainjs.RefreshGameList();"></td>
<td><img src='img/button_new.png' onclick="return mainjs.NewGame();"></td>
</tr>
</table>
</p>
</body>
</html>