-
Notifications
You must be signed in to change notification settings - Fork 0
/
interactive-dev.php
executable file
·137 lines (127 loc) · 6.41 KB
/
interactive-dev.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
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
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>PHYLO | Expert Edition</title>
<link href="css/trontastic/jquery-ui-1.8.17.custom.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/lib/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="js/lib/JSON.js"></script>
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>-->
<script type="text/javascript" src="js/consts.js"></script>
<script type="text/javascript">
var args = {};
<? if (isset($_GET['rand'])){ ?>
args.rand=true;
<? } if (isset($_GET['space']) && ($_GET['space'] == 'short' || $_GET['space'] == 'none')){ ?>
args.space="<? echo htmlspecialchars($_GET['space']); ?>";
<? } if (isset($_GET['name']) && preg_match("/^[A-Za-z0-9_.-]+$/", $_GET['name']) == 1){ ?>
args.name="<? echo htmlspecialchars($_GET['name']); ?>";
<? } if (isset($_GET['id'])){ ?>
args.id="<? echo htmlspecialchars($_GET['id']); ?>";
<? } else { ?>
args.id='3871';
<? } if (isset($_GET['subscore'])){ ?>
args.ui_showscore="<? echo htmlspecialchars($_GET['subscore']); ?>";
<? } ?>
</script>
<script type="text/javascript" src="js/noconsole.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
<script type="text/javascript" src="js/msg.js"></script>
<script type="text/javascript" src="js/lang.js"></script>
<script type="text/javascript" src="js/fitch.js"></script>
<script type="text/javascript" src="js/in.js"></script>
<script type="text/javascript" src="js/scorebar.js"></script>
<script type="text/javascript" src="js/buttoncolumn.js"></script>
<script type="text/javascript" src="js/ui.js"></script>
<script type="text/javascript" src="js/window.js"></script>
<script type="text/javascript" src="js/htmlelements.js"></script>
<script type="text/javascript" src="js/lib/bootbox.min.js"></script>
<script type="text/javascript" src="js/validation/cookie.validation.js"></script>
<script type="text/javascript" src="js/validation/login2.validation.js"></script>
</head>
<body>
<?php $THIS_PAGE = 'play'; include 'navbar.php'; ?>
<div id="page-wrapper">
<div id="page">
<div id="header-wrapper">
<div id="header">
</div>
</div>
<div id='inner-wrapper'>
<div id="main-wrapper">
<canvas id="scorebar-area" width="1400" height="100"></canvas>
<div id="canvas-container">
<div id='ancestor-selection-box'></div>
<canvas id="tree-area" width="200" height="800"></canvas><canvas id="drawing-area" width="1400" height="800"></canvas><canvas id="buttoncolumn-area" width="1400" height="800"></canvas>
</div>
</div>
<div id="viewport-wrapper"><canvas id="viewport" width="1400" height="100"></canvas></div>
<div id="messagebox-wrapper">
<button id="stats-toggle" class="btn" data-toggle="collapse" data-target="#stats-div">Toggle Details</button>
<button id="stats-submit" class="btn">Submit My Best Score</button>
<div id="stats-div" class="collapse in">
<table id="stats">
<tr>
<td><label for="stats-stage">Stage</label></td>
<td><label for="stats-par">Par</label></td>
<td><label for="stats-mismatches">Matches</label></td>
<td><label for="stats-matches">Mismatches</label></td>
<td><label for="stats-gaps">Gaps</label></td>
<td><label for="stats-gapexts">Gap Extends</label></td>
<td><label for="scores-score">Score:</label></td>
<td><label for="scores-best">Best:</label></td>
</tr>
<tr>
<td><span id="stats-stage"><? echo ( isset($_GET['id']) ? htmlspecialchars($_GET['id']) : $_GET['id'] = '3871'); ?></span></td>
<td><span id="stats-par">0</span></td>
<td><span id="stats-mismatches"></span></td>
<td><span id="stats-matches"></span></td>
<td><span id="stats-gaps"></span></td>
<td><span id="stats-gapexts"></span></td>
<td><span id="scores-score"></span></td>
<td><span id="scores-best"></span></td>
</tr>
</table>
</div>
<!--
<div id="stats" class="row">
<div class="span2"><label for="stats-mismatches">Matches</label><span id="stats-mismatches"></span></div>
<div class="span2"><label for="stats-matches">Mismatches</label><span id="stats-matches"></span></div>
<div class="span2"><label for="stats-gaps">Gaps</label><span id="stats-gaps"></span></div>
<div class="span2"><label for="stats-gapexts">Gap Extends</label><span id="stats-gapexts"></span></div>
<div class="span2"><label for="scores-score">Score:</label><span id="scores-score"></span></div>
<div class="span2"><label for="scores-best">Best:</label><span id="scores-best"></span></div>
<div class="span2"><label for="stats-stage">Stage</label><span id="stats-stage"><? echo ( isset($_GET['id']) ? htmlspecialchars($_GET['id']) : $_GET['id'] = '3871'); ?></span></div>
<div class="span2"><label for="stats-par">Par</label><span id="stats-par">0</span></div>
</div>-->
<!--<table id="stats">
<tr>
<td><label for="stats-matches">Mismatches</label><span id="stats-matches"></span></td>
<td><label for="stats-gapexts">Gap Extends</label><span id="stats-gapexts"></span></td>
<td><label for="stats-stage">Stage</label><span id="stats-stage"><? echo ( isset($_GET['id']) ? htmlspecialchars($_GET['id']) : '3871'); ?></span></td>
</tr>
<tr>
<td><label for="stats-mismatches">Matches</label><span id="stats-mismatches"></span></td>
<td><label for="stats-gaps">Gaps</label><span id="stats-gaps"></span></td>
<td><label for="stats-par">Par</label><span id="stats-par"></span></td>
</tr>
</table>-->
</div>
</div>
<div id="selection-box"></div>
</div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-27559307-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>