PageSourceSearch

https://www.africa-wilderness-safaris.com/wp-content/themes/travelkit/js/loopcounter.js?ver=4.9.26

js africa-wilderness-safaris.com collected 2026-10-02 20:09:45 UTC 1,594 bytes, 58 lines download raw bytes

1jQuery(document).ready(function($){'use strict';
2	window.loopcounter = function( idWarp ) {
3		if(typeof idWarp!= 'undefined'){
4			var date = $('.'+idWarp).data('date');
5
6			var start = new Date( date ),
7			    end   = new Date(),
8			    diff  = new Date( start - end ),
9			    time  = diff/1000/60/60/24;
10
11				var day = parseInt(time);
12				var hour = parseInt( 24 - (diff/1000/60/60)%24 );
13				var min = parseInt( 60 - (diff/1000/60)%60 );
14				var sec = parseInt( 60 - (diff/1000)%60 );
15				
16				counterDate(idWarp,day,hour,min,sec);
17
18				var interval = setInterval(function () {
19					if( sec==0 && min!=0 ){
20						min--;
21						sec = 60;
22					}
23					if(min == 0 && sec == 0 && hour!=0 ){
24						hour--;
25						min = 59;
26						sec = 60;
27					}
28					if(min == 0 && sec == 0 && hour == 0 && day!=0 ){
29						day--;
30						hour = 23;
31						min = 59;
32						sec = 60;
33					}
34					if(min == 0 && sec == 0 && hour == 0 && day==0 ){
35						clearInterval(interval);
36					}else{
37						sec--;
38					}
39					counterDate(idWarp,day,hour,min,sec);
40				}, 1000 );
41
42			function counterDate(id,day,hour,min,sec){
43				if (time < 0) { day = hour = min = sec = 0; }
44				$( '.'+id+' .counter-days').html( counterDoubleDigit(day) );
45				$( '.'+id+' .counter-hours').html( counterDoubleDigit(hour) );
46				$( '.'+id+' .counter-minutes').html( counterDoubleDigit(min) );
47				$( '.'+id+' .counter-seconds').html( counterDoubleDigit(sec) );
48			}
49			function counterDoubleDigit( arg ){
50				if( arg.toString().length <= 1 ){
51					arg = ('0' + arg).slice(-2);
52				}
53				return arg;
54			}
55		}
56    }
57	//loopcounter( 'counter-id' );
58});

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.