utility that can implement count operation.
can flexibly count the deadline.
- Standalone(CDN) -> https://cdn.jsdelivr.net/gh/yama-dev/js-count-module@v0.3.2/dist/js-count-module.js
# install npm.
npm install --save-dev @yama-dev/js-count-module
// import.
import COUNT_MODULE from '@yama-dev/js-count-module';
<script src="./js-count-module.js"></script>
<script>
new JS_COUNT_MODULE({
date: '2022/1/10 10:00',
onUpdate: function(data){
console.log(data);
var _d = data.diffObjParsed;
var _t = _d.d+'[日] '+_d.h+'[時間] '+_d.m+'[分] '+_d.s+'[秒]';
},
onComplete: function(data){
console.log(data);
}
});
</script>
none
For Developer