Jasmin Weise 2023-06-14 18:26:05 +02:00
parent c3e262d459
commit 34f5705b25
2 changed files with 22 additions and 3 deletions

View File

@ -338,7 +338,17 @@ TODO:
<!--Link JS file--> <!--Link JS file-->
<!--If it was small and got big, it calls the function only one time and doesn't do it all the time--> <!--If it was small and got big, it calls the function only one time and doesn't do it all the time-->
<script src="resize.js"></script> <script>
var widthissue = false;
window.addEventListener("resize", function(event) {
if(window.innerWidth > 800 && widthissue) {
widthissue = false
unset()
}
else if(window.innerWidth < 800) widthissue = true;
})
</script>
<nav id="activeid" class="active"></nav> <nav id="activeid" class="active"></nav>

View File

@ -28,7 +28,7 @@ TODO (optional, geringe Priorität):
<h1 class="kopf" > <h1 class="kopf" >
<br><br> <br><br>
Bibliothek Bibliothek
<a href="index.php" id="bildID"> <a href="index.html" id="bildID">
<img id="CandleID" src="pictures/candle.png" <img id="CandleID" src="pictures/candle.png"
alt="Bild von einer Kerze" width="200" height="192"/></a> alt="Bild von einer Kerze" width="200" height="192"/></a>
<br><br> <br><br>
@ -365,7 +365,16 @@ TODO (optional, geringe Priorität):
<script src="burgerIcon.js"></script> <script src="burgerIcon.js"></script>
<!--If it was small and got big, <!--If it was small and got big,
it calls the function only one time and doesn't do it all the time--> it calls the function only one time and doesn't do it all the time-->
<script src="resize.js"></script> <script>
var widthissue = false;
window.addEventListener("resize", function(event) {
if(window.innerWidth > 800 && widthissue) {
widthissue = false
unset()
}
else if(window.innerWidth < 800) widthissue = true;
})
</script>
<nav id="activeid" class="active"></nav> <nav id="activeid" class="active"></nav>