Bill Payer Game Using HTML, CSS and JavaScript with Source Code
Welcome to the Bill Payer Game, an exciting and interactive web app designed to bring fun and suspense to your social gatherings! Whether you're out with friends, deciding who picks up the dinner tab, or settling friendly bets, this game adds a playful twist by randomly selecting one person from your group to pay the bill. With a sleek, user-friendly design and an engaging loading animation, the Bill Payer Game turns a simple decision into an entertaining experience.
Built using HTML, CSS, and JavaScript, this app combines clean aesthetics with smooth functionality. Simply enter the names of all participants, hit the "Who Pays?" button, and watch the suspense build as the loading spinner keeps you guessing. In just a few moments, the lucky (or unlucky!) payer is revealed. It's a fun, easy-to-use tool that brings excitement and anticipation to any outing or gathering!
You may also check this simple HTML, CSS and JavaScript project:
- 3D Cube Images
- Bill Splitter with Tip Calculator
- Quote Generator with Social Sharing
- Dark and Light Mode Toggle
- Food Recipes Nutrition Facts
Features:
- Random Selection: Randomly picks a person from the list of names you provide.
- Loading Animation: A suspenseful loading spinner builds anticipation before the result is revealed.
- User-Friendly Interface: Simple and clean design with an easy-to-use input field and interactive button.
- Responsive Design: Fully responsive and looks great on any device (desktop, tablet, or mobile).
Technologies Used:
- HTML: Provides the structure of the application, including the input field, button, and result display.
- CSS: Styles the application with a vibrant gradient background, rounded buttons, and a smooth loading animation.
- JavaScript: Implements the core functionality, including input validation, random name selection, and dynamic UI updates.
How to Use:
- Enter Names: Type the names of the participants into the text area, separating each name with a comma (e.g., "John, Sarah, Mike").
- Click 'Who Pays?': Press the button to start the selection process.
- Experience the Suspense: Watch the spinning loader for a few seconds as the game builds up the excitement.
- See the Result: The chosen person’s name will be displayed, indicating who pays the bill!
Sample Screenshots of the Project:
Landing Page
Loading
Result
How to Run?
- Download the provided source code zip file.
- Extract the downloaded zip file.
- Open the html file and you are now ready to go!
Video Demonstration for Installation/Setup:
Conclusion:
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Add new comment
- 101 views