-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
84 lines (44 loc) · 2.41 KB
/
script.js
File metadata and controls
84 lines (44 loc) · 2.41 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
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
// search functionality
// document.getElementById('one').style.display = "block";
// document.getElementById('two').style.display = "block";
// document.getElementById('three').style.display = "block";
// document.getElementById('four').style.display = "block";
// document.getElementById('five').style.display = "block";
// document.getElementById('six').style.display = "block";
// document.getElementById('seven').style.display = "block";
function search() {
let myPdf = document.getElementById("inpt").value;
if (myPdf.includes("csc" || "csc211" ||"csc211")) {
window.location.assign("csc/csc.php")
}
if(myPdf.includes("sen" || "sen201" || "sen 211")){
window.location.assign("senf/sen.php")
}
if(myPdf.includes("mat231" || "mat 231")){
window.location.assign("mat231/mat231.php")
}
if(myPdf.includes("mat231" || "mat 231")){
window.location.assign("mat231/mat231.php")
}
if(myPdf.includes( "mat 231")){
window.location.assign("mat231/mat231.php")
}
if(myPdf.includes("ift" || "ift201" || "ift 201")){
window.location.assign("ift/ift.php")
}
if(myPdf.includes("dts" || "dts201" || "dts 201")){
window.location.assign("dts/dts.php")
}
if (myPdf.includes("mat 201" || "mat201" ||"mat 201")) {
window.location.assign("mat201/mat201.php")
}
if (myPdf.includes("mat201")) {
window.location.assign("mat201/mat201.php")
}
if (myPdf.includes("cos" || "cos201" ||"cos201")) {
window.location.assign("cos/cos.php")
}
if (myPdf.includes("ent" || "ent211" ||"ent 211")) {
window.location.assign("ent/ent.php")
}
}