JSFiddle - React, Tailwind, and code Playground

by ariehg

HTML

<script src="http://github.com/arieh/SimpleCounter/raw/master/Source/SimpleCounter.js"></script>
<div id='res'></div>

JavaScript

var counter = new SimpleCounter('res',(new Date())/1000+10,{'continue':true});
counter.addEvent('done',function(){
    $('res').removeClass('decr').addClass('incr');
});