|
2 | 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
3 | 3 |
|
4 | 4 | <head> |
5 | | - <title>Online Python Tutor embedding test</title> |
| 5 | + <title>Online Python Tutor embedding demo</title> |
6 | 6 |
|
7 | | -<!-- requirements for pytutor.js --> |
| 7 | +<!-- dependencies for pytutor.js --> |
8 | 8 | <script type="text/javascript" src="js/d3.v2.min.js"></script> |
9 | 9 | <script type="text/javascript" src="js/jquery-1.6.min.js"></script> |
10 | 10 | <script type="text/javascript" src="js/jquery.ba-bbq.min.js"></script> <!-- for handling back button and URL hashes --> |
11 | 11 | <script type="text/javascript" src="js/jquery.jsPlumb-1.3.10-all-min.js "></script> <!-- for rendering SVG connectors --> |
12 | 12 | <script type="text/javascript" src="js/jquery-ui-1.8.21.custom.min.js"></script> <!-- for sliders and other UI elements --> |
13 | 13 | <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.21.custom.css" rel="stylesheet" /> |
14 | 14 |
|
| 15 | + |
| 16 | +<!-- Python Tutor frontend code and styles --> |
15 | 17 | <script type="text/javascript" src="js/pytutor.js"></script> |
16 | 18 | <link rel="stylesheet" href="css/pytutor.css"/> |
17 | 19 |
|
18 | 20 |
|
19 | | -<script type="text/javascript" src="embedding-examples.js"></script> |
| 21 | +<!-- Include this file AFTER all of its dependencies. |
| 22 | +
|
| 23 | +This JavaScript file contains the demo code - READ IT!!! |
20 | 24 |
|
| 25 | +--> |
| 26 | +<script type="text/javascript" src="embedding-demo.js"></script> |
21 | 27 |
|
22 | 28 | </head> |
23 | 29 |
|
24 | 30 | <body> |
25 | 31 |
|
26 | | -<p>Stuff:</p> |
| 32 | +<!-- |
| 33 | +
|
| 34 | +This demo shows three visualizations, each embedded within a div ... |
| 35 | +
|
| 36 | +--> |
27 | 37 |
|
28 | | -<div id="stuffDiv"></div> |
| 38 | + <p>Recursive list sum (from <a href="http://pythontutor.com">pythontutor.com</a> home page):</p> |
29 | 39 |
|
30 | | -<p>Aliasing 5:</p> |
| 40 | + <div id="listSumDiv"></div> |
31 | 41 |
|
32 | | -<div id="aliasing5Div"></div> |
33 | 42 |
|
34 | | -<p>Towers of Hanoi:</p> |
| 43 | + <p>Towers of Hanoi:</p> |
35 | 44 |
|
36 | | -<div id="hanoiDiv"></div> |
| 45 | + <div id="hanoiDiv"></div> |
| 46 | + |
| 47 | + |
| 48 | + <p>Happy Birthday:</p> |
| 49 | + |
| 50 | + <div id="happyDiv"></div> |
37 | 51 |
|
38 | 52 | </body> |
39 | 53 | </html> |
40 | | - |
|
0 commit comments