-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
66 lines (59 loc) · 1.84 KB
/
header.php
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
<!-- <div id="mainmenu">
<a href="home.php">Home</a> | <a href="about.php">About</a> | etc...
</div> -->
<div id="navcontainer">
<ul id="navlist">
<li><a class="btn current" href="index.php">Home</a></li>
<li><a class="btn" href="#" id="c" onclick="onNavClick('c')" >Ceaser Cipher</a></li>
<li><a class="btn" href="#" id="v" onclick="onNavClick('v')">Vigenere Cipher</a></li>
<li><a class="btn" href="#" id="p" onclick="onNavClick('p')">Playfair Cipher</a></li>
<li><a class="btn" href="#" id="h" onclick="onNavClick('h')">Hill Cipher</a></li>
<li><a class="btn" href="#" id="combined" onclick="onNavClick('combined')" >Combined Cipher</a></li>
</ul>
</div>
<script>
// Get all buttons with class="btn" inside the container
// var btns = document.getElementsByClassName("btn");
// // Loop through the buttons and add the active class to the current/clicked button
// for (var i = 0; i < btns.length; i++) {
// btns[i].addEventListener("click", function() {
// var current = document.getElementsByClassName("current");
// current[0].className = current[0].className.replace(" current", "");
// this.className += " current";
// var content = document.getElementsByClassName("container");
// console.log(content[0].innerHTML);
// content[0].innerHTML = "Ceaser";
// });
// }
</script>
<style>
#navlist {
margin: 0;
padding: 0 0 20px 10px;
border-bottom: 2px solid green;
}
#navlist ul,
#navlist li {
margin: 0;
padding: 0;
display: inline;
list-style-type: none;
}
#navlist a:link,
#navlist a:visited {
float: left;
line-height: 14px;
font-weight: bold;
margin: 0 10px 4px 10px;
text-decoration: none;
color: #999;
}
#navlist a:link.current,
#navlist a:visited.current,
#navlist a:hover {
border-bottom: 4px solid green;
padding-bottom: 4px;
background: transparent;
color: green;
}
</style>