Skip to content

Commit 93b40c1

Browse files
committed
bam
1 parent 4d16b83 commit 93b40c1

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

‎v3/js/opt-frontend.js‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -326,18 +326,6 @@ function chatBoxToggled(visible) {
326326
$(document).ready(function() {
327327
setSurveyHTML();
328328

329-
// deployed on 2015-03-12, taken down on 2015-03-16
330-
//$("#surveyHeader").html('<a href="http://45.56.123.166/~mgordon/OnlinePythonTutor/v3/embedding-demo.html?session=fvkqv4423mcxr" target="_blank">Click here to help our research</a> by collaboratively annotating<br/>a piece of Python code to create a tutorial for beginners.');
331-
//$("#surveyHeader").css('font-size', '12pt');
332-
333-
var myUuid = supports_html5_storage() ? localStorage.getItem('opt_uuid') : '';
334-
335-
// deployed on 2015-03-19, added opt_uuid param on 2015-03-20
336-
$("#surveyHeader")
337-
.html('<iframe width="820" height="120" frameborder="0" src="http://45.56.123.166/~mgordon/OnlinePythonTutor/v3/embedding-demo-blur-frame.html?opt_uuid=' + myUuid + '"></iframe>')
338-
.css('margin-bottom', '10px');
339-
340-
341329
// for OPT live chat tutoring interface -- DEPRECATED FOR NOW
342330
/*
343331
try {
@@ -437,6 +425,20 @@ $(document).ready(function() {
437425

438426
genericOptFrontendReady(); // initialize at the end
439427

428+
429+
// deployed on 2015-03-12, taken down on 2015-03-16
430+
//$("#surveyHeader").html('<a href="http://45.56.123.166/~mgordon/OnlinePythonTutor/v3/embedding-demo.html?session=fvkqv4423mcxr" target="_blank">Click here to help our research</a> by collaboratively annotating<br/>a piece of Python code to create a tutorial for beginners.');
431+
//$("#surveyHeader").css('font-size', '12pt');
432+
433+
// run this AFTER genericOptFrontendReady so that opt_uuid is already
434+
// set by now
435+
var myUuid = supports_html5_storage() ? localStorage.getItem('opt_uuid') : '';
436+
// deployed on 2015-03-19, added opt_uuid param on 2015-03-20
437+
$("#surveyHeader")
438+
.html('<iframe width="820" height="120" frameborder="0" src="http://45.56.123.166/~mgordon/OnlinePythonTutor/v3/embedding-demo-blur-frame.html?opt_uuid=' + myUuid + '"></iframe>')
439+
.css('margin-bottom', '10px');
440+
441+
440442
initAceAndOptions(); // do this after genericOptFrontendReady
441443

442444
// connect on-demand in logEvent(), not here

0 commit comments

Comments
 (0)