Skip to content

Commit f09fb1f

Browse files
committed
bah
1 parent 6709ebb commit f09fb1f

File tree

2 files changed

+195
-16
lines changed

2 files changed

+195
-16
lines changed

v3/csc108h.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,22 +82,6 @@
8282
<a href="https://www.youtube.com/watch?v=Z2TIjNArOK4" target="_blank">What are shared sessions?</a>
8383
</div>
8484

85-
<div>
86-
<button id="sharedSessionBtn" type="button" class="togetherjsBtn">
87-
Start a shared session
88-
</button>
89-
</div>
90-
91-
<div id="sharedSessionDisplayDiv" style="display: none;">
92-
<button id="stopTogetherJSBtn" type="button" class="togetherjsBtn">
93-
End shared session
94-
</button>
95-
96-
<div style="width: 200px; font-size: 8pt; color: #666; margin-top: 5px;">
97-
Your chat logs and code may be recorded, anonymized, and analyzed for research.
98-
</div>
99-
</div>
100-
10185
</td>
10286

10387
<td valign="top" style="padding-left: 20px;">

v3/csc108h_shared.html

Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
4+
<!--
5+
6+
Online Python Tutor
7+
https://github.com/pgbovine/OnlinePythonTutor/
8+
9+
Copyright (C) 2010-2013 Philip J. Guo (philip@pgbovine.net)
10+
11+
Permission is hereby granted, free of charge, to any person obtaining a
12+
copy of this software and associated documentation files (the
13+
"Software"), to deal in the Software without restriction, including
14+
without limitation the rights to use, copy, modify, merge, publish,
15+
distribute, sublicense, and/or sell copies of the Software, and to
16+
permit persons to whom the Software is furnished to do so, subject to
17+
the following conditions:
18+
19+
The above copyright notice and this permission notice shall be included
20+
in all copies or substantial portions of the Software.
21+
22+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
26+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29+
30+
-->
31+
32+
<head>
33+
<title>Online Python Tutor - Visualize program execution - csc108h</title>
34+
35+
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
36+
37+
<!-- requirements for pytutor.js -->
38+
<script type="text/javascript" src="js/d3.v2.min.js"></script>
39+
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
40+
<script type="text/javascript" src="js/jquery.ba-bbq.min.js"></script> <!-- for handling back button and URL hashes -->
41+
<script type="text/javascript" src="js/jquery.ba-dotimeout.min.js"></script> <!-- for event debouncing -->
42+
<script type="text/javascript" src="js/jquery.jsPlumb-1.3.10-all-min.js "></script> <!-- for rendering SVG connectors
43+
DO NOT UPGRADE ABOVE 1.3.10 OR ELSE BREAKAGE WILL OCCUR -->
44+
<script type="text/javascript" src="js/jquery-ui-1.8.24.custom.min.js"></script> <!-- for sliders and other UI elements -->
45+
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.24.custom.css" rel="stylesheet" />
46+
47+
<!-- for annotation bubbles -->
48+
<!--
49+
<script type="text/javascript" src="js/jquery.qtip.min.js"></script>
50+
<link type="text/css" href="css/jquery.qtip.css" rel="stylesheet" />
51+
-->
52+
53+
<script type="text/javascript" src="js/pytutor.js"></script>
54+
<link rel="stylesheet" href="css/pytutor.css"/>
55+
56+
57+
<!-- requirements for opt-frontend.js -->
58+
59+
<!-- codemirror.net online code editor -->
60+
<script type="text/javascript" src="js/codemirror/codemirror.js"></script>
61+
<link type="text/css" href="css/codemirror.css" rel="stylesheet" />
62+
<script type="text/javascript" src="js/codemirror/python.js"></script>
63+
64+
<script type="text/javascript" src="js/opt-frontend-common.js"></script>
65+
<script type="text/javascript" src="js/csc108h.js"></script>
66+
<link rel="stylesheet" href="css/opt-frontend.css"/>
67+
68+
<!-- include this AFTER opt-frontend.js so that configuration
69+
global variables are already defined at load time -->
70+
<script type="text/javascript" src="js/togetherjs/togetherjs-min.js"></script>
71+
72+
</head>
73+
74+
<body>
75+
76+
77+
<table id="experimentalHeader">
78+
<tr>
79+
<td valign="top">
80+
81+
<div style="font-size: 8pt; margin-left: 2px; margin-bottom: 2px;">
82+
<a href="https://www.youtube.com/watch?v=Z2TIjNArOK4" target="_blank">What are shared sessions?</a>
83+
</div>
84+
85+
<div>
86+
<button id="sharedSessionBtn" type="button" class="togetherjsBtn">
87+
Start a shared session
88+
</button>
89+
</div>
90+
91+
<div id="sharedSessionDisplayDiv" style="display: none;">
92+
<button id="stopTogetherJSBtn" type="button" class="togetherjsBtn">
93+
End shared session
94+
</button>
95+
96+
<div style="width: 200px; font-size: 8pt; color: #666; margin-top: 5px;">
97+
Your chat logs and code may be recorded, anonymized, and analyzed for research.
98+
</div>
99+
</div>
100+
101+
</td>
102+
103+
<td valign="top" style="padding-left: 20px;">
104+
<div id="togetherjsStatus"></div>
105+
106+
<!-- copied from visualize.html -->
107+
<div id="surveyHeader" style="display: none;">
108+
<div id="vizSurveyLabel" style="font-size: 8pt; color: #666; margin-bottom: 5pt;">
109+
Support our research and help future learners by describing what you are learning.
110+
</div>
111+
<div style="font-size: 10pt; margin-bottom: 5pt; padding: 1pt;">
112+
What did you just learn?
113+
<input style="font-size: 10pt; padding: 1pt;" type="text" id="iJustLearnedInput" size="60" maxlength=300/>
114+
115+
<button id="iJustLearnedSubmission" type="button" style="font-size: 10pt;">Submit</button>
116+
117+
<span id="iJustLearnedThanks"
118+
style="color: #e93f34; font-weight: bold; font-size: 11pt; display: none;">
119+
Thanks!
120+
</span>
121+
</div>
122+
</div>
123+
124+
</td>
125+
</tr>
126+
</table>
127+
128+
129+
<div id="pyInputPane">
130+
131+
<div id="codeInputWarnings">Write Python code here:</div>
132+
<div id="codeInputPane"></div> <!-- populate with a CodeMirror instance -->
133+
<div id="frontendErrorOutput"></div>
134+
<div id="surveyPane"></div>
135+
136+
<p>
137+
<button id="executeBtn" class="bigBtn" type="button">Visualize Execution</button>
138+
</p>
139+
140+
</div>
141+
142+
143+
<div id="pyOutputPane">
144+
</div>
145+
146+
<div id="footer">
147+
148+
<p>
149+
<button id="genUrlBtn" class="smallBtn" type="button">Generate permanent link</button> <input type="text" id="urlOutput" size="70"/>
150+
</p>
151+
152+
<p>Click the button above to create a permanent link to your
153+
visualization. To report a bug, paste the link along with a brief error
154+
description in an email addressed to philip@pgbovine.net</p>
155+
156+
<p>
157+
This version of <a href="http://pythontutor.com/">Online Python Tutor</a> supports
158+
<a href="http://www.python.org/doc/3.3.0/">Python 3.3</a> with limited module
159+
imports and no file I/O.
160+
The following modules may be imported:
161+
bisect,
162+
collections,
163+
datetime,
164+
functools,
165+
heapq,
166+
itertools,
167+
json,
168+
math,
169+
operator,
170+
random,
171+
re,
172+
string
173+
</p>
174+
175+
<p>Have a question? Maybe the <a
176+
href="https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/docs/user-FAQ.md">FAQ</a>
177+
or other <a
178+
href="https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/docs/">documentation</a>
179+
can help. Or check out its code at <a
180+
href="https://github.com/pgbovine/OnlinePythonTutor/">GitHub</a>.</p>
181+
182+
<p>By using Online Python Tutor, your visualized code, options, and IP
183+
address are logged on our server and may be analyzed for research
184+
purposes. Nearly all Web services collect this basic information from
185+
users. However, Online Python Tutor does not collect any personal
186+
information, cookies, or session state from users.</p>
187+
188+
<p style="margin-top: 8px;">
189+
Copyright &copy; 2010-2014 <a href="http://www.pgbovine.net/">Philip Guo</a>. All rights reserved.
190+
</p>
191+
192+
</div>
193+
194+
</body>
195+
</html>

0 commit comments

Comments
 (0)