Skip to content

Commit d61efbb

Browse files
committed
put up maintenance sign
1 parent 5504349 commit d61efbb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎v3/js/opt-frontend.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ function getBaseFrontendOptionsObj() {
147147
}
148148

149149
function executeCode(forceStartingInstr, forceRawInputLst) {
150+
var selectorVal = $('#pythonVersionSelector').val();
151+
if (selectorVal !== '2' && selectorVal !== '3') {
152+
alert("Sorry, the server is currently down for maintenance :( Please try again tomorrow.");
153+
}
154+
150155
if (forceRawInputLst !== undefined) {
151156
rawInputLst = forceRawInputLst; // UGLY global across modules, FIXME
152157
}

0 commit comments

Comments
 (0)