1(function ($) { 2 $(document).ready(function () { // Custom jQuery goes here -- move to theme 3 4 // Search page 5 if ($('body').hasClass('page-id-33')) { 6 7 $('.omw-modal').remove(); 8 9 // Go to results after search 10 11 $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ 12 $([document.documentElement, document.body]).animate({ 13 scrollTop: $("#search-filter-results-14008").offset().top 14 }, 1000); 15 }); 16 17 // Show Results 18 if (window.location.href.indexOf("sf") > -1) { 19 $('.search-filter-results').css('display', 'block'); 20 } 21 22 // filter options 23 var i = 1; 24 $('#search-filter-form-14008 ul li').each(function() { 25 $(this).addClass('filter-class'+i); 26 i++; 27 }); 28 29 $('.filter-class1,.filter-class2,.filter-class3').wrapAll('<div class="upper-filters"></div>'); 30 $('.filter-class4,.filter-class5').wrapAll('<div class="lower-filters"></div>'); 31 } 32 33 // Enable tooltips -- single treamtent page 34 if ($('body').hasClass('single-treatment_center_loc')) { 35 $( document ).tooltip(); 36 37 // $('.omw-modal').remove(); 38 39 // Add [X] next to active categories 40 $('.treatment-section .checking-cats span').each(function () { 41 console.log($(this).parent().parent().attr('class')); 42 console.log($(this).text()); 43 if ($(this).parent().parent('.' + $(this).attr('class')).length>0) { 44 //$(this).prepend('[x] '); 45 $(this).parent().remove(); 46 } else { 47 //$(this).prepend('[#] '); 48 } 49 }); 50 51 // Remove empty parents in "Specialized Treatments and Technologies Available:" 52 $('.group-of-result ul.checking-cats').each(function() { 53 if ($(this).children('li').length == 0) { 54 console.log(2221); 55 $(this).parent().remove(); 56 } 57 }); 58 } 59 60 // $(".treatment-section .cat-listings-with-description span").each(function() { 61 // // var toolTipText = $(this).attr("data-description"); 62 // var toolTipText = $(this).attr("data-descrtiption"); 63 64 // console.log(toolTipText); 65 66 // $(".treatment-section .cat-listings-with-description span").tooltip({ 67 // content: toolTipText 68 // }); 69 // }); 70 }); 71})(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.