Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ((w, d) => {
- w.setInterval(() => {
- let date = new Date(),
- audio = new Audio('http://www.adiwilk.pl/gun.mp3'),
- hour = date.getHours() < 10 ? `0${date.getHours()}` : date.getHours(),
- mins = date.getMinutes() < 10 ? `0${date.getMinutes()}` : date.getMinutes(),
- secs = date.getSeconds() < 10 ? `0${date.getSeconds()}` : date.getSeconds(),
- parseTime = hour + ":" + mins + ":" + secs;
- if (d.includes(parseTime)) audio.play();
- }, 1000);
- })(window, [
- "23:59:00",
- "00:59:00",
- "01:59:00",
- "02:59:00",
- "03:59:00",
- "04:59:00",
- "05:59:00",
- "06:59:00",
- "07:59:00",
- "08:59:00",
- "09:59:00",
- "10:59:00",
- "11:59:00",
- "12:59:00",
- "13:59:00",
- "14:59:00",
- "15:59:00",
- "16:59:00",
- "17:59:00",
- "18:59:00",
- "19:59:00",
- "20:59:00",
- "21:59:00",
- "22:59:00",
- "1:00:00",
- "2:01:00",
- "3:02:00",
- "4:03:00",
- "5:04:00",
- "6:05:00",
- "7:06:00",
- "8:07:00",
- "9:08:00",
- "10:09:00",
- "11:10:00",
- "12:11:00",
- "13:12:00",
- "14:13:00",
- "15:14:00",
- "16:15:00",
- "17:16:00",
- "18:17:00",
- "19:18:00",
- "20:19:00",
- "21:20:00",
- "22:21:00",
- "23:22:00",
- "12:33:00",
- "23:44:00"
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement