File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343< script type ="text/javascript " src ="js/jquery-ui-1.8.24.custom.min.js "> </ script > <!-- for sliders and other UI elements -->
4444< link type ="text/css " href ="css/ui-lightness/jquery-ui-1.8.24.custom.css " rel ="stylesheet " />
4545
46- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
47- < link type ="text/css " href ="css/jquery.ui.chatbox.css " rel ="stylesheet " />
48- < script type ="text/javascript " src ="js/jquery.ui.chatbox.js "> </ script >
49-
5046
5147<!-- for annotation bubbles -->
5248< script type ="text/javascript " src ="js/jquery.qtip.min.js "> </ script >
180176
181177</ div >
182178
183- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
184- < div id ="chat_div "> </ div >
185-
186179</ body >
187180</ html >
Original file line number Diff line number Diff line change 4646< script type ="text/javascript " src ="js/jquery-ui-1.8.24.custom.min.js "> </ script > <!-- for sliders and other UI elements -->
4747< link type ="text/css " href ="css/ui-lightness/jquery-ui-1.8.24.custom.css " rel ="stylesheet " />
4848
49- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
50- < link type ="text/css " href ="css/jquery.ui.chatbox.css " rel ="stylesheet " />
51- < script type ="text/javascript " src ="js/jquery.ui.chatbox.js "> </ script >
52-
53-
5449<!-- for annotation bubbles -->
5550< script type ="text/javascript " src ="js/jquery.qtip.min.js "> </ script >
5651< link type ="text/css " href ="css/jquery.qtip.css " rel ="stylesheet " />
362357
363358</ div >
364359
365- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
366- < div id ="chat_div "> </ div >
367-
368360</ body >
369361</ html >
Original file line number Diff line number Diff line change 4646< script type ="text/javascript " src ="js/jquery-ui-1.8.24.custom.min.js "> </ script > <!-- for sliders and other UI elements -->
4747< link type ="text/css " href ="css/ui-lightness/jquery-ui-1.8.24.custom.css " rel ="stylesheet " />
4848
49- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
50- < link type ="text/css " href ="css/jquery.ui.chatbox.css " rel ="stylesheet " />
51- < script type ="text/javascript " src ="js/jquery.ui.chatbox.js "> </ script >
52-
5349
5450<!-- for annotation bubbles -->
5551< script type ="text/javascript " src ="js/jquery.qtip.min.js "> </ script >
357353
358354</ div >
359355
360- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
361- < div id ="chat_div "> </ div >
362-
363356</ body >
364357</ html >
Original file line number Diff line number Diff line change 4646< script type ="text/javascript " src ="js/jquery-ui-1.8.24.custom.min.js "> </ script > <!-- for sliders and other UI elements -->
4747< link type ="text/css " href ="css/ui-lightness/jquery-ui-1.8.24.custom.css " rel ="stylesheet " />
4848
49- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
50- < link type ="text/css " href ="css/jquery.ui.chatbox.css " rel ="stylesheet " />
51- < script type ="text/javascript " src ="js/jquery.ui.chatbox.js "> </ script >
52-
5349
5450<!-- for annotation bubbles -->
5551< script type ="text/javascript " src ="js/jquery.qtip.min.js "> </ script >
403399
404400</ div >
405401
406- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
407- < div id ="chat_div "> </ div >
408-
409402</ body >
410403</ html >
Original file line number Diff line number Diff line change 4747< script type ="text/javascript " src ="js/jquery-ui-1.8.24.custom.min.js "> </ script > <!-- for sliders and other UI elements -->
4848< link type ="text/css " href ="css/ui-lightness/jquery-ui-1.8.24.custom.css " rel ="stylesheet " />
4949
50- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
51- < link type ="text/css " href ="css/jquery.ui.chatbox.css " rel ="stylesheet " />
52- < script type ="text/javascript " src ="js/jquery.ui.chatbox.js "> </ script >
53-
5450
5551<!-- for annotation bubbles -->
5652< script type ="text/javascript " src ="js/jquery.qtip.min.js "> </ script >
350346
351347</ div >
352348
353- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
354- < div id ="chat_div "> </ div >
355-
356349</ body >
357350</ html >
Original file line number Diff line number Diff line change @@ -1234,8 +1234,9 @@ function updateAppDisplay(newAppMode) {
12341234
12351235 var s = { mode : 'edit' } ;
12361236 // keep these persistent so that they survive page reloads
1237- if ( codeopticonSession ) { s . cosession = codeopticonSession ; }
1238- if ( codeopticonUsername ) { s . couser = codeopticonUsername ; }
1237+ // keep these persistent so that they survive page reloads
1238+ if ( typeof codeopticonSession !== "undefined" ) { s . cosession = codeopticonSession ; }
1239+ if ( typeof codeopticonUsername !== "undefined" ) { s . couser = codeopticonUsername ; }
12391240 $ . bbq . pushState ( s , 2 /* completely override other hash strings to keep URL clean */ ) ;
12401241 }
12411242 else if ( appMode == 'display' || appMode == 'visualize' /* 'visualize' is deprecated */ ) {
@@ -1291,8 +1292,8 @@ function updateAppDisplay(newAppMode) {
12911292
12921293 var s = { mode : 'display' } ;
12931294 // keep these persistent so that they survive page reloads
1294- if ( codeopticonSession ) { s . cosession = codeopticonSession ; }
1295- if ( codeopticonUsername ) { s . couser = codeopticonUsername ; }
1295+ if ( typeof codeopticonSession !== "undefined" ) { s . cosession = codeopticonSession ; }
1296+ if ( typeof codeopticonUsername !== "undefined" ) { s . couser = codeopticonUsername ; }
12961297 $ . bbq . pushState ( s , 2 /* completely override other hash strings to keep URL clean */ ) ;
12971298 }
12981299 else {
Original file line number Diff line number Diff line change @@ -691,7 +691,9 @@ $(document).ready(function() {
691691
692692 initAceAndOptions ( ) ; // do this after genericOptFrontendReady
693693
694- initCodeopticon ( ) ; // defined in codeopticon-learner.js
694+ if ( typeof initCodeopticon !== "undefined" ) {
695+ initCodeopticon ( ) ; // defined in codeopticon-learner.js
696+ }
695697
696698 $ ( "#createTestsLink" ) . click ( function ( ) {
697699 initTestcasesPane ( '#testCasesPane' ) ;
Original file line number Diff line number Diff line change 4646< script type ="text/javascript " src ="js/jquery-ui-1.8.24.custom.min.js "> </ script > <!-- for sliders and other UI elements -->
4747< link type ="text/css " href ="css/ui-lightness/jquery-ui-1.8.24.custom.css " rel ="stylesheet " />
4848
49- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
50- < link type ="text/css " href ="css/jquery.ui.chatbox.css " rel ="stylesheet " />
51- < script type ="text/javascript " src ="js/jquery.ui.chatbox.js "> </ script >
52-
5349
5450<!-- for annotation bubbles -->
5551< script type ="text/javascript " src ="js/jquery.qtip.min.js "> </ script >
360356
361357</ div >
362358
363- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
364- < div id ="chat_div "> </ div >
365-
366359</ body >
367360</ html >
Original file line number Diff line number Diff line change 4646< script type ="text/javascript " src ="js/jquery-ui-1.8.24.custom.min.js "> </ script > <!-- for sliders and other UI elements -->
4747< link type ="text/css " href ="css/ui-lightness/jquery-ui-1.8.24.custom.css " rel ="stylesheet " />
4848
49- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
50- < link type ="text/css " href ="css/jquery.ui.chatbox.css " rel ="stylesheet " />
51- < script type ="text/javascript " src ="js/jquery.ui.chatbox.js "> </ script >
52-
5349
5450<!-- for annotation bubbles -->
5551< script type ="text/javascript " src ="js/jquery.qtip.min.js "> </ script >
346342
347343</ div >
348344
349- <!-- adapted from: http://reason.cs.illinois.edu/wenpu1/chatbox.html -->
350- < div id ="chat_div "> </ div >
351-
352345</ body >
353346</ html >
You can’t perform that action at this time.
0 commit comments