3.0.5 • Published 5 years ago

timejs.js v3.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

v license website npm

Welcome to time.js documentation

Thanks to this script you can view the time and much more related to numbers. Script created by Leszek Korzan

Version 3.0.4

Implementation

The implementation is very simple. Just add a file with the time.js script at the end of the body section.

<script src="time.js"></script>

or

<script src="https://www.leszekk.eu/cdn/time.min.js"></script>

For the script to work, you must call the time() function.

Usage

The use is easy because you only have to add the item to the html code.

Types of elements

#fulldate - e.g. 01.01.2019|11:59:59

#day - e.g. 1 -> day of month
#month - e.g. 1 -> month number
#year - e.g. 2019

#hour
#minute
#secound

#dayofweek - e.g. Monday

Example

<div id="fulldate"></div>

demo

(All you need is just the ID you provided.)

countup() function

A javascript function that you can use to quickly display numeric data in an animated way.

Usage

The only action you need is to call the countup() function with a few arguments.

//example:
countup(0, 10, 1000, "some-id");

//0 - From what number the animation should take place.
//10 - To what number the animation should take place.
//1000 - Every few milliseconds an animation should take place.
//"some-id" - The ID of the element to be used for the process.

HTML EXAMPLE

<div id="some-id"></div>

demo

countdown() function

A javascript function that you can use to quickly display the countdown.

Usage

The only action you need is to call the countdown() function with a few arguments.

//example:
countdown(10, 0, 1000, "some-id", "some-function");

//10 - From what number the animation should take place.
//0 - To what number the animation should take place.
//1000 - Every few milliseconds an animation should take place.
//"some-id" - The ID of the element to be used for the process.
//"some-function" - The function to be called after the countdown.

HTML EXAMPLE

<div id="some-id"></div>

demo

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago