-
Notifications
You must be signed in to change notification settings - Fork 2
/
visualize.html
74 lines (72 loc) · 2.8 KB
/
visualize.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<style> {% include "all.css" %} </style>
<style>
.CodeMirror pre { font-size: 25px; }
.CodeMirror-linenumber { font-size: 25px; }
.rendering { width:635px; height:425px; margin: 3px 0 0 0; }
.speed { width: 125px; font-size: 110%; margin: 10px 7px 0px 1px; }
.slider { width: 145px; font-size: 100%; margin: 17px 5px 0px 0px; }
.progress {font-size: 100%; width:200px; margin: 19px -30px 0px 40px; }
.vizhead { padding:5px 0 0 10px; background: white; font-size: 22px; }
.viz { padding:3px; padding-top:0; background: white }
.tab_content { padding: 5px 20px 10px 20px; }
.hidden { position: absolute; display: none; }
.overlay { position: absolute; top: 11px; left: 16px; font-size: 12px; }
.smaller { font-size: 16px; }
.moveupmore { top: -8px; }
body, html { overflow: hidden; }
</style>
<title>PyAlgoViz - {{name}}</title>
</head>
<body>
<div>
<input id='name' class='hidden' value='{{name}}'>
<div class="hidden">
<textarea id="script" name="script">none</textarea>
</div>
<div class="hidden">
<textarea id="visualization">none</textarea>
<textarea id="output" style="visibility:hidden">none</textarea>
</div>
<div class=vizhead>
<table style="display:none; margin: 3px 0 0 -2px">
<tr>
<td>
<button onclick="doPreviousStep()" id="previousButton" class='button smaller'><</button>
</td><td>
</td><td>
<div id="slider" class='slider'></div>
</td><td>
</td><td>
<div id="progress" class="progress moveup smaller">Loading...</div>
</td><td>
<button onclick="doNextStep()" id="nextButton" class='button smaller'>></button>
</td><td>
<button onclick="doStop()" id="stopButton" class='button smaller'>Play</button>
</td>
</tr>
<tr>
<td colspan=7>
</td>
</tr>
</table>
<div id="rendering" class="rendering"></div>
<div class="overlay">
<a target="_blank" href="{{url}}">open in PyAlgoViz...</a>
<a href="javascript:document.location.reload()">reload</a>
</div>
</div>
</div>
</div>
{% include "all.html" %}
<script>
</script>
</body>
</html>