From e5e36e03fd9bbadc91479340f7e34134ab8ac8d6 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 16 Dec 2022 18:28:06 +0000 Subject: [PATCH] . --- index.html | 2 ++ js/main.js | 21 ++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index cf293d5..ac9e996 100644 --- a/index.html +++ b/index.html @@ -228,6 +228,8 @@ + + \ No newline at end of file diff --git a/js/main.js b/js/main.js index e877e69..d27b59d 100644 --- a/js/main.js +++ b/js/main.js @@ -5,6 +5,16 @@ import * as interact from "./interact.js"; import * as config from "./config.js"; // const { v4: uuidv4 } = require('uuid'); +$("#btn-candidate-login").click(function(evt) { + $("#login-dialog").modal({ + escapeClose: false, + clickClose: false, + showClose: false + }); + $("#options-panel").toggle(); + //$(".exam-wrapper").toggle(); +}); + let exam_details = { aid: null, cid: "", @@ -2454,17 +2464,6 @@ function showLoginDialog() { } -$(document).ready(function() { -$("#btn-candidate-login").click(function(evt) { - $("#login-dialog").modal({ - escapeClose: false, - clickClose: false, - showClose: false - }); - $("#options-panel").toggle(); - //$(".exam-wrapper").toggle(); -}); -}); $("#btn-user-login").click(function(evt) { window.location = "/accounts/login/?next=/rts"