diff options
Diffstat (limited to 'JS')
| -rw-r--r-- | JS/command.js | 10 | ||||
| -rw-r--r-- | JS/main.js | 8 |
2 files changed, 14 insertions, 4 deletions
diff --git a/JS/command.js b/JS/command.js new file mode 100644 index 0000000..e46c268 --- /dev/null +++ b/JS/command.js @@ -0,0 +1,10 @@ +function fourChan() { + document.getElementById("pLink").innerHTML = "4chan"; + document.getElementById("pLink").href = "https://4chan.org/"; + document.getElementById("pLinks").innerHTML = "4channel"; + document.getElementById("pLinks").href = "https://4channel.org/"; +} +function help(){ + alert('hahahaha. There is no help. You cannot escape.'); + help() +}
\ No newline at end of file @@ -2,11 +2,11 @@ function searchDuck(event){ var x = document.getElementById('Search').value; if (event.keyCode == 13 || event.which == 13) { if (x == '/4chan'){ - document.getElementById("pLink").innerHTML = "4chan"; - document.getElementById("pLink").href = "https://4chan.org/"; - document.getElementById("pLinks").innerHTML = "4channel"; - document.getElementById("pLinks").href = "https://4channel.org/"; + fourChan() } + else if (x == '/help'){ + help() + } else{location='https://duckduckgo.com/?q=' + encodeURIComponent(document.getElementById('Search').value);}}//13 = enter } function FocusOnInput(){ |
