From 2916ca8dd8de122f76a762c1bfed0091bccc6d9c Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 12 Dec 2021 22:23:52 +0000 Subject: [PATCH] . --- js/main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/js/main.js b/js/main.js index 5bd68f3..8f81439 100644 --- a/js/main.js +++ b/js/main.js @@ -37,6 +37,18 @@ let timer = null; let use_local_question_cache = false; +window.location.search.substr(1).split("&").forEach((item) => + { + s = item.split("="); + if (s[0] == "cid") { + $("#cid-box").val(s[1]); + + } + if (s[0] == "passcode") { + $("#passcode-box").val(s[1]); + } + }); + cornerstone.imageCache.setMaximumSizeBytes(5128800); // Set up cornerstone (the dicom viewer)