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( 19 jQuery(child).prev().attr('class') 20 ); 21 22 if (preulstate && preulstate === 'woof_is_opened') { 23 span_class = 'woof_is_opened'; 24 jQuery(child).show(); 25 } else { 26 if ( 27 jQuery(child) 28 .find('input[type=checkbox],input[type=radio]') 29 .is(':checked') 30 ) { 31 jQuery(child).show(); 32 span_class = 'woof_is_opened'; 33 } else { 34 jQuery(child).hide(); 35 } 36 } 37 } 38 39 jQuery(child) 40 .prev() 41 .find('woof-sd-list-opener') 42 .html( 43 '<a href="javascript:void(0);" rel="nofollow" class="woof_childs_list_opener" ><span class="' + 44 span_class + 45 '"></span></a>' 46 ); 47 }); 48 49 jQuery.each( 50 jQuery('woof-sd-list-opener a.woof_childs_list_opener span'), 51 function (index, a) { 52 jQuery(a).on('click', function () { 53 let span = jQuery(this); 54 let this_ = span.parent(); 55 56 if (span.hasClass('woof_is_closed')) { 57 //lets open 58 jQuery(this_) 59 .closest('.woof-sd-ie') 60 .next() 61 .show(333); 62 span.removeClass('woof_is_closed'); 63 span.addClass('woof_is_opened'); 64 } else { 65 //lets close 66 jQuery(this_) 67 .closest('.woof-sd-ie') 68 .next() 69 .hide(333); 70 span.removeClass('woof_is_opened'); 71 span.addClass('woof_is_closed'); 72 } 73 74 if (woof_supports_html5_storage()) { 75 let ullabel = jQuery(this_) 76 .closest('.woof-sd-ie') 77 .attr('class'); 78 let ullstate = jQuery(this_) 79 .children('span') 80 .attr('class'); 81 localStorage.setItem(ullabel, ullstate); 82 } 83 84 return false; 85 }); 86 } 87 ); 88 } 89 } 90}
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.