-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
81 lines (81 loc) · 2.95 KB
/
index.html
File metadata and controls
81 lines (81 loc) · 2.95 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
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles.css">
<link rel="stylesheet" href="./menu-scrollbar.css">
<title>My Life Library</title>
</head>
<body>
<header>
<nav id="years">
<div class="dotstyle dotstyle-dotmove">
<ul>
<li class="current">
<span class="year-label">2025</span>
<a href="#first-p"></a>
</li>
<li>
<span class="year-label">2024</span>
<a href="#second-p"></a>
</li>
<li>
<span class="year-label">2023</span>
<a href="#third-p"></a>
</li>
<!-- <li>
<span class="year-label">2022</span>
<a href="#"></a>
</li>
<li>
<span class="year-label">2021</span>
<a href="#"></a>
</li>
<li>
<span class="year-label">2020</span>
<a href="#"></a>
</li> -->
<li><!-- dummy dot --></li>
</ul>
</div>
</nav>
</header>
<main>
<div id="slider">
<section id="section-2025">
<div id="bookContainer2025" class="bookContainer"></div>
</section>
<section id="section-2024">
<div id="bookContainer2024" class="bookContainer"></div>
</section>
<section id="section-2023">
<div id="bookContainer2023" class="bookContainer"></div>
</section>
<section id="section-2022">
<div id="bookContainer2022" class="bookContainer"></div>
</section>
<section id="section-2021">
<div id="bookContainer2021" class="bookContainer"></div>
</section>
<section id="section-2020">
<div id="bookContainer2020" class="bookContainer"></div>
</section>
</div>
</main>
<footer></footer>
<script src="./matter.min.js"></script>
<script src="./script.js"></script>
<!-- Script for the current Dot to move -->
<script>
document.querySelectorAll('.dotstyle a').forEach((link, index) => {
link.addEventListener('click', function(e) {
e.preventDefault();
document.querySelector('.dotstyle .current').classList.remove('current');
link.parentElement.classList.add('current');
document.getElementById('slider').style.transform = `translateX(-${index * 100}vw)`;
});
});
</script>
</body>
</html>