-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (68 loc) · 2.38 KB
/
Copy pathindex.html
File metadata and controls
76 lines (68 loc) · 2.38 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
<body>
<div class="overlay" id="overlay">
</div>
<div class="flip-card-container">
<div class="flip-card" id="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<h1>Kurzer Text</h1>
</div>
<div class="flip-card-back">
<h1>Ausführlicher Text</h1>
<p>Genaue Beschreibung</p>
<p>Und noch mehr Informationen</p>
</div>
</div>
</div>
</div>
<div class="flip-card-container">
<div class="flip-card" id="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<h1>Kurzer Text</h1>
</div>
<div class="flip-card-back">
<h1>Ausführlicher Text</h1>
<p>Genaue Beschreibung</p>
<p>Und noch mehr Informationen</p>
</div>
</div>
</div>
</div>
<div class="flip-card-container">
<div class="flip-card" id="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<h1>Kurzer Text</h1>
</div>
<div class="flip-card-back">
<h1>Ausführlicher Text</h1>
<p>Genaue Beschreibung</p>
<p>Und noch mehr Informationen</p>
</div>
</div>
</div>
</div>
</body>
<script>
function offset(el) {
var rect = el.getBoundingClientRect(),
scrollLeft = window.pageXOffset || document.documentElement.scrollLeft,
scrollTop = window.pageYOffset || document.documentElement.scrollTop;
return { top: rect.top + scrollTop, left: rect.left + scrollLeft }
}
function blur(blur) {
const element = document.getElementById("overlay");
if(blur) {
element.classList.add("overlay-visible")
} else {
element.classList.remove("overlay-visible");
}
}
const flipCardEl = document.getElementsByClassName("flip-card");
for (let index = 0; index < flipCardEl.length; index++) {
const element = flipCardEl[index];
element.addEventListener("click", function() {
});
}
</script>