-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheapviz.html
62 lines (50 loc) · 2.49 KB
/
heapviz.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
<html>
<head>
<!-- requirements for pytutor.js -->
<script type="text/javascript" src="OnlinePythonTutor/v3/js/d3.v2.min.js"></script>
<script type="text/javascript" src="OnlinePythonTutor/v3/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="OnlinePythonTutor/v3/js/jquery.ba-bbq.min.js"></script> <!-- for handling back button and URL hashes -->
<script type="text/javascript" src="OnlinePythonTutor/v3/js/jquery.jsPlumb-1.3.10-all-min.js "></script> <!-- for rendering SVG connectors
DO NOT UPGRADE ABOVE 1.3.10 OR ELSE BREAKAGE WILL OCCUR -->
<script type="text/javascript" src="OnlinePythonTutor/v3/js/jquery-ui-1.8.24.custom.min.js"></script> <!-- for sliders and other UI elements -->
<link type="text/css" href="OnlinePythonTutor/v3/css/ui-lightness/jquery-ui-1.8.24.custom.css" rel="stylesheet" />
<!-- for annotation bubbles -->
<script type="text/javascript" src="OnlinePythonTutor/v3/js/jquery.qtip.min.js"></script>
<link type="text/css" href="OnlinePythonTutor/v3/css/jquery.qtip.css" rel="stylesheet" />
<script type="text/javascript" src="OnlinePythonTutor/v3/js/pytutor.js"></script>
<link rel="stylesheet" href="OnlinePythonTutor/v3/css/pytutor.css"/>
<!-- requirements for opt-frontend.js -->
<!-- codemirror.net online code editor -->
<script type="text/javascript" src="OnlinePythonTutor/v3/js/codemirror/codemirror.js"></script>
<link type="text/css" href="OnlinePythonTutor/v3/css/codemirror.css" rel="stylesheet" />
<script type="text/javascript" src="OnlinePythonTutor/v3/js/codemirror/python.js"></script>
<script type="text/javascript" src="OnlinePythonTutor/v3/js/opt-frontend.js"></script>
<link rel="stylesheet" href="OnlinePythonTutor/v3/css/opt-frontend.css"/>
<style>
table.visualizer td.vizLayoutTd:nth-child(1) {
position: absolute;
}
</style>
</head>
<body>
<div id="pyOutputPane">
</div>
<script type="text/javascript">
var dataFromBackend = ${JSON_TRACE}
var startingInstruction = ${STARTING_INSTRUCTION}
if (startingInstruction == -1) {
startingInstruction = dataFromBackend["trace"].length - 1;
}
var visualizer = new ExecutionVisualizer('pyOutputPane',
dataFromBackend,
{
startingInstruction: startingInstruction,
updateOutputCallback: function() {
$('#urlOutput,#embedCodeOutput').val('');
},
//allowEditAnnotations: true,
});
$('table.visualizer td.vizLayoutTd').first().css('display', 'none');
</script>
</body>
</html>