PageSourceSearch

https://turbo-italia.com/wp-content/plugins/woocommerce-deals/assets/js/tawc-deals.js?ver=1.0.0

js turbo-italia.com collected 2026-10-07 18:36:34 UTC 1,489 bytes, 36 lines download raw bytes

1/* global tawcDeals */
2jQuery( document ).ready( function( $ ) {
3	$( '.deal-expire-countdown' ).each( function() {
4		var $this = $( this ),
5			diff = $this.data( 'expire' );
6
7		var updateClock = function( distance ) {
8			var days = Math.floor( distance / (60 * 60 * 24) );
9			var hours = Math.floor( (distance % (60 * 60 * 24)) / ( 60 * 60) );
10			var minutes = Math.floor( (distance % (60 * 60)) / (60) );
11			var seconds = Math.floor( distance % 60 );
12
13			$this.html(
14				'<span class="days timer"><span class="digits">' + (days < 10 ? '0' : '') + days + '</span><span class="text">' + tawcDeals.l10n.days + '</span></span>' +
15				'<span class="divider">:</span>' +
16				'<span class="hours timer"><span class="digits">' + (hours < 10 ? '0' : '') + hours + '</span><span class="text">' + tawcDeals.l10n.hours + '</span></span>' +
17				'<span class="divider">:</span>' +
18				'<span class="minutes timer"><span class="digits">' + (minutes < 10 ? '0' : '') + minutes + '</span><span class="text">' + tawcDeals.l10n.minutes + '</span></span>' +
19				'<span class="divider">:</span>' +
20				'<span class="seconds timer"><span class="digits">' + (seconds < 10 ? '0' : '') + seconds + '</span><span class="text">' + tawcDeals.l10n.seconds + '</span></span>'
21			);
22		};
23
24		updateClock( diff );
25
26		var countdown = setInterval( function() {
27			diff = diff - 1;
28
29			updateClock( diff );
30
31			if ( diff < 0 ) {
32				clearInterval( countdown );
33			}
34		}, 1000 );
35	} );
36} );

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.