GitHub repository: luzan28/index.html
Created: 2020-10-14T01:56:46Z
Description: <!DOCTYPE html> <html lang ="en" >     <head>         <meta charset ="UTF-8">         <title>Digital Clock</title>         <link rel="stylesheet" type="text/css" href="styles/styles.css">          </head>     <body>         <div id="clock">07:10:35</div>         <script type="text/javascript">          function showTime()          {              var time=new Date();              var hr = time.getHours();              var min =time.getMinutes();              var sec =time.getSeconds();                          if(hr==12)             {                 hr-=12;             }             if(hr==0)             {                 hr ==12;             }             hr =(hr<10) ? "0"+ hr :hr;             min =(min<10) ? "0" + min :min;             sec =(sec<10) ? "0" + sec :sec;                           var currentTime =hr +":" + min +":"+ sec;              document.getElementById("clock").innerHTML =currentTime;               setTimeout(showTime,1000);               }               showTime();         </script>     </body> </html>