A fun and interactive web application to track wins and maintain leaderboards for card game sessions with friends! Built as a learning project to practice web development fundamentals.
- Multi-Player Support: Track scores for up to 4 players (Ujjwal, Rudresh, Deepu, Shiven)
- Weekly Progression: Navigate through different weeks of gaming sessions
- Animated Score Updates: Smooth number animations when scores change
- Real-Time Leaderboard: Dynamic ranking system with podium display
- Card Game Theme: Beautiful card suit symbols (
♥️ ♠️ ♦️ ♣️ ) for visual appeal - Responsive Design: Works on desktop and mobile devices
Check out the live application: Fun Web Dev
- HTML5: Semantic markup and structure
- CSS3: Custom styling and responsive design
- JavaScript (ES6+): Interactive functionality and animations
- GitHub Pages: Hosting and deployment
The application tracks wins for four players:
- U (Ujjwal) -
♥️ Hearts - R (Rudresh) -
♠️ Spades - D (Deepu) -
♣️ Clubs - S (Shiven) -
♦️ Diamonds
- Navigate between different weeks using the week selector
- Each week maintains separate win counts
- Historical data is preserved across sessions
- Podium Display: Top 3 players shown with 🥇🥈🥉 rankings
- Full Leaderboard: Complete ranking table with total wins
- Real-Time Updates: Rankings update automatically as scores change
- Smooth number transitions when scores update
- 1-second duration animations for visual feedback
- Prevents animation conflicts with proper state management
Fun_web_dev/
├── index.html # Main HTML structure
├── styles.css # CSS styling and responsive design
├── script.js # JavaScript functionality
├── README.md # Project documentation
└── .gitignore # Git ignore rules
- A modern web browser (Chrome, Firefox, Safari, Edge)
- Basic understanding of HTML/CSS/JavaScript (for modifications)
-
Clone the repository:
git clone https://github.com/Ujjwal238/Fun_web_dev.git
-
Navigate to the project directory:
cd Fun_web_dev -
Open
index.htmlin your web browser:open index.html # or python -m http.server 8000 # For local server
- Click on a player's win counter to increment their score
- Watch the animated number update
- See real-time leaderboard changes
- Use the week selector to switch between different time periods
- Each week maintains independent scoring
- Leaderboard calculates total wins across all weeks
- Check the podium for top 3 players
- View the complete leaderboard table below
- Rankings update automatically based on total wins
- Update the
weeklyScoresarray inscript.js - Add corresponding HTML elements in
index.html - Update the player arrays in JavaScript functions
- Modify
styles.cssfor visual customizations - Card suit themes can be changed in CSS
- Color schemes and animations are easily adjustable
- Add more weeks by expanding the
weeklyScoresarray - Implement local storage for data persistence
- Add export functionality for sharing results
const weeklyScores = [
{ ujjwal: 0, rudresh: 0, deepu: 0, shiven: 0 }, // Week 1
{ ujjwal: 0, rudresh: 0, deepu: 0, shiven: 0 }, // Week 2
// ... more weeks
];displayWeekScores(): Updates UI with current week dataanimateNumber(): Handles smooth score transitionsupdateLeaderboard(): Calculates and displays rankingschangeWeek(): Navigation between time periods
This project embraces a playful card game aesthetic with:
- Card suit symbols for visual identity
- Clean, readable typography
- Smooth animations for user engagement
- Responsive design for all devices
- Intuitive user interface
- Scores reset on page refresh (no persistence)
- Limited to 4 predefined players
- Week navigation is manual only
- Local storage for data persistence
- Add/remove players dynamically
- Export scores to CSV/JSON
- Game history and statistics
- Sound effects for score updates
- Dark/light theme toggle
- Mobile app version
This is a personal learning project, but suggestions and improvements are welcome!
- Fork the repository
- Create a feature branch (
git checkout -b feature/improvement) - Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature/improvement) - Open a Pull Request
This project is open source and available under the MIT License.
Ujjwal - GitHub Profile
- Built as a fun learning project to practice web development
- Inspired by classic card game scoring systems
- Thanks to friends for testing and feedback
Happy Gaming! 🎮