-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolliseum.php
42 lines (37 loc) · 1.16 KB
/
colliseum.php
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
<html>
<head>
<script type='text/javascript' src='colliseum.js'></script>
<link rel='stylesheet' type='text/css' href='colliseum.css'/>
<?php
$gladiator_files = scandir(getcwd() . DIRECTORY_SEPARATOR . "gladiators");
for ($i=0; $i<count($gladiator_files); $i++){
if (strpos($gladiator_files[$i], ".js") !== false) {
echo("\t\t<script type='text/javascript' src='gladiators/" . $gladiator_files[$i] . "'></script>\n");
}
}
echo("\n");
?>
</head>
<body>
<div id='home_team' class='roster'>
<div class='banner'>Home Team</div>
Remaining: <span id='home_count'></span><br/>
Score: <span id='home_score'>0</span><br/>
<select id='home_select'></select><br/>
<button id='home_load'>Load</button>
</div>
<div id='away_team' class='roster'>
Away Team<br/>
Remaining: <span id='away_count'></span><br/>
Score: <span id='away_score'>0</span></br>
<select id='away_select'></select><br/>
<button id='away_load'>Load</button>
</div>
<div id='battlefield'>
</div>
<div id='controls'>
<div id='turns'>Turns Left: <span id='turns_left'>0</span></div>
<span id='start_button'>Start</span>
</div>
</body>
</html>