-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.html
More file actions
192 lines (183 loc) · 9.18 KB
/
Copy pathmenu.html
File metadata and controls
192 lines (183 loc) · 9.18 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html>
<base href="https://georgenswebsite.com">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://kit.fontawesome.com/4e6fb82c0f.js" crossorigin="anonymous"></script>
<style>
.mobile-nav {
display: none;
}
.mobile-nav-list {
display: none;
}
.hidden {
display: none;
}
@media screen and (max-width: 620px) {
.large-screen-nav {
display: none;
}
.mobile-nav {
display: block;
}
.show-menu {
display: block;
}
}
</style>
<body>
<div class="w3-bar w3-cyan w3-large mobile-nav">
<a href="https://georgenswebsite.com/" style="text-decoration: none;" class="w3-bar-item"><strong>Georgens' Tech Resources</strong></a>
<a href="javascript:void();" onclick="mobileNavList();" class="w3-button w3-bar-item w3-right"><i id="mobile-menu-button" class="fa"></i></a>
</div>
<div id="mobile-nav-list" class="w3-bar w3-light-blue w3-large mobile-nav-list">
<a href="https://georgenswebsite.com/" id="link1" class="w3-button w3-bar-item w3-mobile">Home</a>
<a href="https://georgenswebsite.com/office-utilities" id="link2" class="w3-button w3-bar-item w3-mobile">Office Utilities</a>
<a href="https://georgenswebsite.com/multimedia" id="link3" class="w3-button w3-bar-item w3-mobile">Multimedia</a>
<a href="https://georgenswebsite.com/operating-systems" id="link4" class="w3-button w3-bar-item w3-mobile">Operating Systems</a>
<a href="https://georgenswebsite.com/development-software" id="link5" class="w3-button w3-bar-item w3-mobile">Development Software</a>
<a href="https://georgenswebsite.com/other-software" id="link6" class="w3-button w3-bar-item w3-mobile">Other Software</a>
<a href="https://georgenswebsite.com/random-articles" id="link7" class="w3-button w3-bar-item w3-mobile">Random Articles</a>
<button onclick="search();" class="w3-button w3-bar-item w3-right"><i class="fas fa-search"></i></button>
</div>
</div>
<div id="large-screen-nav" class="w3-bar w3-cyan w3-large large-screen-nav">
<a href="https://georgenswebsite.com/" style="text-decoration: none;" class="w3-bar-item"><strong>Georgens' Tech Resources</strong></a>
<a href="https://georgenswebsite.com/" id="home" class="w3-button w3-bar-item">Home</a>
<a href="https://georgenswebsite.com/office-utilities" id="ou" class="w3-button w3-bar-item">Office Utilities</a>
<a href="https://georgenswebsite.com/multimedia" id="mm" class="w3-button w3-bar-item">Multimedia</a>
<a href="https://georgenswebsite.com/operating-systems" id="os" class="w3-button w3-bar-item">Operating Systems</a>
<a href="https://georgenswebsite.com/development-software" id="dev" class="w3-button w3-bar-item">Development Software</a>
<a href="https://georgenswebsite.com/other-software" id="other" class="w3-button w3-bar-item">Other Software</a>
<a href="https://georgenswebsite.com/random-articles" id="ra" class="w3-button w3-bar-item">Random Articles</a>
<div class="w3-dropdown-hover">
<button id="button" class="w3-button">More <i class="fa fa-caret-down"></i></button>
<div id="dropdown" class="w3-dropdown-content w3-bar-block">
<a href="other-software" class="w3-button w3-bar-item">Other Software</a>
<a href="random-articles" id="ra2" class="w3-button w3-bar-item">Random Articles</a>
</div>
</div>
<button onclick="search();" class="w3-button w3-bar-item w3-right"><i class="fas fa-search"></i></button>
</div>
<div id="search" class="w3-bar w3-indigo w3-large hidden">
<script async src="https://cse.google.com/cse.js?cx=009859184671082778631:ghnbgjdkqs0"></script>
<div class="gcse-search"></div>
</div>
</body>
<script>
if (window.innerWidth <= "800") {
var ra = document.getElementById("ra");
ra.remove();
var other = document.getElementById("other");
other.remove();
var dev = document.getElementById("dev");
dev.remove();
var link = document.createElement("a");
var text = document.createTextNode("Development Software");
link.appendChild(text);
link.href = "development-software";
link.classList.add("w3-button");
link.setAttribute("id", "os2");
var div = document.getElementById("dropdown");
var ra2 = document.getElementById("ra2");
div.insertBefore(link, ra2);
var os = document.getElementById("os");
os.remove();
var link2 = document.createElement("a");
var text2 = document.createTextNode("Operating Systems");
link2.appendChild(text2);
link2.href = "operating-systems";
link2.classList.add("w3-button");
link2.setAttribute("id", "os2");
var os2 = document.getElementById("os2");
div.insertBefore(link2, os2);
var mm = document.getElementById("mm");
mm.remove();
var link3 = document.createElement("a");
var text3 = document.createTextNode("Multimedia");
link3.appendChild(text3);
link3.href = "multimedia";
link3.classList.add("w3-button");
link3.setAttribute("id", "mm2");
var mm2 = document.getElementById("mm2");
div.insertBefore(link3, mm2);
} else if (window.innerWidth <= "965") {
var ra = document.getElementById("ra");
ra.remove();
var other = document.getElementById("other");
other.remove();
var dev = document.getElementById("dev");
dev.remove();
var link = document.createElement("a");
var text = document.createTextNode("Development Software");
link.appendChild(text);
link.href = "development-software";
link.classList.add("w3-button");
link.setAttribute("id", "os2");
var div = document.getElementById("dropdown");
var ra2 = document.getElementById("ra2");
div.insertBefore(link, ra2);
var os = document.getElementById("os");
os.remove();
var link2 = document.createElement("a");
var text2 = document.createTextNode("Operating Systems");
link2.appendChild(text2);
link2.href = "operating-systems";
link2.classList.add("w3-button");
var os2 = document.getElementById("os2");
div.insertBefore(link2, os2);
} else if (window.innerWidth <= "1172") {
var ra = document.getElementById("ra");
ra.remove();
var other = document.getElementById("other");
other.remove();
var dev = document.getElementById("dev");
dev.remove();
var link = document.createElement("a");
var text = document.createTextNode("Development Software");
link.appendChild(text);
link.href = "development-software";
link.classList.add("w3-button");
var div = document.getElementById("dropdown");
var ra2 = document.getElementById("ra2");
div.insertBefore(link, ra2);
} else if (window.innerWidth <= "1370") {
var ra = document.getElementById("ra");
ra.remove();
var other = document.getElementById("other");
other.remove();
} else {
document.getElementById("button").classList.add("hidden");
}
function mobileNavList() {
document.getElementById("mobile-nav-list").classList.toggle("show-menu");
}
function search() {
document.getElementById("search").classList.toggle("hidden");
}
if (window.location.pathname == "/") {
document.getElementById("home").classList.add("w3-light-blue");
document.getElementById("link1").classList.add("w3-light-blue");
} else if (window.location.pathname.includes("/office-utilities/")) {
document.getElementById("ou").classList.add("w3-light-blue");
document.getElementById("link2").classList.add("w3-light-blue");
} else if (window.location.pathname.includes("/multimedia/")) {
document.getElementById("mm").classList.add("w3-light-blue");
document.getElementById("link3").classList.add("w3-light-blue");
} else if (window.location.pathname.includes("/operating-systems/")) {
document.getElementById("os").classList.add("w3-light-blue");
document.getElementById("link4").classList.add("w3-light-blue");
} else if (window.location.pathname.includes("/development-software/")) {
document.getElementById("dev").classList.add("w3-light-blue");
document.getElementById("link5").classList.add("w3-light-blue");
} else if (window.location.pathname.includes("/other-software/")) {
document.getElementById("other").classList.add("w3-light-blue");
document.getElementById("link6").classList.add("w3-light-blue");
} else if (window.location.pathname.includes("/random-articles/")) {
document.getElementById("ra").classList.add("w3-light-blue");
document.getElementById("link7").classList.add("w3-light-blue");
}
</script>
</html>