HTMLify
index.html
Views: 147 | Author: vinay5ain
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title>Mobile Clock Toolkit</title> <link rel="stylesheet" href="style.css"> </head> <body onload="initApp()"> <audio id="alarm-sound" src="diet_mountain_dew.mp3" preload="auto"></audio> <!-- Navbar --> <nav class="navbar"> <div class="navbar-links"> <a href="#live-clock">🕒 Live Clock</a> <a href="#analog-clock">🕰️ Analog Clock</a> <a href="#stopwatch">⏱️ Stopwatch</a> <a href="#countdown">⏳ Countdown</a> <a href="#alarm">⏰ Alarm</a> <button onclick="toggleDarkMode()" title="Toggle Dark Mode">🌓</button> </div> </nav> <!-- Main Content --> <main class="container"> <!-- Live & World Clock --> <section id="live-clock" class="clock-section"> <div> <h2>Local Clock</h2> <div id="localClock" class="live-clock"></div> </div> <div class="world-grid"> <div id="world-utc" class="world-time"></div> <div id="world-london" class="world-time"></div> <div id="world-tokyo" class="world-time"></div> <div id="world-newyork" class="world-time"></div> </div> </section> <!-- Analog Clock --> <section id="analog-clock"> <h2>Analog Clock</h2> <canvas id="canvas" width="250" height="250"></canvas> </section> </div> </section> <!-- Stopwatch --> <section id="stopwatch"> <h2>Stopwatch</h2> <div id="stopwatchDisplay">00:00:00</div> <button onclick="startStopwatch()">Start</button> <button onclick="pauseStopwatch()">Pause</button> <button onclick="resetStopwatch()">Reset</button> </section> <!-- Countdown --> <section id="countdown"> <h2>Countdown</h2> <input id="cdHours" type="number" placeholder="HH" min="0" max="23"> <input id="cdMinutes" type="number" placeholder="MM" min="0" max="59"> <input id="cdSeconds" type="number" placeholder="SS" min="0" max="59"> <div id="countdownDisplay">00:00:00</div> <button onclick="startCountdown()">Start</button> <button onclick="pauseCountdown()">Pause</button> <button onclick="resetCountdown()">Reset</button> </section> <!-- Alarm --> <section id="alarm"> <h2>Alarm</h2> <input id="alarmHours" type="number" placeholder="HH" min="0" max="23"> <input id="alarmMinutes" type="number" placeholder="MM" min="0" max="59"> <button onclick="setAlarm()">Set Alarm</button> <button onclick="clearAlarm()">Clear Alarm</button> <p id="alarmStatus">Alarm not set</p> </section> </main> <!-- Footer --> <footer>Made by Shivani Mourya | BCA Project</footer> <!-- Script --> <script src="script.js"></script> </body> </html> |