1document.addEventListener('woof_init_search_form', function () { 2 woof_sd_slide_list(); 3}); 4 5function woof_sd_slide_list() { 6 if (woof_checkboxes_slide_flag) { 7 let childs = jQuery('.woof-sd-ie-childs'); 8 9 if (childs.length) { 10 jQuery.each(childs, function (index, child) { 11 if (jQuery(child).parents('.woof_no_close_childs').length) { 12 return; 13 } 14 15 let span_class = 'woof_is_closed'; 16 17 if (woof_supports_html5_storage()) { 18 let preulstate = localStorage.getItem(jQuery(child).prev().attr('class')); 19 20 if (preulstate && preulstate === 'woof_is_opened') { 21 span_class = 'woof_is_opened'; 22 jQuery(child).show(); 23 } else { 24 if (jQuery(child).find('input[type=checkbox],input[type=radio]').is(':checked')) { 25 jQuery(child).show(); 26 span_class = 'woof_is_opened'; 27 } else { 28 jQuery(child).hide(); 29 } 30 } 31 } 32 33 jQuery(child).prev().find('woof-sd-list-opener').html('<a href="javascript:void(0);" class="woof_childs_list_opener" ><span class="' + span_class + '"></span></a>'); 34 }); 35 36 jQuery.each(jQuery('woof-sd-list-opener a.woof_childs_list_opener span'), function (index, a) { 37 jQuery(a).on('click', function () { 38 let span = jQuery(this); 39 let this_ = span.parent(); 40 41 if (span.hasClass('woof_is_closed')) { 42 //lets open 43 jQuery(this_).closest('.woof-sd-ie').next().show(333); 44 span.removeClass('woof_is_closed'); 45 span.addClass('woof_is_opened'); 46 } else { 47 //lets close 48 jQuery(this_).closest('.woof-sd-ie').next().hide(333); 49 span.removeClass('woof_is_opened'); 50 span.addClass('woof_is_closed'); 51 } 52 53 if (woof_supports_html5_storage()) { 54 let ullabel = jQuery(this_).closest('.woof-sd-ie').attr('class'); 55 let ullstate = jQuery(this_).children('span').attr('class'); 56 localStorage.setItem(ullabel, ullstate); 57 } 58 59 return false; 60 }); 61 }); 62 } 63 } 64} 65 66
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.