-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.html
84 lines (80 loc) · 2.01 KB
/
header.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400&display=swap"
rel="stylesheet"
/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<script>
$(document).ready(function () {
$("#topfilter").on("keyup", function () {
var value = $(this).val().toLowerCase();
$("#list tr").filter(function () {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1);
});
});
});
</script>
<style>
* {
font-family: "Noto Sans", sans-serif;
}
.topbar {
overflow: hidden;
background-color: #61666c;
position: fixed;
top: 0;
left: 0;
width: 100%;
}
.topbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topbar a:hover {
background: #ddd;
color: black;
}
.topbar input[type="text"] {
float: center;
padding: 6px;
border: none;
margin-top: 9px;
margin-left: 32px;
width: 30%;
font-size: 17px;
}
/* Main content */
.main {
color: #5f5f5f;
margin-top: 50px; /* Add a top margin to avoid content overlay */
}
.main a {
color: #5f5f5f;
text-decoration: none;
}
.main a:hover {
color: #000;
text-decoration: underline;
}
#list {
width: 60%;
margin-left: auto;
margin-right: auto;
}
</style>
<body>
<div class="topbar">
<a href="../">Go back</a>
<input id="topfilter" type="text" placeholder="Filter.." />
</div>
<div class="main">