-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (103 loc) · 3.83 KB
/
index.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
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
<!DOCTYPE html>
<html>
<head>
<title>Realtime charting performance</title>
<!-- Thirdparty -->
<script type="text/javascript" src="lib/kinetic-v4.5.4.min.js"></script>
<script type="text/javascript" src="lib/two.js"></script>
<script type="text/javascript" src="lib/knockout.js"></script>
<script type="text/javascript" src="lib/raphael.js"></script>
<script type="text/javascript" src="lib/sylvester.js"></script>
<!-- Basic WebGL Library -->
<script type="text/javascript">gl={};</script>
<script type="text/javascript" src="gl/Math.js"></script>
<script type="text/javascript" src="gl/Canvas.js"></script>
<script type="text/javascript" src="gl/Polygon.js"></script>
<script type="text/javascript" src="gl/Shader.js"></script>
<!-- Scripts -->
<script type="text/javascript" src="js/start.js"></script>
<script type="text/javascript" src="js/ControlViewModel.js"></script>
<script type="text/javascript" src="js/Sparkline.js"></script>
<!-- Renderer -->
<script type="text/javascript" src="js/renderer/CanvasApiRenderer.js"></script>
<script type="text/javascript" src="js/renderer/CanvasPixelRenderer.js"></script>
<script type="text/javascript" src="js/renderer/TwoJsRenderer.js"></script>
<script type="text/javascript" src="js/renderer/RaphaelRenderer.js"></script>
<script type="text/javascript" src="js/renderer/NativeWebGl.js"></script>
<script type="text/javascript" src="js/renderer/KineticRenderer.js"></script>
<!-- Styles -->
<link type="text/css" href="css/bootstrap.min.css" media="screen" rel="stylesheet" />
<link type="text/css" href="css/bootstrap-responsive.min.css" media="screen" rel="stylesheet" />
<link type="text/css" href="css/screen.css" media="screen" rel="stylesheet" />
<!-- Fluid layout -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body class="container-fluid">
<div class="row-fluid fullHeight">
<!-- Left column -->
<div class="span10 fullHeight">
<ul id="output"></ul>
</div>
<!-- Right column -->
<div class="span2">
<div id="controls">
<fieldset>
<legend>Performance</legend>
<ul>
<li>
<h2>
<span data-bind="text:fps"></span>
<small>fps</small>
</h2>
</li>
<li>
<label>Measure Interval</label>
<input type="text" data-bind="value:fpsMeasureInterval" />
</li>
</ul>
</fieldset>
<fieldset>
<legend>Data Generator</legend>
<ul>
<li>
<label>Updates per second</label>
<input type="text" data-bind="value:updatesPerSeconds" />
<input type="range" data-bind="value:updatesPerSeconds" min="0.1" max = "40" />
</li>
<li>
<label>Current Value</label>
<input type="text" data-bind="value:value" />
</li>
<li>
<label>Data generation is</label>
<button class="btn dataGeneration" data-bind="click:toggle, text: toggleText, css:{'btn-success': isRunning}"></button>
</li>
</ul>
</fieldset>
<fieldset>
<legend>Number of Charts</legend>
<ul class="numberOfCharts">
<li>
<button class="btn" data-bind="click:setChartNumber.bind($data, -1), enable:chartNumber() > 1">-</button>
<input type="text" data-bind="value:chartNumber"/>
<button class="btn" data-bind="click:setChartNumber.bind($data, 1)">+</button>
</li>
</ul>
</fieldset>
<fieldset>
<legend>Renderer</legend>
<ul class="btn-group btn-group-vertical" data-bind="foreach: renderer">
<li
class="btn btn-primary"
data-bind="
css:{'btn-primary': $parent.activeRenderer()===className},
click:$parent.activeRenderer.bind( $parent, className),
html:name">
</li>
</ul>
</fieldset>
</div>
</div>
</div>
</body>
</html>