diff --git a/scr/script.js b/scr/script.js deleted file mode 100644 index 9722fb5..0000000 --- a/scr/script.js +++ /dev/null @@ -1,14 +0,0 @@ -function updateClock() { - let date = new Date(); - let hours = date.getHours(); - let minutes = date.getMinutes(); - let ampm = hours >= 12 ? 'pm' : 'am'; - hours = hours % 12; - hours = hours ? hours : 12; - minutes = minutes < 10 ? '0'+minutes : minutes; - let time = hours + ':' + minutes + ' ' + ampm; - document.getElementById('time').innerHTML = time; - setTimeout(updateClock, 1000); -} - -updateClock(); diff --git a/scr/search.js b/scr/search.js deleted file mode 100644 index b59625f..0000000 --- a/scr/search.js +++ /dev/null @@ -1,15 +0,0 @@ -window.onload = function() { - this.initSearchBar() -} - -function initSearchBar() { - document.getElementById("search-bar-input").value = "" - document.getElementById("search-bar-input").focus() - - document.getElementById("search-bar-input").addEventListener("keypress", (event) => { - if (event.key != 'Enter') return - googleSearchUrl = "https://gowogle.voring.me/search?q=" - query = document.getElementById("search-bar-input").value.replace(/\ /g, "+") - document.location = googleSearchUrl + query + "&cookies_disabled=0" - }) -}