waifuism.life
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
waifuism/home/index.html

61 lines
2.2 KiB

8 months ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
8 months ago
<meta name="viewport" content="width=device-width>
8 months ago
<title>Home??</title>
<link rel="icon" href="../static/site/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="../default_style.css">
8 months ago
</head>
8 months ago
<body>
8 months ago
<audio autoplay="" loop="" src="./Mi Casa Tu Casa [SWgIDXR8xR0].mp3"></audio>
<div id="main">
8 months ago
<div id="title">
<div>
<img src="../static/site/logo.png" id="melon">
</div>
<div>
<h1>Pick something?</h1>
</div>
</div>
8 months ago
<div id="menu">
<div id="side">
<a href="./normal/">
8 months ago
<img src="./images/sidetop.png" alt="normal" id="dialogue">
</a>
8 months ago
<img src="./images/sidebottom.png" alt="normal" id="mora">
</div>
8 months ago
<div id="image-container">
<img src="./images/empty.png" id="large-image">
8 months ago
</div>
<div id="seeds">
<a href="./art/" class="seed" id="art"><img src="./images/seed.png"></a>
7 months ago
<a href="./library/" class="seed" id="library"><img src="./images/seed.png"></a>
<a href="./friends/" class="seed" id="friends"><img src="./images/seed.png"></a>
<a href="./coffee/" class="seed" id="coffee"><img src="./images/seed.png"></a>
8 months ago
</div>
</div>
</div>
8 months ago
8 months ago
<script>
const menuItems = document.querySelectorAll('.seed');
8 months ago
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 = `./images/${subfolder}.png`; // Generating image path from subfolder name
8 months ago
largeImage.src = imgSrc;
imageContainer.style.opacity = 1;
});
item.addEventListener('mouseleave', () => {
imageContainer.style.opacity = 0;
});
});
</script>
8 months ago
</body>
</html>