|
|
|
@ -7,17 +7,38 @@ |
|
|
|
|
<link rel="icon" href="../static/site/favicon.png" type="image/x-icon"> |
|
|
|
|
<link rel="stylesheet" href="styles.css"> |
|
|
|
|
</head> |
|
|
|
|
<body><img src="logo.png" id="logo"> |
|
|
|
|
<body> |
|
|
|
|
|
|
|
|
|
<img src="start.png" alt=""> |
|
|
|
|
<div id="menu"> |
|
|
|
|
<div> |
|
|
|
|
<img src="logo.png" id="logo"> |
|
|
|
|
<div id="image-container"> |
|
|
|
|
<img src="empty.png" id="large-image"> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<a href="./art/index.html" class="seed"><img src="seed.png"></a> |
|
|
|
|
<a href="./shrine/index.html" class="seed"><img src="seed.png"></a> |
|
|
|
|
<a href="./friends/index.html" class="seed"><img src="seed.png"></a> |
|
|
|
|
<a href="./about/index.html" class="seed"><img src="seed.png"></a> |
|
|
|
|
<a href="./art/index.html" class="seed" id="art"><img src="seed.png"></a> |
|
|
|
|
<a href="./shrine/index.html" class="seed" id="shrine"><img src="seed.png"></a> |
|
|
|
|
<a href="./friends/index.html" class="seed" id="friends"><img src="seed.png"></a> |
|
|
|
|
<a href="./stuff/index.html" class="seed" id="stuff"><img src="seed.png"></a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>const menuItems = document.querySelectorAll('.seed'); |
|
|
|
|
const largeImage = document.getElementById('large-image'); |
|
|
|
|
const imageContainer = document.getElementById('image-container'); |
|
|
|
|
|
|
|
|
|
menuItems.forEach(item => { |
|
|
|
|
item.addEventListener('mouseenter', () => { |
|
|
|
|
const subfolder = item.getAttribute('id'); |
|
|
|
|
const imgSrc = `${subfolder}.png`; // Generating image path from subfolder name |
|
|
|
|
largeImage.src = imgSrc; |
|
|
|
|
imageContainer.style.opacity = 1; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
item.addEventListener('mouseleave', () => { |
|
|
|
|
imageContainer.style.opacity = 0; |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
</script> |
|
|
|
|
</body> |
|
|
|
|
</html> |
|
|
|
|