Skip to content

Commit 974af62

Browse files
pgbovinemmmicedcoffee
authored andcommitted
tiny
1 parent bb27624 commit 974af62

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎v3/js/pytutor.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ ExecutionVisualizer.prototype.render = function() {
412412
}
413413

414414
this.allowEditAnnotations = false;
415+
416+
// add an extra label to link back to the main site, so that viewers
417+
// on the embedded page know that they're seeing an OPT visualization
418+
this.domRoot.find('#codeDisplayDiv').append('<div style="font-size: 8pt; margin-bottom: 20px;">Code visualized with <a href="http://pythontutor.com" target="_blank">Online Python Tutor</a></div>');
415419
}
416420

417421
myViz.editAnnotationMode = false;

0 commit comments

Comments
 (0)