<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Find Your Best Roblox Fall Outfit</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
color: #333;
max-width: 600px;
margin: 20px auto;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
h1 {
color: #ff7f50;
text-align: center;
}
.question {
margin-bottom: 20px;
}
.question h2 {
font-size: 1.2em;
}
button {
display: block;
margin: 20px auto;
padding: 10px 20px;
background-color: #ff7f50;
color: white;
border: none;
border-radius: 5px;
font-size: 1em;
cursor: pointer;
}
button:hover {
background-color: #ff6347;
}
#result {
display: none;
margin-top: 20px;
font-weight: bold;
text-align: center;
}
</style>
</head>
<body>
<h1>Discover Your Perfect Roblox Fall Outfit!</h1>
<form id="quizForm">
<div class="question">
<h2>1. What's your go-to fall activity?</h2>
<label><input type="checkbox" name="activity" value="pumpkin" /> Pumpkin Picking</label><br>
<label><input type="checkbox" name="activity" value="campfire" /> Campfire Night</label><br>
<label><input type="checkbox" name="activity" value="hiking" /> Hiking in Nature</label><br>
<label><input type="checkbox" name="activity" value="hot_chocolate" /> Hot Chocolate and Chill</label><br>
</div>
<div class="question">
<h2>2. Which fall color do you like the most?</h2>
<label><input type="checkbox" name="color" value="orange" /> Orange</label><br>
<label><input type="checkbox" name="color" value="brown" /> Brown</label><br>
<label><input type="checkbox" name="color" value="red" /> Red</label><br>
<label><input type="checkbox" name="color" value="yellow" /> Yellow</label><br>
</div>
<div class="question">
<h2>3. How would you describe your fall fashion style?</h2>
<label><input type="checkbox" name="style" value="cozy" /> Cozy and Warm</label><br>
<label><input type="checkbox" name="style" value="sporty" /> Sporty and Active</label><br>
<label><input type="checkbox" name="style" value="chic" /> Chic and Trendy</label><br>
<label><input type="checkbox" name="style" value="casual" /> Casual and Relaxed</label><br>
</div>
<button type="button" onclick="showResult()">Get My Fall Outfit!</button>
</form>
<div id="result"></div>
<script>
function showResult() {
let outfit = "";
const form = document.getElementById("quizForm");
const result = document.getElementById("result");
result.style.display = "block";
const activities = form.querySelectorAll('input[name="activity"]:checked');
const colors = form.querySelectorAll('input[name="color"]:checked');
const styles = form.querySelectorAll('input[name="style"]:checked');
// Outfit suggestion based on answers
if (activities.length > 0 && colors.length > 0 && styles.length > 0) {
if (activities[0].value === "pumpkin" && colors[0].value === "orange" && styles[0].value === "cozy") {
outfit = "You're all about pumpkin spice vibes! Try a cozy orange sweater with a knit scarf and boots.";
} else if (activities[0].value === "campfire" && colors[0].value === "brown" && styles[0].value === "casual") {
outfit = "Chill campfire nights need a relaxed look: try a flannel shirt and some warm boots.";
} else if (activities[0].value === "hiking" && colors[0].value === "red" && styles[0].value === "sporty") {
outfit = "Stay active with a red hoodie and comfy sneakers, perfect for a fall hike!";
} else if (activities[0].value === "hot_chocolate" && colors[0].value === "yellow" && styles[0].value === "chic") {
outfit = "Snuggle up in a stylish yellow cardigan while sipping hot cocoa!";
} else {
outfit = "Your fall Roblox outfit is a mix of styles! Try combining a flannel shirt with trendy boots and a cozy scarf.";
}
} else {
outfit = "Please make at least one selection in each category to get your perfect fall outfit!";
}
result.textContent = outfit;
}
</script>
</body>
</html>
Comments
Post a Comment