A sweet and playful web app made with HTML, CSS, and JavaScript that lets users choose between “Yes” or “No” buttons with a fun twist — the “No” button dodges your mouse! When the user clicks “Yes,” they get to pick a romantic date and time with a beautiful video background.
- Playful “No” button that moves away on hover
- “Yes” button leads to date picker page
- Background video (choose between
happyMelody.mp4ormyMelody.mp4) - Date & time picker with confirmation
- Displays the chosen date in a charming format
| File | Description |
|---|---|
index.html |
The main interactive question page |
style.css |
Styling for the main question page |
script.js |
JavaScript handling the button interactions |
date.html |
The date and time selection page |
date.css |
Styling for the date selection page |
date.js |
JavaScript for confirming and displaying the chosen date/time |
happyMelody.mp4 |
Background video option 1 for the date page |
myMelody.mp4 |
Background video option 2 for the date page |
- Clone or download the project files to your local machine.
- Open
index.htmlin any modern web browser. - On the main page, try to click “Yes” or catch the dodging “No” button.
- Clicking “Yes” will take you to the date picker page.
- Select your preferred date and time, then click “Confirm.”
- See your chosen date displayed with a romantic background video!
- To switch the background video on the date picker page, open
date.htmland update the<source>inside the<video>tag:
<video autoplay loop muted>
<source src="happyMelody.mp4" type="video/mp4">
<!-- or -->
<source src="myMelody.mp4" type="video/mp4">
</video>By Hein Pyae Sone Htet dedicated to my gorgeous and precious girlfriend.