This repository has been archived by the owner on May 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
113 lines (105 loc) · 3.65 KB
/
game.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
<!DOCTYPE html>
<html>
<head>
<script>
var require = {
baseUrl: 'js',
paths: {
jquery: 'libs/jquery'
}
};
</script>
<script src="Bot1.js"></script>
<script src="Bot2.js"></script>
<script data-main='game/gameInit' src='js/libs/require.js'></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<section id="page" class="gamePage">
<section id="content">
<div id="game">
<h2>GAME</h2>
<hr width="100">
<div id="left40">
<canvas id="wwc-canvas" width="500" height="500"></canvas>
</div>
<div id="right60">
<div id="result">
<div class="color-player0 new-line">
<div class="playerLine">
<div class="color_player_0"></div><div class="line name" id="wwc-name-player0"></div>
</div>
<div class="playerLine">
<div class="line label">Punkte:</div><div class="line score" id="wwc-score-player0">0</div>
</div>
<div class="playerLine">
<div class="line label">Gewonnen:</div><div class="line points" id="wwc-points-player0">0</div>
</div>
</div>
<div class="color-player1 new-line">
<div class="playerLine">
<div class="color_player_1"></div><div class="line name" id="wwc-name-player1"></div>
</div>
<div class="playerLine">
<div class="line label">Punkte:</div><div class="line score" id="wwc-score-player1">0</div>
</div>
<div class="playerLine">
<div class="line label">Gewonnen:</div><div class="line points" id="wwc-points-player1">0</div>
</div>
</div>
</div>
<div id="controls">
<div class="control button_mid" id="wwc-reset" style="display: inline-block;">Next</div>
<div class="control button_mid" id="wwc-stop" style="display: none;">Stop</div>
<div class="control button_mid" id="wwc-play" style="display: inline-block;">Play</div>
<div class="control button_mid" id="wwc-step" style="display: inline-block;">Step</div>
</div>
<hr>
<p>Code from <a href="http://www.webworkercontest.net/">www.webworkercontest.net</a></p>
<div id="wwc-scheduler" style="display: none;">
<div class="label_header">Select web workers | Test your own web worker</div>
<div class="page-content">
<div class="schedule schedule_left">
<select id="wwc-select-player0" class="select-player" id="wwc-select-player0">
<!-- filed by javascript -->
</select>
<div id="uploadContainer0" class="uploadContainer">
<div class="fileUpload button_small_grey">
<span>Choose File</span>
<input id="wwc-file0" type="file" class="upload" />
</div>
<div id="uploadFile_text"></div>
<script>
document.getElementById("wwc-file0").onchange = function () {
document.getElementById("uploadFile_text").innerHTML = this.value;
};
</script>
</div>
</div>
<div class="schedule schedule_right">
<select id="wwc-select-player1" class="select-player" id="wwc-select-player1">
<!-- filed by javascript -->
</select>
<div id="uploadContainer1" class="uploadContainer">
<div class="fileUpload button_small_grey">
<span>Choose File</span>
<input id="wwc-file1" type="file" class="upload" />
</div>
<div id="uploadFile1_text"></div>
<script>
document.getElementById("wwc-file1").onchange = function () {
document.getElementById("uploadFile1_text").innerHTML = this.value;
};
</script>
</div>
</div>
<hr>
<div class="control button_small" id="wwc-refresh" style="display: inline-block;">Refresh</div>
</div>
</div>
</div>
</div>
</section>
</section>
</body>
</html>