diff --git a/android-chrome-192x192.png b/android-chrome-192x192.png new file mode 100644 index 0000000..6c0a1cf Binary files /dev/null and b/android-chrome-192x192.png differ diff --git a/android-chrome-512x512.png b/android-chrome-512x512.png new file mode 100644 index 0000000..bd7a151 Binary files /dev/null and b/android-chrome-512x512.png differ diff --git a/apple-touch-icon.png b/apple-touch-icon.png new file mode 100644 index 0000000..032727b Binary files /dev/null and b/apple-touch-icon.png differ diff --git a/favicon-16x16.png b/favicon-16x16.png new file mode 100644 index 0000000..0c03407 Binary files /dev/null and b/favicon-16x16.png differ diff --git a/favicon-32x32.png b/favicon-32x32.png new file mode 100644 index 0000000..c420d03 Binary files /dev/null and b/favicon-32x32.png differ diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..758d03c Binary files /dev/null and b/favicon.ico differ diff --git a/js/main.js b/js/main.js index ec2fa93..f9de5cb 100644 --- a/js/main.js +++ b/js/main.js @@ -425,6 +425,9 @@ function loadQuestion(n, section = 1, force_reload = false) { $(".canvas-panel").remove(); } + // Remove feedback images + $(".feedback-image").remove(); + // Set up thumbnails const thumbnails = $(".thumbs"); // Why are we checking this? @@ -1290,7 +1293,7 @@ function loadLocalQuestionSet() { function receivedText(e) { const lines = e.target.result; let j = JSON.parse(lines); - setUpPacket(j); + setUpPacket(j, file.name); $("#options-panel").hide(); } } @@ -1713,6 +1716,18 @@ function addFeedback(current_question) { ) ); } + if ( + current_question.hasOwnProperty("feedback_image") && + current_question.feedback_image.length > 0 + ) { + // TODO: finish (load in dicom viewer) + current_question.feedback_image.forEach((img) => { + $(".question").append( + $(``) + ) + + }) + } } function markCorrect(qid, user_answer) { diff --git a/site.webmanifest b/site.webmanifest new file mode 100644 index 0000000..45dc8a2 --- /dev/null +++ b/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file