diff options
| author | Jacob McDonnell <jacob@simplelittledream.com> | 2021-01-16 21:21:22 -0500 |
|---|---|---|
| committer | Jacob McDonnell <jacob@simplelittledream.com> | 2021-01-16 21:21:22 -0500 |
| commit | fcd16bc0fc2ffd457d2f085395f97af752f1093d (patch) | |
| tree | b4a3e982a4c4e0deb1afbd58057be08004e6dcc3 /JS/main.js | |
| parent | 3cbd1a5ec7f333b1837ecc0072daa56de7afa596 (diff) | |
New Version of the website
Diffstat (limited to 'JS/main.js')
| -rwxr-xr-x | JS/main.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/JS/main.js b/JS/main.js deleted file mode 100755 index e541d5f..0000000 --- a/JS/main.js +++ /dev/null @@ -1,29 +0,0 @@ -function searchDuck(event){ - var x = document.getElementById('Search').value; - if (event.keyCode == 13 || event.which == 13) { - if (x == '/4chan'){ - fourChan() - } - else if (x == '/help'){ - help() - } - else{location='https://duckduckgo.com/?q=' + encodeURIComponent(document.getElementById('Search').value);}}//13 = enter -} -function FocusOnInput(){ - document.getElementById("Search").focus(); -} -function dropdown(theID) { - document.getElementById(theID).classList.toggle("show"); -} -window.onclick = function(event) { //when the user clicks anywhere else on the screen the menu disappears - if (!event.target.matches('.dropbtn')) { - var dropdowns = document.getElementsByClassName("dropdown-content"); - var i; - for (i = 0; i < dropdowns.length; i++) { - var openDropdown = dropdowns[i]; - if (openDropdown.classList.contains('show')) { - openDropdown.classList.remove('show'); - } - } - } -} |
