-
Notifications
You must be signed in to change notification settings - Fork 0
/
embedding-demo-blur-frame.html
65 lines (51 loc) · 3.49 KB
/
embedding-demo-blur-frame.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Online Python Tutor embedding demo</title>
<meta http-Equiv="Cache-Control" Content="no-cache">
<meta http-Equiv="Pragma" Content="no-cache">
<meta http-Equiv="Expires" Content="0">
<!-- dependencies for pytutor.js -->
<script type="text/javascript" src="js/d3.v2.min.js"></script>
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/jquery.simplemodal.js"></script> <!-- for questions -->
<script type="text/javascript" src="js/jquery.ba-bbq.min.js"></script> <!-- for handling back button and URL hashes -->
<script type="text/javascript" src="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="js/jquery-ui-1.8.24.custom.min.js"></script> <!-- for sliders and other UI elements -->
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.24.custom.css" rel="stylesheet" />
<link type="text/css" href="css/basic.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.qtip.min.js"></script>
<link type="text/css" href="css/jquery.qtip.css" rel="stylesheet" />
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.foggy.min.js"></script>
<!-- Python Tutor frontend code and styles -->
<script type="text/javascript" src="js/pytutor.js"></script>
<link rel="stylesheet" href="css/pytutor.css"/>
<!-- This JavaScript file contains the demo code - READ IT!!!
(Include this file AFTER all of its dependencies.)
-->
<script type="text/javascript" src="embedding-demo.js"></script>
<link rel="stylesheet" href="embedding-demo-blur.css"/>
</head>
<body>
<div id="container">
<iframe id="iframeBlur" frameBorder="0" width="800" height="110" scrolling="no" src="http://45.56.123.166/~mgordon/OnlinePythonTutor/v3/embedding-demo-blur.html?session=g685ii5eqb1kbj4i"></iframe>
<a id = "urlInFrame" target="_blank" style="font-family:verdana, arial, helvetica, sans-serif;" href="#">Want to help our research? Click here!</a>
</div>
<script>
// var sessions = ["6f1tnvrh8nlmobt9", "fdsahu0yq9rh03f"];
var sessions = ["r5lc4o2l9x561or"];
var steps = ["29", "27", "24", "17", "16", "12", "11"];
var session = sessions[Math.floor(Math.random() * sessions.length)];
var step = steps[Math.floor(Math.random() * steps.length)];
var uuid = getUrlParameter("opt_uuid");
// var urlForIframeLink = "http://45.56.123.166/~mgordon/OnlinePythonTutor/v3/embedding-demo.html?session=" + session + "&jumpToRandomStep=true&opt_uuid=" + uuid + "&comparisonVoting=true";
// var urlForIframeLink = "http://45.56.123.166/~mgordon/OnlinePythonTutor/v3/embedding-demo.html?session=" + session + "&jumpToRandomStep=false&opt_uuid=" + uuid + "&pick_best_annotation_mode=true";
var urlForIframeLink = "http://45.56.123.166/~mgordon/OnlinePythonTutor/v3/embedding-demo.html?session=" + session + "&jumpToStep=" + step + "&opt_uuid=" + uuid;
$("#urlInFrame").attr("href", urlForIframeLink);
var urlForIframe = "http://45.56.123.166/~mgordon/OnlinePythonTutor/v3/embedding-demo-blur.html?session=" + session + "&opt_uuid=" + uuid;
document.getElementById('iframeBlur').src = urlForIframe;
</script>
</body>
</html>