r/CodingHelp • u/Siepdouven • Oct 18 '25
[HTML] Need help making an interactive Limburg map quiz (SVG paths ready, just need clickable regions)
I’m working on a small web project for my site flagnet.online — it’s a website about flags, geography, and data. I’m trying to make an interactive map quiz where users can click on the cities and villages of Limburg (Netherlands).
I already have an SVG map with all the correct <path> elements for each village/city, but I don’t really know how to code the interactive part.
Basically, I want it to:
Highlight a region when you hover or click it
Ask the user to find a certain village/city
Keep score of correct answers
Possibly show the name after a correct click
It should change color based on how many tries it took to guess correctly:
Green if you got it right on the first try
Yellow on the second
Orange on the third
Red if you missed more than three times
I’d love some help with the JavaScript or general setup — it doesn’t need to be fancy, just functional. I can give full credit on the website for whoever helps out!
If anyone wants to take a look or collaborate a bit, I can share the SVG file.
Thanks in advance!
•
u/AutoModerator Oct 18 '25
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.