A realistic phone simulation built with vanilla HTML, CSS, and JavaScript. This project mimics a mobile device interface with multiple functional apps that interact with each other, just like a real smartphone.
- Double-click to wake - Simulates unlocking the phone
- Real-time clock & date - Updates every second
- Home screen with app icons - Navigate between apps
- Keypad dialer - Tap numbers to dial
- Nigerian number validation - Validates 080..., 090..., etc.
- Call simulation - Ringing, connected state, and timer
- Contact lookup - Shows contact name if saved, otherwise "Unknown"
- Call cost calculation - ₦0.50/second deducted from balance
- Recent calls log - Persistent call history
- Generate 16-digit PINs - For MTN, GLO, Airtel, 9Mobile
- Network-specific cards - Cards only work on their designated network
- Card status tracking - Shows USED/UNUSED status
- Multi-SIM support - Switch between MTN, GLO, Airtel, 9Mobile
- Separate balances - Each network has its own airtime balance
- USSD Recharge - Dial
*311*PIN#to load airtime - Network validation - Can't load MTN card on GLO, etc.
- Add contacts - Name and phone number
- Edit contacts - Modify existing entries
- Delete contacts - Remove unwanted contacts
- Persistent storage - Saved in localStorage
- Send messages - To any contact
- Chat bubble UI - Modern messaging interface
- Persistent history - Messages saved locally
- Google search - Opens search in new tab
- Mobile-friendly - Search button for touch devices
- Keyboard controls - Arrow keys or A/D
- Score tracking - Points for jumping higher
- Game over detection - Fall off screen to lose
- Webcam integration - Uses device camera
- Take photos - Capture and download images
- Play/pause controls - Standard music controls
- Track information - Artist and song name display
- Basic operations - Add, subtract, multiply, divide
- Clear function - Reset calculations
- A modern web browser (Chrome, Firefox, Edge, Safari)
- VS Code with Live Server extension (recommended)
- Clone the repository:
git clone https://github.com/SlinkyCollins/Phone-App.git
- Open the project folder in VS Code
- Right-click
index.htmland select "Open with Live Server" - Or simply open
index.htmlin your browser
- Wake the phone - Double-click the phone screen
- Open apps - Click on app icons
- Go back home - Click the home button at the bottom
- Go to "Generate Voucher" section (top of page)
- Select GLO, amount ₦500, quantity 1
- Click "Generate Card" and copy the 16-digit PIN
- Open Phone App → Click network badge → Select GLO
- Dial
*311*[PASTE PIN]#and press call - Balance updates to ₦500!
- Ensure you have balance on the active network
- Dial a valid number (e.g.,
08012345678) - Press the green call button
- Watch the timer run
- Press red button to end - cost is deducted!
- HTML5 - Structure
- CSS3 - Styling & animations
- JavaScript (Vanilla) - Logic & interactivity
- LocalStorage - Data persistence
- Webcam.js - Camera functionality
Phone-App/
├── index.html # Main HTML file
├── style.css # Main styles
├── script.js # Core JavaScript logic
├── music.js # Music player logic
├── music.css # Music player styles
├── game.js # Doodle Jump game logic
├── game.css # Game styles
├── image/ # App icons & assets
└── README.md # This file
- Add SMS receiving simulation
- Implement call receiving from "other phone"
- Add more games
- Dark/Light mode toggle
- Notification system
SlinkyCollins
- GitHub: @SlinkyCollins
This project is open source and available under the MIT License.
- School project for Web Development Level 2
- Inspired by real smartphone interfaces