1//--------------------------------------------------------------------------------------------------------------- 2//-Dynamic min-heights 3//--------------------------------------------------------------------------------------------------------------- 4jQuery(document).ready(function () { 5 // Product Detail View tabs area equal heights 6 // jQuery('.product-tab-content-wrapper .product-tab-content').matchHeight({ 7 // property: 'min-height', 8 // byRow: false 9 // }); 10 11 jQuery('.span_12 .wpb_column.column_container.col.no-padding.color-dark').matchHeight({ 12 property: 'min-height', 13 byRow: true 14 }); 15 jQuery('div.owl-item .featured_product_title').matchHeight({ 16 property: 'min-height', 17 byRow: true 18 }); 19 jQuery('div.owl-item .featured_product_excerpt').matchHeight({ 20 property: 'min-height', 21 byRow: true 22 }); 23}); 24 25//--------------------------------------------------------------------------------------------------------------- 26//-Document Accordion 27//--------------------------------------------------------------------------------------------------------------- 28jQuery(document).ready(function($) { 29 jQuery('.wpb_wrapper').find('.documents_accordion_trigger').click(function(){ 30 //Expand or collapse this panel 31 jQuery(this).next().slideToggle('fast'); 32 33 //Hide the other panels 34 jQuery(".accordion-content").not($(this).next()).slideUp('fast'); 35 }); 36}); 37 38 39//--------------------------------------------------------------------------------------------------------------- 40//-Team Read More Toggle 41//--------------------------------------------------------------------------------------------------------------- 42jQuery(document).ready(function() { 43 if (jQuery(window).width() < 767) { 44 jQuery( ".insight_page_sidebar.product_facets_container" ).addClass( "mobile_facet_menu" ); 45 } 46 jQuery( "a.mobile_facet_trigger" ).click(function() { 47 event.preventDefault(); 48 jQuery("a.mobile_facet_trigger i").toggleClass("fa-chevron-up fa-chevron-down"); 49 jQuery( ".insight_page_sidebar.product_facets_container.mobile_facet_menu" ).toggleClass( "closed open" ); 50 }); 51}); 52 53 54//--------------------------------------------------------------------------------------------------------------- 55//-Team Read More Toggle 56//--------------------------------------------------------------------------------------------------------------- 57jQuery(document).ready(function() { 58 // Configure/customize these variables. 59 var showChar = 480; // How many characters are shown by default 60 var ellipsestext = "..."; 61 var moretext = "Read more <i class='fa fa-angle-down'></i>"; 62 var lesstext = "Read less <i class='fa fa-angle-up'></i>"; 63 64 65 jQuery('.more, .bod-row .imagebox p').each(function() { 66 var content = jQuery(this).text(); 67 content = content.replace('/n','<br>'); 68 69 if(content.length > showChar) { 70 71 var c = content.substr(0, showChar); 72 var h = content.substr(showChar, content.length - showChar); 73 var html = c + '<span class="moreellipses">' + ellipsestext+ ' </span><span class="morecontent"><span style="display: none">' + h + '</span> <a href="" class="morelink">' + moretext + '</a></span>'; 74 75 jQuery(this).html(html); 76 } 77 78 }); 79 80 jQuery(".morelink").click(function(){ 81 if(jQuery(this).hasClass("less")) { 82 jQuery(this).removeClass("less"); 83 jQuery(this).html(moretext); 84 } else { 85 jQuery(this).addClass("less"); 86 jQuery(this).html(lesstext); 87 } 88 jQuery(this).parent().prev().toggle(); 89 jQuery(this).prev().toggle(); 90 return false; 91 }); 92});
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.