PageSourceSearch

https://pid3chorty.store/wp-content/themes/clotya/assets/js/custom/countdown.js?ver=1.4.9

js pid3chorty.store collected 2026-10-10 01:33:17 UTC 1,799 bytes, 56 lines download raw bytes

1(function ($) {
2  "use strict";
3
4	$(document).on('clotyaShopPageInit', function () {
5		clotyaThemeModule.countdown();
6	});
7
8	clotyaThemeModule.countdown = function() {
9      const countdown = document.querySelectorAll( '.countdown' );
10
11      if ( countdown !== null ) {
12        for ( var i = 0; i < countdown.length; i++ ) {
13          const self = countdown[i];
14
15          const countDate = self.dataset.date;
16          const expired = self.dataset.text;
17          let countDownDate = new Date( countDate ).getTime();
18
19          const d = self.querySelector( '.days' );
20          const h = self.querySelector( '.hours' );
21          const m = self.querySelector( '.minutes' );
22          const s = self.querySelector( '.second' );
23
24          var x = setInterval(function() {
25
26            var now = new Date().getTime();
27  
28            var distance = countDownDate - now;
29  
30            var days = Math.floor(distance / (1000 * 60 * 60 * 24));
31            var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
32            var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
33            var seconds = Math.floor((distance % (1000 * 60)) / 1000);
34
35            d.innerHTML = ( '0' + days ).slice(-2);
36            h.innerHTML = ( '0' + hours ).slice(-2);
37            m.innerHTML = ( '0' + minutes ).slice(-2);
38            s.innerHTML = ( '0' + seconds ).slice(-2);
39  
40            if (distance < 0) {
41              clearInterval(x);
42              console.log( 'expired' );
43              self.innerHTML = '<div class="expired">' + expired + '</div>'
44              /* document.getElementById("demo").innerHTML = expired; */
45            }
46          }, 1000);
47        }
48      }
49
50	}
51	
52	$(document).ready(function() {
53		clotyaThemeModule.countdown();
54	});
55
56})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.