Giter Site home page Giter Site logo

basemax / tinytimerjs Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 0.0 47 KB

Tiny and Powerful Library for show time counter.

License: GNU General Public License v3.0

HTML 20.88% JavaScript 79.12%
timer time js javascript library pure-javascript javascript-library javascript-tools js-library js-libs

tinytimerjs's Introduction

Tiny Timer

Tiny and Powerful Library for show time counter.

Features

  • Easy
  • Fast
  • Compact
  • No dependencies

Arguments

Argument Name Goal Default
data-timer-update Functional name for called each time the timer is updated. Optional
data-timer-done Functional name for called each time the timer is done and again start. Optional
data-timer-finish Functional name for called each time the timer complete and finish. Optional
data-timer-delay Delay time to run the timer 1000 ms (1s)
data-timer-mutation The mutation of the time 1 (one by one)
data-timer-duration Time value in seconds Essential and without initial value (Units in seconds)
data-timer-repeat Number of repetitions unlimited

Samples

To view the full details, run the Example.html file.

data-timer-duration

<div data-timer-duration="3"></div>
<div data-timer-duration="3" data-timer-repeat="true"></div>

data-timer-repeat

<div data-timer-duration="3" data-timer-repeat="2"></div>

data-timer-repeat

<div data-timer-duration="3" data-timer-repeat="2"></div>

data-timer-mutation

<div data-timer-duration="7" data-timer-mutation="2" data-timer-repeat="2"></div>

data-timer-delay

<div data-timer-duration="7" data-timer-delay="2000" data-timer-mutation="2" data-timer-repeat="2"></div>

data-timer-update

<script>
function check(index)
{
	console.log("Next...");
}
</script>
<div data-timer-duration="3" data-timer-update="check"></div>

data-timer-finish

data-timer-done

License

TinyTimer is licensed under the GNU General Public License.

tinytimerjs's People

Contributors

basemax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.