-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.html
More file actions
45 lines (38 loc) · 1.34 KB
/
default.html
File metadata and controls
45 lines (38 loc) · 1.34 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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>TITLE</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="menu">
<h2>
<a class="menu-item" href="index.html">Startseite</a>
<a class="menu-item" href="test.html">Test</a>
<a class="menu-item" href="html-help.html">HTML Hilfe</a>
<a class="menu-item" href="default.html">Default page</a>
<a class="menu-item" href="stundenplan.html">Stundenplan</a>
</h2>
</div>
<div id="header">
<h1 class="headline">HEADER1</h1>
<h2 class="sub-headline">HEADER2</h2>
</div>
<a id="jump-to-top" href="javascript:void(0)" onclick="scrollToTop()">/\</a>
<script>
window.onscroll = function() {onScroll()};
function onScroll() {
closeNav();
if (document.body.scrollTop > 180 || document.documentElement.scrollTop > 180) {
document.getElementById("jump-to-top").style.opacity = 100;
} else {
document.getElementById("jump-to-top").style.opacity = 0;
}
}
function scrollToTop() {
window.scrollTo(0, 0);
}
</script>
</body>
</html>