1/**--------------------------------------------------------------------------------------------------------------------- 2 * Social Share 3 * --------------------------------------------------------------------------------------------------------------------*/ 4jQuery(document).ready(function () { 5 if (jQuery('.wl-posts a.share').length) { 6 jQuery('.wl-posts a.share').on('click', function (e) { 7 e.preventDefault(); 8 jQuery(this).toggleClass('active'); 9 jQuery('.wl-posts .share-print').toggleClass('active'); 10 }) 11 } 12}); 13 14 15/**--------------------------------------------------------------------------------------------------------------------- 16 * Alignment of element heights 17 * --------------------------------------------------------------------------------------------------------------------*/ 18jQuery(document).ready(function () { 19 !function (i) { i.fn.equalize = function (e) { var n, t, h = !1, c = !1; return i.isPlainObject(e) ? (n = e.equalize || "height", h = e.children || !1, c = e.reset || !1) : n = e || "height", i.isFunction(i.fn[n]) ? (t = 0 < n.indexOf("eight") ? "height" : "width", this.each(function () { var e = h ? i(this).find(h) : i(this).children(), s = 0; e.each(function () { var e = i(this); c && e.css(t, ""), e = e[n](), e > s && (s = e) }), e.css(t, s + "px") })) : !1 } }(jQuery); 20 21 function aligner() { 22 jQuery('.single-blog-posts').equalize({ equalize: 'outerHeight', reset: true, children: '.single-blog-post-title' }); 23 jQuery('.wl-posts').equalize({ equalize: 'outerHeight', reset: true, children: '.wl-post-title' }); 24 jQuery('.wl-posts').equalize({ equalize: 'outerHeight', reset: true, children: '.wl-post-content' }); 25 } 26 27 if (jQuery(window).outerWidth() > 767) { 28 aligner(); 29 } 30 31 jQuery(window).resize(function () { 32 if (jQuery(window).outerWidth() > 767) { 33 aligner(); 34 } 35 }); 36}); 37 38 39/**--------------------------------------------------------------------------------------------------------------------- 40 * Ol li more than 15 41 * --------------------------------------------------------------------------------------------------------------------*/ 42jQuery(document).ready(function () { 43 let singleOl = jQuery('.single-content-left-col ol'); 44 if (singleOl.length > 0) { 45 singleOl.each(function (i, el) { 46 let maxOl = jQuery(this); 47 if (maxOl.children('li').length > 15) { 48 maxOl.css('column-count', '2'); 49 } 50 }); 51 } 52}); 53 54 55/**--------------------------------------------------------------------------------------------------------------------- 56 * Rank Math Faq Accordion 57 * --------------------------------------------------------------------------------------------------------------------*/ 58jQuery(document).ready(function () { 59 let faqWrap = jQuery('.single-content-left-col #rank-math-faq .rank-math-list'); 60 61 if (faqWrap.length > 0) { 62 faqWrap.find('.rank-math-list-item').each(function (i, el) { 63 let faq = jQuery(this); 64 let faqTitle = faq.find('.rank-math-question'); 65 let faqContent = faq.find('.rank-math-answer'); 66 if (i === 0) { 67 faqContent.slideDown(); 68 faqTitle.addClass('active'); 69 } else { 70 faqContent.slideUp(); 71 faqTitle.removeClass('active'); 72 } 73 faq.click(function () { 74 faqContent.slideDown(200); 75 faqTitle.addClass('active'); 76 jQuery(this).siblings('.rank-math-list-item').find('.rank-math-answer').slideUp(200); 77 jQuery(this).siblings('.rank-math-list-item').find('.rank-math-question').removeClass('active'); 78 }); 79 }); 80 } 81}); 82 83 84/**--------------------------------------------------------------------------------------------------------------------- 85 * Wrap the iframe with a center tag 86 * --------------------------------------------------------------------------------------------------------------------*/ 87jQuery(document).ready(function () { 88 jQuery('.single-content-left-col iframe').each(function () { 89 if (jQuery(this).parent('p')) { 90 jQuery(this).wrap('<center></center>'); 91 } 92 }); 93}); 94 95 96/**--------------------------------------------------------------------------------------------------------------------- 97 * Remove <p> :</p> in single post 98 * --------------------------------------------------------------------------------------------------------------------*/ 99jQuery('.single-content-left-col p').each(function (i, val) { 100 if (jQuery(val).html() === " ") { 101 jQuery(this).remove(); 102 } 103}); 104
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.