-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
101 lines (80 loc) · 2.94 KB
/
App.js
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
let sh = "SHARK";
let jl = "JELLYFISH";
let oc = "OCTOPUS";
let wh = "WHALE";
let bwh = "BLUE WHALE";
let swh = "SEI WHALE";
let bowh = "BOWHEAD WHALE";
let cjl = "CRYSTAL JELLYFISH";
let fejl = "FRIED EGG JELLYFISH";
let ajl = "ATOLLA JELLYFISH";
let hsh = "HAMMER HEAD SHARK";
let gwsh = "GREAT WHITE SHARK";
let lsh = "LEOPARD SHARK";
let zsh = "ZEBRA SHARK";
let broc = "BLUE RING OCTOPUS";
let moc = "MIMIC OCTOPUS";
let coc = "COCONUT OCTOPUS";
let bloc = "BLANKET OCTOPUS";
function searchFunction(){
var input, txtValue;
input = document.getElementById('txtInput');
txtValue = input.value;
if(txtValue == sh){
window.location.assign("http://127.0.0.1:5500/Shark.html");
}
else if(txtValue == jl){
window.location.assign("http://127.0.0.1:5500/Jellyfish.html");
}
else if(txtValue == oc){
window.location.assign("http://127.0.0.1:5500/Octopus.html");
}
else if(txtValue == wh){
window.location.assign("http://127.0.0.1:5500/Whale.html");
}
else if(txtValue == wh){
window.location.assign("http://127.0.0.1:5500/Whale.html");
}
else if(txtValue == bwh){
window.location.assign("http://127.0.0.1:5500/Blue%20Whale.html");
}
else if(txtValue == swh){
window.location.assign("http://127.0.0.1:5500/Sei%20Whale.html");
}
else if(txtValue == bowh){
window.location.assign("http://127.0.0.1:5500/Bowhead%20Whale.html");
}
else if(txtValue == cjl){
window.location.assign("http://127.0.0.1:5500/Crystal%20jelly.html");
}
else if(txtValue == fejl){
window.location.assign("http://127.0.0.1:5500/Friedegg%20Jelly.html");
}
else if(txtValue == ajl){
window.location.assign("http://127.0.0.1:5500/Atolla%20jelly.html");
}
else if(txtValue == hsh){
window.location.assign("http://127.0.0.1:5500/Hammerhead%20Shark.html");
}
else if(txtValue == gwsh){
window.location.assign("http://127.0.0.1:5500/Great%20white%20Shark.html");
}
else if(txtValue == lsh){
window.location.assign("http://127.0.0.1:5500/Leopard%20Shark.html");
}
else if(txtValue == zsh){
window.location.assign("http://127.0.0.1:5500/Zebra%20Shark.html");
}
else if(txtValue == broc){
window.location.assign("http://127.0.0.1:5500/Blue%20Ring%20Octopus.html");
}
else if(txtValue == moc){
window.location.assign("http://127.0.0.1:5500/Mimic%20Octopus.html");
}
else if(txtValue == coc){
window.location.assign("http://127.0.0.1:5500/Coconut%20Octopus.html");
}
else if(txtValue == bloc){
window.location.assign("http://127.0.0.1:5500/Blanket%20Octopus.html");
}
}