Skip to content

Commit 23f480c

Browse files
committed
added csc108h fork
1 parent 86329ea commit 23f480c

2 files changed

Lines changed: 421 additions & 0 deletions

File tree

‎v3/csc108h.html‎

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
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.jsPlumb-1.3.10-all-min.js "></script> <!-- for rendering SVG connectors
42+
DO NOT UPGRADE ABOVE 1.3.10 OR ELSE BREAKAGE WILL OCCUR -->
43+
<script type="text/javascript" src="js/jquery-ui-1.8.24.custom.min.js"></script> <!-- for sliders and other UI elements -->
44+
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.24.custom.css" rel="stylesheet" />
45+
46+
<!-- for annotation bubbles -->
47+
<script type="text/javascript" src="js/jquery.qtip.min.js"></script>
48+
<link type="text/css" href="css/jquery.qtip.css" rel="stylesheet" />
49+
50+
<script type="text/javascript" src="js/pytutor.js"></script>
51+
<link rel="stylesheet" href="css/pytutor.css"/>
52+
53+
54+
<!-- requirements for opt-frontend.js -->
55+
56+
<!-- codemirror.net online code editor -->
57+
<script type="text/javascript" src="js/codemirror/codemirror.js"></script>
58+
<link type="text/css" href="css/codemirror.css" rel="stylesheet" />
59+
<script type="text/javascript" src="js/codemirror/python.js"></script>
60+
61+
<script type="text/javascript" src="js/opt-frontend-common.js"></script>
62+
<script type="text/javascript" src="js/csc108h.js"></script>
63+
<link rel="stylesheet" href="css/opt-frontend.css"/>
64+
65+
</head>
66+
67+
<body>
68+
69+
<div id="pyInputPane">
70+
71+
Write your Python code here:
72+
<br/>
73+
74+
<div id="codeInputPane"></div> <!-- populate with a CodeMirror instance -->
75+
76+
<p>
77+
<button id="executeBtn" class="bigBtn" type="button">Visualize Execution</button>
78+
</p>
79+
80+
</div>
81+
82+
83+
<div id="pyOutputPane">
84+
</div>
85+
86+
<div id="footer">
87+
88+
<p>
89+
<button id="genUrlBtn" class="smallBtn" type="button">Generate URL</button> <input type="text" id="urlOutput" size="70"/>
90+
</p>
91+
92+
<p>To share this visualization, click the 'Generate URL' button above
93+
and share that URL. To report a bug, paste the URL along with a brief
94+
error description in an email addressed to philip@pgbovine.net</p>
95+
96+
This version of <a href="http://pythontutor.com/">Online Python Tutor</a> supports
97+
<a href="http://www.python.org/doc/3.3.0/">Python 3.3</a> with limited module
98+
imports and no file I/O.
99+
The following modules may be imported:
100+
bisect,
101+
collections,
102+
datetime,
103+
functools,
104+
heapq,
105+
itertools,
106+
json,
107+
math,
108+
operator,
109+
random,
110+
re,
111+
string
112+
</p>
113+
114+
<p>Have a question? Maybe the <a
115+
href="https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/docs/user-FAQ.md">FAQ</a>
116+
or other <a
117+
href="https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/docs/">documentation</a>
118+
can help. Or check out its code at <a
119+
href="https://github.com/pgbovine/OnlinePythonTutor/">GitHub</a>.</p>
120+
121+
<p>Join the <a
122+
href="https://groups.google.com/forum/#!forum/pythontutor-users">pythontutor-users</a>
123+
mailing list to participate in user discussions and <a
124+
href="https://groups.google.com/forum/#!forum/pythontutor-announce">pythontutor-announce</a>
125+
to receive occasional announcements.
126+
(Your name and email address will be kept private; only the list owner can see them.)</p>
127+
128+
<p style="margin-top: 8px;">
129+
Copyright &copy; 2010-2013 <a href="http://www.pgbovine.net/">Philip Guo</a>. All rights reserved.
130+
</p>
131+
132+
</div>
133+
134+
</body>
135+
</html>
136+

0 commit comments

Comments
 (0)