-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
125 lines (121 loc) · 4.03 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
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
<?php header('Access-Control-Allow-Origin: *'); ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="FRC 2135">
<link rel="icon" href="./images/favicon.ico">
<link rel="icon" type="image/png" href="./images/favicon-32x32.png" sizes="32x32">
<link href="./external/bootstrap-5.1.3/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<style>
/* a {
color: #000;
text-decoration: none;
} */
.nav {
text-decoration: none;
border-radius: 10px;
padding: 0px 10px;
margin: auto;
text-align: center;
float: left;
}
/* .nav li {
list-style-type: none;
float: left;
margin: 0;
padding: 0;
overflow: hidden;
} */
.nav li a {
display: inline-block;
color: #A9A9A9;
margin: auto;
width: 76px;
float: left;
}
.nav a:hover {
color: #fff;
}
.nav li a.selected {
text-decoration: none;
list-style-type: none;
margin: auto;
text-align: center;
float: left;
padding: 10px 0px;
background-color: #0d6efd;
color: #fff;
}
</style>
</head>
<body class="bg-light"> <!-- planning to look somewhere to investigate how far the header expands, see if i can ... idk what it says after-->
<header class="navbar navbar-expand-md navbar-dark sticky-top bg-dark">
<div class="container">
<a class="navbar-brand" href="#">FRC 2135</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="nav" style="text-align:center">
<li class="nav-item">
<a class="nav-link" href="./index.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./RawData.php">Raw Data</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./averages.php">Averages</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./teamLookup.php">Team Lookup</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./matchSheet.php">Match Sheet</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./strategicData.php">Strategic Data</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./pitScouting.php">Pit Scouting</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./driveRank.php">Strategic Scouting</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./pictureUpload.php">Picture Upload</a>
</li>
<!--HOLD <li class="nav-item">
<a class="nav-link" href="./allianceRanking.php">Alliance Rank</a>
</li> HOLD-->
<li class="nav-item">
<a class="nav-link" href="./qrScanner.php">QR Scanner</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./rawCoprData.php">COPRs</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./picklist.php">Picklist</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./strategic.php">Strategic Schedule</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./dbStatus.php">DB Status</a>
</li>
</ul>
</div>
</div>
</header>
<script>
const currentLocation = location.href;
const items = document.querySelectorAll("a");
const length = items.length;
for (let i = 0; i < items.length; i++) {
if (items[i].href === currentLocation) {
items[i].className = "selected";
}
}
</script>