Delete scr directory

This commit is contained in:
Kainoa Kanter 2022-03-05 18:59:18 -08:00 committed by GitHub
parent 0db491c6c1
commit db4b226342
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 29 deletions

View file

@ -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();

View file

@ -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"
})
}