Skip to content

Commit beda7df

Browse files
author
Philip Guo
committed
bammy
1 parent 30f9858 commit beda7df

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

PyTutorGAE/js/pytutor.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2828

2929

3030
// Massive refactoring notes:
31-
// - we need a d3 selector for domRoot (use this
31+
// - test whether preseeded code and curInstr works
32+
// - test whether back button works properly
3233
// - does jsPlumb have a notion of "sets" of connectors so that we can reset a particular
3334
// set rather than ALL connections?
35+
// - executed lines highlighting seems to be broken
3436

3537

3638
function ExecutionVisualizer(inputCode, traceData, startingInstruction, domRootID) {
@@ -268,6 +270,9 @@ ExecutionVisualizer.prototype.render = function() {
268270
myViz.curInstr -= 1;
269271
}
270272
myViz.updateOutput();
273+
274+
k.preventDefault(); // don't horizontally scroll the display
275+
myViz.keyStuckDown = true;
271276
}
272277
}
273278
else if (k.keyCode == 39) { // right arrow
@@ -284,11 +289,11 @@ ExecutionVisualizer.prototype.render = function() {
284289
myViz.curInstr += 1;
285290
}
286291
myViz.updateOutput();
292+
293+
k.preventDefault(); // don't horizontally scroll the display
294+
myViz.keyStuckDown = true;
287295
}
288296
}
289-
290-
k.preventDefault(); // don't horizontally scroll the display
291-
myViz.keyStuckDown = true;
292297
}
293298
});
294299

PyTutorGAE/tutor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
<!-- my own code -->
5858
<script type="text/javascript" src="js/pytutor.js"></script>
59-
<script type="text/javascript" src="js/edu-python-tutor.js"></script>
59+
<script type="text/javascript" src="js/opt-frontend.js"></script>
6060

6161
<link rel="stylesheet" href="css/pytutor.css"/>
6262

0 commit comments

Comments
 (0)