forked from DanielVF/Planet-Wars-Canvas-Visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
72 lines (61 loc) · 2.21 KB
/
index.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
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
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<!--[if IE]><![endif]-->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
<link rel="stylesheet" href="css/style.css?v=1">
<script src="js/modernizr-1.5.min.js"></script>
</head>
<!--[if lt IE 7 ]> <body class="ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie7"> <![endif]-->
<!--[if IE 8 ]> <body class="ie8"> <![endif]-->
<!--[if IE 9 ]> <body class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]-->
<div id="container">
<header>
<table id="players">
<tr>
<td width='40%' align="right" class="player1Name"></td>
<td width='20%' align="center" class="playerVs">Loading</td>
<td width='40%' align="left" class="player2Name"></td>
</tr>
</table>
</header>
<div id="main">
<canvas id="display" width="640" height="640"></canvas>
<p id="turnCounter">Loading</p>
<p id="controls">
<a href="#" id="start-button"><span class="small">|</span>«</a> |
<a href="#" id="prev-frame-button">«</a> |
<a href="#" id="play-button">▶</a> |
<a href="#" id="next-frame-button">»</a> |
<a href="#" id="end-button">»<span class="small">|</span></a>
</p>
<p>
<br>
<br>
<canvas id="chart" width="640" height="100" ></canvas>
</p>
</div>
<footer>
</footer>
</div> <!-- end of #container -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>!window.jQuery && document.write('<script src="js/jquery-1.4.2.min.js"><\/script>')</script>
<script>
<?php
$input = file_get_contents('input');
echo 'var data = "' . str_replace("\n", "\\n", $input) . '"';
?>
</script>
<script src="js/visualizer.js?v=1"></script>
<!--[if lt IE 7 ]>
<script src="js/dd_belatedpng.js?v=1"></script>
<![endif]-->
</body>
</html>