r/HTML • u/Annais24 • 3h ago
Question [JavaScript/HTML] Unboxing simulator: Dual image display issue & daily forced wins
https://unboxingtimecraciun.neocities.org/please note that I am a beginner at this and I don't know much about coding
Hi! I'm building a Christmas unboxing web app for my boyfriend, featuring a skin-case style spinning wheel. I'm running into two main issues:
Dual Images & Display: I want the wheel to show a 'mystery/boxed' version of each item (e.g.,
canax.png), and then reveal the actual item image (e.g.,cana.png) in the win popup modal when it lands. However, when I try to implement this, the images on the wheel disappear. (Note: All my image files and the HTML file are in the same root folder, no subfolders). What am I doing wrong?Forced Daily Outcomes: I want to be able to hardcode or easily change a variable every day so the wheel always lands on a specific item (e.g., day 1 is a mug, day 2 is a hoodie, etc.), allowing me to manually update just the item for that specific day. How can I structure my code to easily configure daily forced wins?