-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (67 loc) · 2.94 KB
/
index.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
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Selber Wölfe Top Bar</title>
<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=Inter:[email protected]&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/modern-normalize.min.css">
<link rel="stylesheet" href="app.css" />
<style>
</style>
</head>
<body>
<div class="svv-meta-bar svv-meta-bar--scroll-right">
<div class="svv-meta-bar__container">
<ul class="svv-meta-bar__items">
<li class="svv-meta-bar__item svv-meta-bar__item--active">
<a class="svv-meta-bar__button" href="https://www.selberwoelfe.de/" target="_blank">
<img src="/img/selber-woelfe-logo.svg" alt="Selber Wölfe Logo">
<span>Selber Wölfe</span>
</a>
</li>
<li class="svv-meta-bar__item">
<a class="svv-meta-bar__button" href="https://www.verselb.de/" target="_blank">
<img src="/img/ver-selb-logo.svg" alt="VER Selb Logo">
<span>VER Selb</span>
</a>
</li>
<li class="svv-meta-bar__item">
<a class="svv-meta-bar__button" href="https://www.verselb.de/" target="_blank">
<img src="/img/selber-woelfe-juniors-logo.svg" alt="Selber Wölfe Juniors Logo">
<span><span class="svv-meta-bar__nobr">Selber Wölfe</span> Juniors</span>
</a>
</li>
<li class="svv-meta-bar__item">
<a class="svv-meta-bar__button" href="https://www.vorium-selb.de/" target="_blank">
<img src="/img/vorium-white-logo.svg" alt="VORIUM Logo">
<span>VORIUM</span>
</a>
</li>
</ul>
</div>
</div>
<div class="page-frame">
<iframe src="https://www.selberwoelfe.de/" frameborder="0" scrolling="no"></iframe>
</div>
<script>
const metaBar = document.querySelector('.svv-meta-bar');
const container = document.querySelector('.svv-meta-bar__container');
const cssScrollClassLeft = 'svv-meta-bar--scroll-left';
const cssScrollClassRight = 'svv-meta-bar--scroll-right';
container.addEventListener('scroll', () => {
if (container.scrollLeft > 5) {
metaBar.classList.add(cssScrollClassLeft);
metaBar.classList.remove(cssScrollClassRight);
} else {
metaBar.classList.remove(cssScrollClassLeft);
metaBar.classList.add(cssScrollClassRight);
}
});
</script>
</body>
</html>