multiple countdown html js

Solutions on MaxInterview for multiple countdown html js by the best coders in the world

showing results for - "multiple countdown html js"
Samuel
17 Jun 2017
1$('[data-countdown]').each(function() {
2  var $this = $(this), finalDate = $(this).data('countdown');
3  $this.countdown(finalDate, function(event) {
4    $this.html(event.strftime('%D days %H:%M:%S'));
5  });
6});
Martina
17 Jun 2016
1<div data-countdown="2016/01/01"></div>
2<div data-countdown="2017/01/01"></div>
3<div data-countdown="2018/01/01"></div>
4<div data-countdown="2019/01/01"></div>