summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html10
-rw-r--r--js/codeq/comms.js2
2 files changed, 10 insertions, 2 deletions
diff --git a/index.html b/index.html
index ec9641f..bea88df 100644
--- a/index.html
+++ b/index.html
@@ -19,6 +19,7 @@
<title>CodeQ</title>
</head>
<body>
+ <!-- the status bar at the top of each page -->
<div class="navbar navbar-inverse navbar-fixed-top" id="topbar">
<div class="container-fluid">
<div class="navbar-header">
@@ -57,6 +58,7 @@
</div>
</div>
+ <!-- login screen -->
<div id="screen_login" style="text-align: center;">
<h1>CodeQ Login</h1>
<hr>
@@ -79,6 +81,7 @@
</table>
</div>
+ <!-- main screen: programming language selection, settings, etc. -->
<div id="screen_language" style="text-align: center; display: none;">
<h1>CodeQ Select Language</h1>
<hr>
@@ -102,6 +105,7 @@
</table>
</div>
+ <!-- problem selection screen for a specific language: groups of problems, with descriptions -->
<div id="screen_problem" style="text-align: center; display: none;">
<h1>CodeQ Select Problem</h1>
<hr>
@@ -125,6 +129,7 @@
</table>
</div>
+ <!-- problem screen: prolog -->
<div class="container-fluid quadrants block1" id="screen_prolog" style="display: none;">
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-12 block block1">
@@ -153,6 +158,7 @@
</div><!--/row-->
</div><!--container-->
+ <!-- problem screen: python -->
<div class="container-fluid quadrants block1" id="screen_python" style="display: none;">
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-12 block block1">
@@ -183,7 +189,9 @@
</div><!--/row-->
</div><!--container-->
-
+ <!-- Covers the whole screen with a semi-transparent block, so no input events can be triggered below.
+ Used as a wait screen; must be the last element in the DOM.
+ It is active after load, javascript turns it off after initialization. -->
<div id="disabled" style="position: fixed; left: 0; right: 0; top: 0; bottom: 0; cursor: wait; background-color: rgba(0, 0, 0, 0.7);"></div>
<!-- jQuery stuff -->
diff --git a/js/codeq/comms.js b/js/codeq/comms.js
index 140e48e..f9e49ae 100644
--- a/js/codeq/comms.js
+++ b/js/codeq/comms.js
@@ -401,7 +401,7 @@
},
function getLanguageDefFail(exception) {
delete languageCache[identifier];
- throw exception || new Error('Could not load language ' + identifer); // proxy further
+ throw exception || new Error('Could not load language ' + identifier); // proxy further
}
);
languageCache[identifier] = x;