
Download Bratz Total Fashion Makeover__apkillegal.com.apk
Thank you for using apkillegal.com to download the apk file (Bratz Total Fashion Makeover__apkillegal.com.apk)
Click the button below to download the app.
var oneHour = 60 * 60, // 60 seconds * 60 minutes twentyMins = 20 * 60, // 20 minutes * 60 seconds oneMin = 10, // 60 seconds oneMinFiveSecs = 9, fiveSecs = 5;
window.onload = function() { countDown('my_div1', 'Download MOD
Downloading service is temporarily unavailable
', oneMinFiveSecs); }
function countDown(elID, output, seconds) { "use strict"; var timer, // timer will hold a reference to the id of our interval // store a reference to the element so we don't have to keep looking it up el = document.getElementById(elID), getTime = function () { // get the current time in ms since Unix epoch return (new Date()).getTime(); }, // we will be done counting down when we are // `seconds` seconds from the current time finishAt = getTime() + (seconds * 1000), pad = function (n) { return n > 9 ? n : '0' + n; }, lastCount = -1, update = function () { var hours, now = getTime(), mins, // the seconds remaining is the finish time // minus the current time divided by 1000ms secs = Math.floor((finishAt - now) / 1000);
// Since we might be running this update function more than once // a second, check to see if the number of seconds has changed since // our last run. If it hasn't there is no need to do any more calculations // nor update the DOM. if (lastCount !== secs) {
lastCount = secs;
// you need to make the current time is equal to OR GREATER THEN the finish time // because the interval could have actually fired sometime (shortly) // after the time stored in finishAt if (now >= finishAt) { clearInterval(timer); el.innerHTML = output; } else { // get the hours by dividing by the number of seconds in an hour hours = Math.floor(secs / 3600); // 60 * 60 = 3600 // get the remaining seconds secs %= 3600;
// likewise, get the number of minutes of by dividing the remaining seconds by 60 mins = Math.floor(secs / 30);
// again, get the remainder of seconds secs %= 60; secs = Math.floor(secs);
// pad any numbers less than 9 with a leading 0 secs = pad(secs); mins = pad(mins); hours = pad(hours);
el.innerHTML = 'Please wait: ' + secs ; } } };
// display the counter right away update();
// start the timer, updating twice a second to try and avoid // having the counter seem to skip numbers timer = setInterval(update, 499); }