-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
306 lines (269 loc) · 11.2 KB
/
index.html
File metadata and controls
306 lines (269 loc) · 11.2 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./CSS/bootstrap.min.css" rel="stylesheet">
<link href="./CSS/styles.css" rel="stylesheet">
<title>Babel codes</title>
</head>
<body>
<section id="home"></section>
<nav class="navbar navbar-expand-lg fixed-top">
<div class="container justify-content-center">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navicon">
<img class="icon" src="./IMAGE/Skateboarding.png" width=26px height=26px alt="Icon 1">
</div>
<a class="navbar-brand" href="#">Babel codes</a>
<div class="collapse navbar-collapse justify-content-center" id="navbarSupportedContent">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#projects">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#c++">C++</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#java">Java</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#other">Other</a>
</li>
</ul>
</div>
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="#">Impressum – Legal Notice</a>
</li>
</ul>
</div>
</nav>
<div class="breaker"></div>
<div class="glass">
<div class="container-view">
<section class="home">
<h1>
Welcome to my website! <br>Explore my projects and see <br>how I try to continuously enhance my skills. <br>Enjoy your discovery!</h1>
</section>
</div>
</div>
<div class="breaker"></div>
<section id="projects"></section>
<div class="image_element1">
<section class="hidden">
<img class="img_el1" src="./IMAGE/skateboard.jpg" alt="Image 1">
</section>
</div>
<div class="breaker"></div>
<section class="hidden">
<section id="c++"></section>
<div class="glass">
<div class="container-view">
<section class="uphid">
<img class="cicon" src="./IMAGE/cplusplus.png" alt="C++Icon" width=150px height=150px>
</section>
<h1>Beginning (C++)
<h2>
Counting loop:</h2>
<p>Testing the limits of c++ and my laptop</p>
<img class="cgif" src="./FILES/c2-min.gif" width=400px height=200px>
<h2>Encryption:</h2>
<p>An easy encryption programm</p>
<img class="cgif2" src="./FILES/c3-min.gif" width=600px height=300px>
<a href="./FILES/c++.zip" download="c++.zip">DOWNLOAD ZIP</a>
</div>
</div>
</section>
<div class="breaker"></div>
<section id="java"></section>
<section class="hidden">
<div class="glass">
<div class="container-view">
<img class="javcon" src="./IMAGE/java.png" width=150px height=150px>
<h1>Java
<h2>
Programm collection:
</h2>
<p>Math programms</p>
<img class="javamath" src="./FILES/javaalge.png">
<p><br>Games</p>
<img class="javagame" src="./FILES/javagames.png">
<a href="./FILES/programmpack.zip" download="programmpack.zip"><br>DOWNLOAD ZIP</a>
<h2><br>Zeiterfassung (WIP)</h2>
<img class="javazeit" src="./FILES/zeiterfassung.png">
<p>This is still a work in progress. Basic functionality is working.</p>
<a href="./FILES/zeiterfassung.zip" download="zeiterfassung.zip"><br>DOWNLOAD ZIP</a>
<p>IMPORTANT! Database is not provided in the download!</p>
</div>
</div>
</section>
<div class="breaker"></div>
<section id="other"></section>
<section class="hidden">
<div class="glass">
<div class="container-view">
<h1>Python & JavaScript
<h2>Python:</h2>
<p>I did a small programm for chosing the powermode of my laptop.<br>But because it works with registrykeys, it regulary bricked the poweroptions via the windows gui. So I deleted it<br></p>
<h2>Javascript:</h2>
<p>I made a little "ai" picture recognizing software, on the basis of a tutorial.</p>
<img class="jsdataview" src="./FILES/dataviewer.png">
<p>This is the dataset and a viewer which shows how many points and lines have been used to create the picture.<br></p>
<img class="jsdatagen" src="./FILES/datacreator.png">
<p>This is the datagenerator, here users can draw pictures to the prepared examples.<br>No downloadlink availabel because the dataset is to big for gitpage</p>
</div>
</div>
</section>
<div class="breaker"></div>
<section class="hidden">
<div class="glass"><div class="container-view">
<h1>Thank you for looking at my page and my assortment of my projects.<br>
I got more projects on my drive. <br>
For questions and contact: <br>
Please refer to the informations in my email.
<br>
</h1>>
<section class="uphid">
<img class="ed" src="./IMAGE/edsm.png">
</section>
</div>
</div>
</section>
<button onclick="topFunction()" id="myBtn" title="Go to top">Go to top</button>
<script defer src="./JS/bootstrap.bundle.min.js"></script>
<script>
const navEL = document.querySelector('.navbar');
document.body.style.height = '8700px';
document.body.style.overflowx = 'hidden';
document.addEventListener("DOMContentLoaded", function () {
var selectedMode = localStorage.getItem('selectedMode');
if (selectedMode === 'light') {
applyLightMode();
} else if (selectedMode === 'color') {
applyColorMode();
} else if (selectedMode === 'dark') {
applyDarkMode();
} else {
applyColorMode();
}
});
function applyLightMode() {
document.body.style.background = 'linear-gradient(170deg, rgba(255,255,255,1) 0%, rgba(126,191,246,1) 90%, rgba(255,218,0,1) 100%)';
document.body.style.color = 'black';
document.querySelector('footer').style.color = 'black';
navEL.classList.remove('navbar-dark');
}
function applyColorMode() {
navEL.classList.add('navbar-dark');
document.body.style.background = 'linear-gradient(149deg, rgb(247, 0, 255) 0%, rgb(255, 145, 0) 100%)';
document.body.style.color = 'black';
document.querySelector('footer').style.color = 'white';
}
function applyDarkMode() {
document.body.style.background = 'linear-gradient(149deg, rgb(0, 0, 0) 0%, rgb(5, 1, 53) 100%)';
navEL.classList.add('navbar-dark');
document.querySelector('footer').style.color = 'white';
document.querySelector('body').style.color= 'white';
}
window.addEventListener('scroll', () => {
var selectedMode = localStorage.getItem('selectedMode');
const navSC = document.querySelector('.navbar-scrolled');
if (window.scrollY >= 56){
navEL.classList.add('navbar-scrolled');
if( selectedMode === 'light'){
navEL.classList.add('navbar-dark');
}
if( selectedMode === 'dark'){
navSC.style.backgroundColor = 'white';
navEL.classList.remove('navbar-dark');
}
} else if (window.scrollY < 56) {
if( selectedMode === 'dark'){
navSC.style.backgroundColor = 'black';
navEL.classList.add('navbar-dark');
}
navEL.classList.remove('navbar-scrolled');
if( selectedMode === 'light'){
navEL.classList.remove('navbar-dark');
}
}
});
// Get the button:
let mybutton = document.getElementById("myBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 600 || document.documentElement.scrollTop > 600) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) =>{
console.log(entry)
if (entry.isIntersecting){
entry.target.classList.add('show');
} else {
entry.target.classList.remove('show');
}
})
})
const hiddenElements = document.querySelectorAll('.hidden');
hiddenElements.forEach((el) => observer.observe(el));
const observer1 = new IntersectionObserver((entries) => {
entries.forEach((entry) =>{
console.log(entry)
if (entry.isIntersecting){
entry.target.classList.add('upsho');
} else {
entry.target.classList.remove('upsho');
}
})
})
const hiddenElements1 = document.querySelectorAll('.uphid');
hiddenElements1.forEach((el) => observer1.observe(el));
const sections = document.querySelectorAll('section'); // Alle Abschnitte auf der Seite auswählen
window.addEventListener('scroll', () => {
let current = '';
sections.forEach(section => {
const sectionTop = section.offsetTop;
const sectionHeight = section.clientHeight;
if (pageYOffset >= sectionTop - sectionHeight / 4) { // Wenn der Benutzer sich innerhalb des Abschnitts befindet
current = section.getAttribute('id'); // Die ID des aktuellen Abschnitts erhalten
}
});
// Alle Nav-Links deaktivieren
document.querySelectorAll('.navbar-nav a').forEach(navLink => {
navLink.classList.remove('active');
});
// Aktiven Nav-Link basierend auf dem aktuellen Abschnitt auswählen und aktivieren
document.querySelector(`.navbar-nav a[href="#${current}"]`).classList.add('active');
});
// Selektiere alle Navbar-Elemente
const navLinks = document.querySelectorAll('.navbar-nav a');
// Iteriere über jedes Navbar-Element und füge einen Klick-Event-Listener hinzu
navLinks.forEach(link => {
link.addEventListener('click', () => {
// Entferne die 'active'-Klasse von allen Navbar-Elementen
navLinks.forEach(navLink => {
navLink.classList.remove('active');
});
// Setze die 'active'-Klasse nur auf das angeklickte Navbar-Element
link.classList.add('active');
});
});
</script>
</body>
</html>