digital-clock

1.0.2 • Public • Published

Digital Clock

USE THIS AWESOME DIGITAL CLOCK FOR YOUR WEBSITE THAT CHANGE DEPENDING ON WHAT TIME ZONE YOU/YOUR USER IS IN.

Install

npm i digital-clock

HTML

<div class="digital-clock"></div> 
<script src="index.js" type="module"></script>

CSS

.digital-clock { 
    font-size: 3em; /*To change the size of the numbers*/
    max-width: 250px;  /*To change the widt of the clock*/
    text-align: center; 
    border: 2px solid black; /*To change the border around the clock*/
    border-radius: 20px; /*To change how round the edges are*/
    background-color: white; /*To change the background color of the clock*/
}

Javascript

import showTime from "./node_modules/digital-clock/index.js";
 
setInterval(showTime, 1000);

Package Sidebar

Install

npm i digital-clock

Weekly Downloads

9

Version

1.0.2

License

MIT

Unpacked Size

2.01 kB

Total Files

3

Last publish

Collaborators

  • andreasrisager
  • lupe.-