1(function ($) { 2 "use strict"; 3 4 $(document).ready(function () { 5 layout_1(); 6 kindergarten_coundown(); 7 }); 8 9 var layout_1 = function() { 10 let countdown = $('.bp-element-countdown .wrap-countdown'); 11 12 for (var i = 0; i < countdown.length; i++) { 13 14 var count = $(countdown[i]).find('.countdown'), 15 time = count.data('time'), 16 labels = [ 17 count.data('text-year') ? count.data('text-year') : 'Year(s)', 18 count.data('text-month') ? count.data('text-month') : 'Month(s)', 19 count.data('text-week') ? count.data('text-week') : 'Week(s)', 20 count.data('text-day') ? count.data('text-day') : 'Day(s)', 21 count.data('text-hour') ? count.data('text-hour') : 'Hour(s)', 22 count.data('text-minute') ? count.data('text-minute') : 'Minutes(s)', 23 count.data('text-second') ? count.data('text-second') : 'Second(s)', 24 ]; 25 26 time = new Date(time); 27 28 var current_time = new Date(time); 29 30 $(countdown[i]).countdown({ 31 labels: labels, 32 until: current_time 33 }); 34 } 35 }; 36 37 var kindergarten_coundown = function () { 38 var counts = $('.tp_event_counter'); 39 for (var i = 0; i < counts.length; i++) { 40 var time = $(counts[i]).attr('data-time'), 41 txt_years = $(counts[i]).attr('data-text-year'), 42 txt_month = $(counts[i]).attr('data-text-month'), 43 txt_week = $(counts[i]).attr('data-text-week'), 44 txt_day = $(counts[i]).attr('data-text-day'), 45 txt_minute = $(counts[i]).attr('data-text-minute'), 46 txt_second = $(counts[i]).attr('data-text-second'), 47 txt_hour = $(counts[i]).attr('data-text-hour'); 48 time = new Date(time); 49 50 var current_time = new Date(time); 51 52 $(counts[i]).countdown({ 53 labels : [txt_years, txt_month, txt_week, txt_day, txt_hour, txt_minute, txt_second], 54 labels1 : [txt_years, txt_month, txt_week, txt_day, txt_hour, txt_minute, txt_second], 55 until : current_time, 56 serverSync: current_time 57 }); 58 } 59 } 60 61})(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.