-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcms-nav_stu.php
More file actions
97 lines (89 loc) · 3.36 KB
/
Copy pathcms-nav_stu.php
File metadata and controls
97 lines (89 loc) · 3.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<ul class="header" style=" background-color: orange;" >
<li><div class="dropdown">
<button id="prof_menu" onclick="dropdownfunction()" class="dropbtn">Profile Update <i onclick="dropdownfunction()" class="arrow down-arrow"></i></button>
<div id="myDropdown" class="dropdown-content">
<a href="personal_details.php">Personal Details</a>
<a href="parent_details.php">Parent Details</a>
<a href="address_details.php">Address Details</a>
</div>
</div>
</li>
<li><div class="dropdown">
<button id="sem_menu" onclick="dropdownfunction_semester()" class="dropbtn">Semester Info <i onclick="dropdownfunction_semester()" class="arrow down-arrow"></i></button>
<div id="myDropdown_semester" class="dropdown-content">
<a href="#">Semester Registration</a>
<a href="#">Class Routine</a>
<a href="#">Class Test Schedule</a>
<a href="#">Class Test Results</a>
</div>
</div>
</li>
<li><div class="dropdown">
<button id="notice_menu" onclick="dropdownfunction_notice()" class="dropbtn">Announcements <i onclick="dropdownfunction_notice()" class="arrow down-arrow"></i></button>
<div id="myDropdown_notice" class="dropdown-content">
<a href="../dashboard.php">Active Notices</a>
<a href="../stu-noticearch_table.php">Archived Notices</a>
</div>
</div>
</li>
</ul>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function dropdownfunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
function dropdownfunction_semester() {
document.getElementById("myDropdown_semester").classList.toggle("show");
}
function dropdownfunction_notice() {
document.getElementById("myDropdown_notice").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('#prof_menu')) {
var dropdowns = document.getElementsById("myDropdown");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
window.onclick = function(event) {
if (!event.target.matches('#sem_menu')) {
var dropdowns = document.getElementsById("myDropdown_semester");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
window.onclick = function(event) {
if (!event.target.matches('#notice_menu')) {
var dropdowns = document.getElementsById("myDropdown_notice");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
</body>
</html>