1jQuery(function($) { 2 jQuery('.ct-timer-style .clock-builder-output').each(function () { 3 var idvalue = jQuery(this).attr('id'); 4 $(this ).each(function () { 5 var clocks = []; 6 var Days = $('#' + idvalue).attr('data-days'); 7 var Hours = $('#' + idvalue).attr('data-hours'); 8 var Minutes = $('#' + idvalue).attr('data-minutes'); 9 var Seconds = $('#' + idvalue).attr('data-seconds'); 10 var Message = $('.ct-timer-style').attr('data-mssg'); 11 var URL = $('.ct-timer-style').attr('data-redirectUrl'); 12 var tabOption = $('.ct-timer-style').attr('data-urlNewTab'); 13 var ExpireOption = $('.ct-timer-style').attr('data-expireOption'); 14 FlipClock.Lang.Custom = { days: Days, hours: Hours, minutes: Minutes, seconds: Seconds }; 15 var opts = { 16 clockFace: 'DailyCounter', 17 countdown: true, 18 language: 'Custom', 19 callbacks: { 20 stop: function () { 21 if ( ExpireOption == 'message' ) { 22 $('.ms' + idvalue).html( Message ); 23 } 24 else { 25 window.open( URL , tabOption ); 26 } 27 } 28 } 29 }; 30 var endvalue = $('#' + idvalue).attr('data-enddate'); 31 if(endvalue != null && endvalue != '') { 32 var datefrom = ((new Date(endvalue).getTime())/1000); 33 } 34 else { 35 var endvalue = new Date(Date.parse(new Date()) + 1 * 24 * 60 * 60 * 1000); 36 var datefrom = ((new Date(endvalue).getTime())/1000); 37 } 38 39 var countdown = datefrom - ((new Date().getTime())/1000); 40 countdown = Math.max(1, countdown); 41 var clock = $('#' + idvalue).FlipClock(countdown,opts); 42 clocks.push(clock); 43 $('.ms' + idvalue).html(); 44 }); 45 }); 46}); 47
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.