diff options
| author | McD223 <jacob@simplelittledream.com> | 2019-02-09 14:23:08 -0500 |
|---|---|---|
| committer | McD223 <jacob@simplelittledream.com> | 2019-02-09 14:23:08 -0500 |
| commit | 2726b3603f7e84e26efd1014dfd20eb938d36c8c (patch) | |
| tree | 43574b3dd1f171c3632456d9849e4042ec1c2d52 /JS | |
| parent | 5552ce957b496dd4f0b8447dbfbf8718fbd1f2a7 (diff) | |
More commands
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(){ |
