⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.101
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
taxi.dev-unit.com
/
public
/
assets
/
js
/
pages
/
View File Name :
coundown-timer.js
//[timer contact Javascript] //Project: Fab Admin - Responsive Admin Template $(function () { "use strict"; // set the date we're counting down to var target_date = new Date('Jan, 31, 2019').getTime(); // variables for time units var days, hours, minutes, seconds; // get tag element var countdown = document.getElementById('countdown'); // update the tag with id "countdown" every 1 second setInterval(function () { // find the amount of "seconds" between now and target var current_date = new Date().getTime(); var seconds_left = (target_date - current_date) / 1000; // do some time calculations days = parseInt(seconds_left / 86400); seconds_left = seconds_left % 86400; hours = parseInt(seconds_left / 3600); seconds_left = seconds_left % 3600; minutes = parseInt(seconds_left / 60); seconds = parseInt(seconds_left % 60); // format countdown string + set tag value countdown.innerHTML = '<div class="days timer col">' + days + ' <div class="text">Days</div></div> <div class="hours timer col">' + hours + ' <div class="text">Hours</div></div> <div class="minutes timer col">' + minutes + ' <div class="text">Minutes</div></div> <div class="seconds timer col">' + seconds + ' <div class="text">Seconds</div></div>'; }, 1000); }); // End of use strict