A JS-only client-side Timer building framework. Used to showcase a big event (wedding, end of school year, bug of the year 2038 ...)
|
|
||
|---|---|---|
| images | first commit | |
| countDown.js | first commit | |
| countDownList.js | first commit | |
| image.png | first commit | |
| index.html | first commit | |
| LICENSE | first commit | |
| moment.js | first commit | |
| readme.md | first commit | |
| style.css | first commit | |
TimerZ
This is a timer building "framework" (understand "two small code files" but everything is a framework nowadays), fully client-side.
Use case
You want to put spiffingly gorgeous timers on your website, and you value your time/sanity too much to implement them in javascript.
Example of use
How to use
Dependencies
This uses vanila HTML/CSS/JS appart from one moment.js version 2.29.4 dependency. The file (./moment.js) is provided as a reference in case of breaking changes in the years to come.
Installation
Just insert the HTML in your webpage and serve the three js files then :
- Change the value for the objective date which is
dueDateincountDown.js(line 19 ⚠️AND⚠️ line 120) - Add countdowns in
countDownList.jsbased on the syntax described there (there are examples, you can get inspired by them) - Use the provided CSS if you want, discard it if you don't want to. That's the one I used
- Edit/Remove the question mark and the label on it (line 25 of the HTML file)
License
Everything in here is licensed according to the LICENSE file, except for the moment.js file (see https://momentjs.com/), which is licensed under the MIT license and upon which I have no intellectual property.