From bd29244449f11f926fa90f3a7029a280d24458de Mon Sep 17 00:00:00 2001 From: James Dinh Date: Tue, 21 Jun 2022 23:06:21 -1000 Subject: [PATCH] Changed Content --- css/general.css | 2 +- index.html | 8 ++++---- js/data_checkbox.js | 28 +++++++++++++++++++++++++++- 3 files changed, 32 insertions(+), 6 deletions(-) diff --git a/css/general.css b/css/general.css index 4eefd09..8b31917 100644 --- a/css/general.css +++ b/css/general.css @@ -144,7 +144,7 @@ nav ul li { } #sign-up:hover { - transform: scale(1.1); + transform: scale(1.05); background-color: blueviolet; cursor: pointer; transition: 0.5s; diff --git a/index.html b/index.html index 78999bc..d86d5fc 100644 --- a/index.html +++ b/index.html @@ -50,12 +50,12 @@
- 8/14 12:00pm + 8/14 2:00pm Hacking Ends
- 8/14 2:00pm + 8/14 2:30pm Project Presentations
diff --git a/js/data_checkbox.js b/js/data_checkbox.js index 46c404c..2ad1b83 100644 --- a/js/data_checkbox.js +++ b/js/data_checkbox.js @@ -25,4 +25,30 @@ function uncheck(id) { function notification(id) { if (localStorage.getItem(checkboxes[id].value) != true) { verify = false; } if (verify) { document.getElementById('notification').style.visibility = visible; } -} \ No newline at end of file +} + +// function btnToggle() { +// if (document.getElementById('#check').checked) { +// document.getElementById('#check').checked = false; +// } +// else { +// document.getElementById('#check').checked = true; +// } +// } +document.getElementById('#check').addEventListener('click', function (event) { + if (!document.getElementById('check').checked) { + event.stopPropagation(); + } +}); +window.onclick = function(event) { + if (!event.target.matches('check')) { + if (document.getElementById('check').checked) { + document.getElementById('check').checked = false; + } + } +} + +// document.getElementById("navList").addEventListener('click', function (event) { +// if (document.getElementById('check').checked) { +// event.stopPropagation(); +// }});