summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-03-02 17:16:11 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-03-02 17:16:11 +0100
commit9eb9da9a66c287f72b708cdc0700d28c6a14093f (patch)
tree55e51964a619a2a1e6b21d0ac6b058bafa46ae7d /js
parentb2cf89bed3c975065b77be98fbf1125dbe8e69e7 (diff)
More CSS cleanups
Diffstat (limited to 'js')
-rw-r--r--js/codeq/editor.js4
-rw-r--r--js/codeq/prolog.js4
-rw-r--r--js/codeq/python.js4
-rw-r--r--js/codeq/robot.js4
4 files changed, 8 insertions, 8 deletions
diff --git a/js/codeq/editor.js b/js/codeq/editor.js
index 157c70e..478e461 100644
--- a/js/codeq/editor.js
+++ b/js/codeq/editor.js
@@ -1,5 +1,5 @@
/* CodeQ: an online programming tutor.
- Copyright (C) 2015 UL FRI
+ Copyright (C) 2015,2016 UL FRI
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
@@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
codeq.makeEditor = function (elt, options, onEscape) {
"use strict";
- var statusBar = $(elt).siblings(".block-statusbar")[0],
+ var statusBar = $(elt).siblings(".statusbar")[0],
updateStatusBar = function (pos) {
statusBar.innerHTML = 'line ' + (pos.line+1) + ', column ' + (pos.ch+1);
},
diff --git a/js/codeq/prolog.js b/js/codeq/prolog.js
index 7da12e2..e739b26 100644
--- a/js/codeq/prolog.js
+++ b/js/codeq/prolog.js
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
(function() {
"use strict";
var jqScreen = $('#screen-prolog'), // the screen container element
- jqConsole = jqScreen.find('.block3'),
+ jqConsole = jqScreen.find('.block-console'),
jqBtnPlan = jqScreen.find('.btn-plan'),
jqBtnTest = jqScreen.find('.btn-test').ladda(),
jqAllButtons = jqBtnPlan.add(jqBtnTest), // all the buttons
@@ -163,7 +163,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
});
var createPrologHandler = function (problemDef, commonDef, currentSolution) {
- var jqEditor = jqScreen.find('.code_editor'),
+ var jqEditor = jqScreen.find('.code-editor'),
jqHints = jqScreen.find('.hints'),
jqTerminal = jqConsole.find('.console'),
editor = codeq.makeEditor(jqEditor[0],
diff --git a/js/codeq/python.js b/js/codeq/python.js
index 055ada7..085ebfc 100644
--- a/js/codeq/python.js
+++ b/js/codeq/python.js
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
(function() {
"use strict";
var jqScreen = $('#screen-python'), // the screen container element
- jqConsole = jqScreen.find('.block3'),
+ jqConsole = jqScreen.find('.block-console'),
jqBtnPlan = jqScreen.find('.btn-plan'),
jqBtnTest = jqScreen.find('.btn-test').ladda(),
jqBtnRun = jqScreen.find('.btn-run'),
@@ -103,7 +103,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
});
var createPythonHandler = function (problemDef, commonDef, currentSolution) {
- var jqEditor = jqScreen.find('.code_editor'),
+ var jqEditor = jqScreen.find('.code-editor'),
jqHints = jqScreen.find('.hints'),
jqTerminal = jqConsole.find('.console'),
editor = codeq.makeEditor(jqEditor[0],
diff --git a/js/codeq/robot.js b/js/codeq/robot.js
index 8512df7..5936d56 100644
--- a/js/codeq/robot.js
+++ b/js/codeq/robot.js
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
(function() {
"use strict";
var jqScreen = $('#screen-robot'), // the screen container element
- jqConsole = jqScreen.find('.block3'),
+ jqConsole = jqScreen.find('.block-console'),
jqBtnPlan = jqScreen.find('.btn-plan'),
jqBtnHint = jqScreen.find('.btn-hint').ladda(),
jqBtnRun = jqScreen.find('.btn-run'),
@@ -77,7 +77,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
});
var createRobotHandler = function (problemDef, commonDef, currentSolution) {
- var jqEditor = jqScreen.find('.code_editor'),
+ var jqEditor = jqScreen.find('.code-editor'),
jqHints = jqScreen.find('.hints'),
jqStatus = jqConsole.find('.status'),
jqTerminal = jqConsole.find('.console'),