This commit is contained in:
Ross
2021-12-12 22:30:04 +00:00
parent fa9578cc6a
commit 6ae4d05675
+19 -9
View File
@@ -37,16 +37,7 @@ let timer = null;
let use_local_question_cache = false;
window.location.search.substr(1).split("&").forEach((item) => {
let s = item.split("=");
if (s[0] == "cid") {
global_cid = s[1];
}
if (s[0] == "passcode") {
global_passcode = s[1];
}
});
cornerstone.imageCache.setMaximumSizeBytes(5128800);
@@ -124,6 +115,25 @@ async function retrievePacketList() {
})
$("#candidate-details").append(`Current: CID ${global_cid} / Passcode ${global_passcode} `).append(logout);
} else {
window.location.search.substr(1).split("&").forEach((item) => {
s = item.split("=");
if (s[0] == "cid") {
let cid = s[1];
}
if (s[0] == "passcode") {
let passcode = s[1];
}
user_db.user.add({
cid: cid,
passcode: passcode
})
location.reload();
});
}
try {