A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://raw.github.com/gumroad/countdown.js/master/lib/countdown.js below:

(function() { 'use strict'; var root = this; var Countdown = function(duration, onTick, onComplete) { var secondsLeft = Math.round(duration) , tick = function() { if (secondsLeft > 0) { onTick(secondsLeft); secondsLeft -= 1; } else { clearInterval(interval); onComplete(); } } // Setting the interval, by call tick and passing through this via a self-calling function wrap. , interval = setInterval( (function(self){ return function() { tick.call(self); }; })(this), 1000 ); // First tick. tick.call(this); return { abort: function() { clearInterval(interval); } , getRemainingTime: function() { return secondsLeft; } }; }; if (typeof exports !== 'undefined') module.exports = exports = Countdown; else root.Countdown = Countdown; }).call(this);

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4