aboutsummaryrefslogtreecommitdiffhomepage
path: root/File-decryption/webapp/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'File-decryption/webapp/main.js')
-rw-r--r--File-decryption/webapp/main.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/File-decryption/webapp/main.js b/File-decryption/webapp/main.js
index 792eb3d..8169fb0 100644
--- a/File-decryption/webapp/main.js
+++ b/File-decryption/webapp/main.js
@@ -93,8 +93,19 @@ function processFileInput(e) {
}
document.addEventListener("DOMContentLoaded", function () {
+ let acknowledgement = document.querySelector('.ethics-message-ack');
+ let fileInput = document.getElementById('file-input');
+ let fileInputLabel = document.querySelector('.file-input-label');
+
+ // Etics message
+ acknowledgement.addEventListener('click', function () {
+ document.querySelector('.ethics-message').style.display = 'none';
+ // Enable the file input
+ fileInput.disabled = false;
+ fileInputLabel.classList.remove('upload-disabled');
+ });
+
// handle file uploads
- let fileInput = document.getElementById('file-input')
fileInput.onchange = () => {
const reader = new FileReader()
reader.onload = processFileInput;