SHARE
TWEET

Untitled

USAGOV Jun 3rd, 2014 237 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. Current Time:
  5. <br />
  6. <iframe src="http://free.timeanddate.com/clock/i46izfik/n211/tluk/tt0/tw0/tm3/td2/th1/ta1/tb3" frameborder="0" width="174" height="18"></iframe>
  7. <br />
  8. </script>
  9. Spent Vote-Time:
  10. <br />00:00:00
  11. <br />
  12. <br />Available Vote-Time:
  13. <br />00:00:00
  14. <br />
  15. <br />Registration Time
  16. <br /><button onclick="myFunction()">REGISTER</button>
  17. <p id="demo">
  18. <script>
  19. function myFunction() {
  20.     var d = new Date();
  21.     document.getElementById("demo").innerHTML = d.getTime();
  22. }
  23. </script>
  24. <script>
  25. function startTime() {
  26.     var today=new Date();
  27.     var h=today.getHours();
  28.     var m=today.getMinutes();
  29.     var s=today.getSeconds();
  30.     m = checkTime(m);
  31.     s = checkTime(s);
  32.     document.getElementById('txt').innerHTML = h+":"+m+":"+s;
  33.     var t = setTimeout(function(){startTime()},500);
  34. }
  35.  
  36. function checkTime(i) {
  37.     if (i<10) {i = "0" + i};  // add zero in front of numbers < 10
  38.     return i;
  39. }
  40.  
  41. </body>
  42. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top