1jQuery(document).ready(function() 2{ 3 "use strict"; 4 var wcas_sec_string = wcas_countdown_product.sec_string; 5 var wcas_min_string = wcas_countdown_product.min_string; 6 var wcas_hour_string = wcas_countdown_product.hour_string; 7 var wcas_days_string = wcas_countdown_product.days_string; 8 var wcas_weeks_string = wcas_countdown_product.weeks_string; 9 var serverTime = new Date(wcas_countdown_product.serverTime); 10 var endtime = new Date(wcas_countdown_product.endtime); 11 var difference = parseInt(wcas_countdown_product.difference); 12 var display = document.querySelector('#clock'+wcas_countdown_product.post_id); 13 var display_2 = document.querySelector('#clock'+wcas_countdown_product.post_id); 14 var difference_2 = parseInt(wcas_countdown_product.difference_2); 15 //start 16 if(difference >0) 17 { 18 19 20 //new 21 var end_date = new Date(); 22 end_date.setSeconds(end_date.getSeconds() + difference); 23 jQuery('#clock'+wcas_countdown_product.post_id).countdown(wcsa_data_formatter(end_date), function(event) { 24 var $this = jQuery(this).html(event.strftime('' 25 + (event.offset.weeks > 0 ? '<span class="wcas_timer_date_value wcsa_weeks_value">%w</span> <span class="wcas_timer_date_label wcsa_weeks_label">'+wcas_weeks_string+'</span> ' : '') 26 + (event.offset.days > 0 ? '<span class="wcas_timer_date_value wcsa_days_value">%d</span> <span class="wcas_timer_date_label wcsa_days_label">'+wcas_days_string+'</span> ': '') 27 + (event.offset.hours > 0 ?'<span class="wcas_timer_date_value wcsa_hour_value">%H</span> <span class="wcas_timer_date_label wcsa_hour_label">'+wcas_hour_string+'</span> ': '') 28 + (event.offset.minutes > 0 ?'<span class="wcas_timer_date_value wcsa_minute_value">%M</span> <span class="wcas_timer_date_label wcsa_minute_label">'+wcas_min_string+'</span> ': '') 29 + '<span class="wcas_timer_date_value wcsa_second_value">%S</span> <span class="wcas_timer_date_label wcsa_second_label">'+wcas_sec_string+'</span>')); 30 }).on('finish.countdown',function(event){setTimeout(function(){jQuery(this).parent().addClass('disabled'); location.reload();}, 5000);}); 31 } 32 33 34 35 else if(difference_2 >0) 36 { 37 38 //new 39 var end_date = new Date(); 40 end_date.setSeconds(end_date.getSeconds() + difference_2); 41 jQuery('#clock'+wcas_countdown_product.post_id).countdown(wcsa_data_formatter(end_date), function(event) { 42 var $this = jQuery(this).html(event.strftime('' 43 + (event.offset.weeks > 0 ? '<span class="wcas_timer_date_value wcsa_weeks_value">%w</span> <span class="wcas_timer_date_label wcsa_weeks_label">'+wcas_weeks_string+'</span> ' : '') 44 + (event.offset.days > 0 ? '<span class="wcas_timer_date_value wcsa_days_value">%d</span> <span class="wcas_timer_date_label wcsa_days_label">'+wcas_days_string+'</span> ': '') 45 + (event.offset.hours > 0 ?'<span class="wcas_timer_date_value wcsa_hour_value">%H</span> <span class="wcas_timer_date_label wcsa_hour_label">'+wcas_hour_string+'</span> ': '') 46 + (event.offset.minutes > 0 ?'<span class="wcas_timer_date_value wcsa_minute_value">%M</span> <span class="wcas_timer_date_label wcsa_minute_label">'+wcas_min_string+'</span> ': '') 47 + '<span class="wcas_timer_date_value wcsa_second_value">%S</span> <span class="wcas_timer_date_label wcsa_second_label">'+wcas_sec_string+'</span>')); 48 }).on('finish.countdown',function(event){setTimeout(function(){jQuery(this).parent().addClass('disabled'); location.reload();}, 5000);}); 49 } 50});
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.