Removed unnecessary js

This commit is contained in:
James Dinh 2022-07-11 00:10:04 -07:00
parent 1711bae489
commit f24bc446e2
3 changed files with 12 additions and 12 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
img/.DS_Store vendored

Binary file not shown.

View File

@ -35,18 +35,18 @@ function notification(id) {
// 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('#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) {