Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Ready, steady, go!
node v8.17.0
version:
master
endpoint
share
tweet
var EasytimerJs = require("easytimer.js") let timer = new EasytimerJs(); timer.addEventListener('secondsUpdated', () => console.log('secondsUpdated', timer.getTimeValues().toString())); timer.start({countdown: true, startValues: [0,3,0,0,0]}); timer.addEventListener('targetAchieved', function (e) { console.log('targetAchieved') timer.stop(); timer.start(); });
Created from: https://npm.runkit.com/easytimer.js
Loading…
no comments
sign in
to comment