forked from takashi-chikayama/SamurAI-Dig-Here-2020-21
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdighere.html
More file actions
145 lines (145 loc) · 4.64 KB
/
Copy pathdighere.html
File metadata and controls
145 lines (145 loc) · 4.64 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SamurAI Dig Here Page</title>
<script src="sponsorLogos.js"></script>
<script src="dighere.js"></script>
<script src="players.js"></script>
<script src="preload.js"></script>
<link rel="stylesheet" href="dighere.css" >
<link rel="icon" href="../icons/samuraiRed00.png" >
</head>
<body>
<svg id="battle field">
</svg>
<div id="topBar" class="infoBar">
<div id="topLeft" class="alignLeft">
<img id="rewind" src="../icons/rewind.png" title="first step">
<img id="stepBackward" src="../icons/stepBackward.png" title="step back">
<img id="playStop" src="../icons/play.png" title="play/stop">
<img id="stepForward" src="../icons/stepForward.png" title="step">
<img id="fastForward" src="../icons/fastForward.png" title="last step">
<img id="speedometer" src="../icons/speedometer.png"
title="change play tempo">
<span id="stepsPerMin">60</span>
<img id="randomize" src="../icons/randomize.png" title="randomize">
<img id="clearLog" src="../icons/clearLog.png" title="clear log">
<img id="load" src="../icons/load.png" title="load">
<img id="save" src="../icons/save.png" title="save">
<img id="remove" src="../icons/remove.png" title="remove">
<img id="import" src="../icons/import.png" title="import">
<input type="file" style="display:none"
id="importForm"
accept=".dighere,.json"
onchange="importFile(event)">
<img id="export" src="../icons/export.png" title="export">
<img id="resize" src="../icons/resize.png" title="resize">
<div id="logoAreaLeft"></div>
</div>
<div id="topRight" class="alignRight">
<img id="edit" src="../icons/edit.png">
<img id="exitEdit" src="../icons/exitEdit.png">
<span id="remainingLabel" style="align:right"></span>
<img id="goldImage" src="../icons/coins-icon.png"
style="align:right">
<img id="clock" src="../icons/clock.png">
<span id="currentStepLabel"></span>
<img id="manual" src="../icons/manual.png">
<img id="tweak" src="../icons/tweak.png">
<img id="help" src="../icons/help.png">
<br>
<div id="logoAreaRight"></div>
</div>
</div>
<div id="bottomBar" class="infoBar">
<table class="alignLeft">
<tr>
<td class="nopadding">
<img id="samuraiFigure0" src="../icons/samuraiRedFig.png">
</td>
<td class="nopadding">
<img id="dogFigure0" src="../icons/dogRedFig.png">
</td>
<td rowspan="2" id="scoreLabel0" />
</tr>
<tr>
<td id="timeLeft0" />
<td id="timeLeft2" />
</tr>
</table>
<table class="alignRight">
<tr>
<td rowspan="2" id="scoreLabel1"></td>
<td class="nopadding">
<img id="dogFigure1" src="../icons/dogBlueFig.png">
</td>
<td>
<img id="samuraiFigure1" src="../icons/samuraiBlueFig.png">
</td>
</tr>
<tr>
<td id="timeLeft3" />
<td id="timeLeft1" />
</tr>
</table>
</div>
<div id="promptBox" class="promptBox overlaid">
<span id="promptMessage"></span>
<input id="promptInput" type="text">
<button id="promptDoItButton"></button>
<button
id="promptCancelButton"
onclick=
"document.getElementById('promptBox').style.display='none';">
Cancel
</button>
</div>
<div id="tweakBox" class="tweakBox overlaid">
BGM♫
<select id="bgmChoice">
<option value="">MUTE</option>
<option value="jazzy">Jazzy</option>
<option value="bossa">Bossa</option>
<option value="japanesque">Japanesque</option>
<option value="waltz">Waltz</option>
</select>
<br>
Randomization Settings:
<br>
<svg id="randomizeAgents"
onclick="toggleRandomize(this)"
width="250" height="200" viewport="250,500,250,200">
<image href="../icons/samuraiBlue00.png" />
</svg>
<img id="randomizeHoles"
onclick="toggleRandomize(this)"
src="../icons/hole.png">
<input id="holeProb" type="number" min="0" max="100">
%
<br>
<img id="randomizeKnown"
onclick="toggleRandomize(this)"
src="../icons/knownGold.png">
<input id="knownProb" type="number" min="0" max="100">
% max:
<input id="knownMax" type="number" min="2" step="2">
<br>
<img id="randomizeHidden"
onclick="toggleRandomize(this)"
src="../icons/hiddenGold.png">
<input id="hiddenProb" type="number" min="0" max="100">
% max:
<input id="hiddenMax" type="number" min="2" step="2">
<br>
<button onclick="tweakDone()">Done</button>
<button onclick="tweakCancel()">Cancel</button>
</div>
<script>
start();
</script>
</body>
</html>