-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathheader.js
More file actions
49 lines (48 loc) · 3.59 KB
/
Copy pathheader.js
File metadata and controls
49 lines (48 loc) · 3.59 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
function header(location)
{
var home_loc="index.html";
var events_loc="events/index.html";
var team_loc="about/index.html";
var contact_loc="contact/index.html";
var terminal_loc="terminal/index.html"
if (location==="home"){
string=
'<a class="active item" href="./'.concat(home_loc,'">Home</a><a class="item" href="./',team_loc,'">About Us</a><a class="item" href="./',events_loc,'">Events</a><a class="item" href="./',contact_loc,'">Contact Us</a>');}
else if (location==="none"){
string=
'<a class="item" href="../'.concat(home_loc,'">Home</a><a class="item" href="../',team_loc,'">About Us</a><a class="item" href="../',events_loc,'">Events</a><a class="item" href="../',contact_loc,'">Contact Us</a>');}
else if (location==="events"){
string=
'<a class="item" href="../'.concat(home_loc,'">Home</a><a class="item" href="../',team_loc,'">About Us</a><a class="active item" href="../',events_loc,'">Events</a><a class="item" href="../',contact_loc,'">Contact Us</a>');}
else if (location==="projects"){
string=
'<a class="item" href="../'.concat(home_loc,'">Home</a><a class="item" href="../',team_loc,'">About Us</a><a class="item" href="../',events_loc,'">Events</a><a class="item" href="../',contact_loc,'">Contact Us</a>');}
else if (location==="team"){
string=
'<a class="item" href="../'.concat(home_loc,'">Home</a><a class="active item" href="../',team_loc,'">About Us</a><a class="item" href="../',events_loc,'">Events</a><a class="item" href="../',contact_loc,'">Contact Us</a>');}
else if (location==="help"){
string=
'<a class="item" href="../'.concat(home_loc,'">Home</a><a class="item" href="../',team_loc,'">About Us</a><a class="item" href="../',events_loc,'">Events</a><a class="item" href="../',contact_loc,'">Contact Us</a>');}
else if (location==="contact"){
string=
'<a class="item" href="../'.concat(home_loc,'">Home</a><a class="item" href="../',team_loc,'">About Us</a><a class="item" href="../',events_loc,'">Events</a><a class="active item" href="../',contact_loc,'">Contact Us</a>');}
else if (location==="home inv right"){
string=
/*'<a class="ui inverted button" href="./'.concat(terminal_loc,'">Terminal</a>   */'<a class="ui inverted button" target="_blank" href="https://beta.kossiitkgp.org/blog/">Blog</a>'/*)*/;}
else if (location==="home right"){
string=
/*'<a class="ui button" href="./'.concat(terminal_loc,'">Terminal</a>   */'<a class="ui button" target="_blank" href="https://blog.kossiitkgp.org">Blog</a>'/*)*/;}
else if (location==="inv right"){
string=
/*'<a class="ui inverted button" href="../'.concat(terminal_loc,'">Terminal</a>*/'<a class="ui inverted button" target="_blank" href="https://blog.kossiitkgp.org">Blog</a>'/*)*/;}
else if (location==="right"){
string=
/*'<a class="ui button" href="../'.concat(terminal_loc,'">Terminal</a>   */'<a class="ui button" target="_blank" href="https://blog.kossiitkgp.org">Blog</a>'/*)*/;}
else if (location==="term inv right"){
string=
/*'<a class="ui inverted secondary button" href="./'.concat(terminal_loc,'">Terminal</a>*/'<a class="ui inverted button" target="_blank" href="https://blog.kossiitkgp.org">Blog</a>'/*)*/;}
else if (location==="term right"){
string=
/*'<a class="ui primary button" href="./'.concat(terminal_loc,'">Terminal</a>   */'<a class="ui button" target="_blank" href="https://blog.kossiitkgp.org">Blog</a>'/*)*/;}
document.write(string);
}