master
parent
c3e262d459
commit
34f5705b25
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue