Skip to content

Commit 415a0a5

Browse files
committed
more more cleanups
1 parent 57cacaa commit 415a0a5

9 files changed

Lines changed: 8 additions & 55 deletions

File tree

‎v3/basic.html‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@
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>
@@ -180,8 +176,5 @@
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>

‎v3/c.html‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@
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" />
@@ -362,8 +357,5 @@
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>

‎v3/cpp.html‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
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>
@@ -357,8 +353,5 @@
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>

‎v3/java.html‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
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>
@@ -403,8 +399,5 @@
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>

‎v3/javascript.html‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@
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>
@@ -350,8 +346,5 @@
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>

‎v3/js/opt-frontend-common.js‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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 {

‎v3/js/opt-frontend.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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');

‎v3/ruby.html‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
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>
@@ -360,8 +356,5 @@
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>

‎v3/typescript.html‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
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>
@@ -346,8 +342,5 @@
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>

0 commit comments

Comments
 (0)