Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 438 Bytes

File metadata and controls

8 lines (5 loc) · 438 Bytes

captains-timer.js

JavaScript timer countdown behaviour that is UI and library agnostic

captains-timer.js could be easily integrated with UI to create for eg. a session countdown dialogue.

By default, it makes use of cookies.js from https://developer.mozilla.org/en-US/docs/DOM/document.cookie to allow timer to work across multiple tabs. This could be replaced with local storage for example to achieve the same effect.