From ae3cc05ce744fb7c5d6329cca1f2c680db3c4289 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 21 Jan 2022 22:28:48 -0700 Subject: New fonts, remove external dependencies, clean out unused code, remove twitter stuff --- static/src/assets/main.js | 48 ----------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 static/src/assets/main.js (limited to 'static/src/assets/main.js') diff --git a/static/src/assets/main.js b/static/src/assets/main.js deleted file mode 100644 index 7557f2b..0000000 --- a/static/src/assets/main.js +++ /dev/null @@ -1,48 +0,0 @@ -// showModal will create the modal structure the first time it is called. -var modal, modalContent; -const showModal = function() { - if (!modal) { - // make the modal - const modalClose = document.createElement('span'); - modalClose.id = 'modal-close'; - modalClose.innerHTML = '×'; - - modalContent = document.createElement('div'); - modalContent.id = 'modal-content'; - - const modalBody = document.createElement('div'); - modalBody.id = 'modal-body'; - modalBody.appendChild(modalContent); - modalBody.appendChild(modalClose); - - modal = document.createElement('div'); - modal.id = 'modal'; - modal.appendChild(modalBody); - - // add the modal to the document - document.getElementsByTagName('body')[0].appendChild(modal); - - // setup modal functionality - modalClose.onclick = function() { - modal.style.display = "none"; - } - } - - modalContent.innerHTML = ''; - for (var i = 0; i < arguments.length; i++) { - modalContent.appendChild(arguments[i]); - } - modal.style.display = "block"; - - // When the user clicks anywhere outside of the modal, close it - window.onclick = function(event) { - if (event.target == modal) { - modal.style.display = "none"; - window.onclick = undefined; - } - } -} - -document.addEventListener("DOMContentLoaded", () => { - console.log("DOM loaded"); -}) -- cgit v1.2.3