Delete scr directory
This commit is contained in:
parent
0db491c6c1
commit
db4b226342
2 changed files with 0 additions and 29 deletions
|
@ -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();
|
|
@ -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"
|
||||
})
|
||||
}
|
Loading…
Reference in a new issue