-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
54 lines (52 loc) · 2.75 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
<!DOCTYPE html>
<html>
<head>
<title>The Time Complexity Viewer</title>
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<link href="bower_components/c3/c3.min.css" rel="stylesheet" type="text/css">
<script src="bower_components/d3/d3.min.js" charset="utf-8"></script>
<script src="bower_components/c3/c3.min.js"></script>
<script src="bower_components/underscore/underscore-min.js"></script>
<script src="samples.js"></script>
<script src="behavior.js"></script>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta charset="UTF-8">
</head>
<body>
<h1 class="text-center">The Time Complexity Viewer</h1>
<div class="container">
<div class="inputArea col-md-5">
<h3>Enter a javascript function to profile:</h3>
<select class="form-control" onchange="setMode()">
<option value="number">Input type: Number</option>
<option value="array">Input type: Array</option>
<option value="string">Input type: String</option>
</select>
<samp><textarea id="script" class="form-control" rows="20"></textarea></samp><br>
<button class="btn btn-primary btn-block" onclick="run()">Go!</button>
</div>
<div class="results col-md-6">
<h3>Results:</h3>
<p>Paste in a function and hit Go!</p>
<div style="min-height: 290px"><div id="chart"></div></div>
<lable><strong>Inputs:</strong> these are passed to your function as its first argument, one at a time</label>
<samp><textarea class="form-control" rows="7"></textarea></samp>
<ul></ul>
</div>
</div>
<footer><a href="http://dsernst.com/2015/01/23/the-time-complexity-viewer/" target="_blank">About</a> | <a href="https://github.com/dsernst/time-complexity-viewer/" target="_blank">Source Code</a> | by <a href="http://twitter.com/dsernst" target="_blank">dsernst</a></footer>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-31592629-4', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>