-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
55 lines (54 loc) · 2.17 KB
/
script.js
File metadata and controls
55 lines (54 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
function Searcher() {
var search = document.getElementById("search").value;
if (search == "=Rob"){
window.location.href = "Rob/index.html";
}else if (search == "=wordbeater") {
window.location.href = "Wordbeater/index.html"
}else if (search == "=WolfG"){
window.location.href = "https://showme-gh-pages.github.io/wolf3d/"
}else if (search == "=CFE"){
window.location.href = "computer.html"
}else if (search == "=OS"){
window.location.href = "DoorOS.html"
}else if (search == "=Lamp"){
window.location.href = "Lamp/index.html"
}else if (search == "=Dice"){
window.location.href = "Dice/index.html"
}else if (search == "=CFE2"){
window.location.href = "Computer2.html"
}else if (search == "=GL"){
window.location.href = "GameLess.html"
}else if (search == "=Shelly"){
window.location.href = "Shelly/index.html"
}else if (search == "=RPS"){
window.location.href = "RPS/index.html"
}else if (search == "=Menu"){
window.location.href = "Menu/index.html"
}else if (search == "=Registery"){
window.location.href = "Registery/index.html"
}else if (search == "=Animal"){
window.location.href = "https://www.google.com/search?q=animal+sounds"
}else if (search == "=About"){
window.location.href = "about/index.html"
}else if (search == "=WhoUs"){
window.location.href = "Who Us/index.html"
}else if (search == "=Coffee" && "coffee"){
window.location.href = "Search/Coffee.html"
}else if (search == "=Emoji"){
window.location.href = "Search/Emoji/Emoji.html"
}else if (search == "=Emoji"){
window.location.href = "Search/Emoji/Emoji.html"
}else if (search == "=Pay"){
window.location.href = "Pay/index.html"
}else if (search == "=COVID"){
window.location.href = "Covid-19/main.html"
}else{
window.location.href = "https://www.google.com.sa/search?q=" + search;
}
}
window.addEventListener("keydown", checkKeyPressed, false);
function checkKeyPressed(e) {
if (e.keyCode == "13") {
Searcher()
}
}