1jQuery(document).ready(function () { 2 3 if (jQuery('.lpro-categories-element .lpro-categories-element-category').length > 0) { 4 jQuery('.lpro-categories-element').find('.lpro-categories-element-category').each(function () { 5 var iconsrc = jQuery(this).find('img').attr('src'); 6 if (iconsrc != '' && iconsrc != undefined) { 7 var primaryColor = ajax_object.primaryColor; 8 var changecolor = changeColInUri(iconsrc, "#000000", primaryColor); 9 jQuery(this).find('a').prepend('<img src="' + changecolor + '" class="lpro-cat-hover-icon" />'); 10 } 11 }); 12 } 13 if (jQuery('.footer-social-icons').length > 0) { 14 jQuery('.footer-social-icons').find('li').each(function () { 15 var iconsrc = jQuery(this).find('img').attr('src'); 16 if (iconsrc != '' && iconsrc != undefined) { 17 var footerBottomColor = ajax_object.footerBottomColor; 18 var changecolor = changeColInUri(iconsrc, "#000000", footerBottomColor); 19 jQuery(this).find('img').attr('src', changecolor); 20 } 21 }); 22 } 23 24 if (jQuery('.lpro-taxonomy-element-tabs .lpro-taxonomy-element-tabs-link').length > 0) { 25 jQuery(document).on('click', '.lpro-taxonomy-element-tabs .lpro-taxonomy-element-tabs-link:not(.active)', function () { 26 $this = jQuery(this); 27 28 jQuery('.lpro-taxonomy-element-tabs .lpro-taxonomy-element-tabs-link').removeClass('active'); 29 jQuery('.lpro-taxonomy-element .lpro-tab-content').removeClass('active'); 30 31 $this.addClass('active'); 32 jQuery('.' + $this.data('lpro-tab-content')).addClass('active'); 33 }); 34 } 35 36 if (jQuery('.lpro-activity-grid').length > 0) { 37 function randomNumberFromRange(min, max) { 38 return Math.floor(Math.random() * (max - min + 1) + min); 39 } 40 var counter = 1; 41 jQuery('.lpro-activity-grid').each(function () { 42 var $this = jQuery(this), 43 scale = Math.random() * (2 - 1 + 1) + 1, 44 Xaxis = randomNumberFromRange(-250, 250), 45 Yaxis = randomNumberFromRange(-110, 110); 46 47 if (counter == 1) { 48 Xaxis = -350; 49 Yaxis = -100; 50 }else if (counter == 2) { 51 Xaxis = -130; 52 Yaxis = -125; 53 }else if (counter == 3) { 54 Xaxis = 140; 55 Yaxis = -120; 56 }else if (counter == 4) { 57 Xaxis = 50; 58 Yaxis = -30; 59 }else if (counter == 5) { 60 Xaxis = -200; 61 Yaxis = 80; 62 }else if (counter == 6) { 63 Xaxis = -50; 64 Yaxis = 100; 65 }else if (counter == 7) { 66 Xaxis = 180; 67 Yaxis = 75; 68 } 69 70 counter++; 71 72 if (scale > 2) { 73 scale = Math.random() + 1; 74 } 75 76 $this.find('.lpro-activity-author').css({ 77 'position': 'absolute', 78 'top': '50%', 79 'left': '50%', 80 'transform': 'scale(' + scale + ') translate(' + Xaxis + 'px, ' + Yaxis + 'px)' 81 }); 82 }); 83 jQuery(document).mouseup(function (e) { 84 var container = jQuery(".lpro-activity-author"); 85 if (!container.is(e.target) && container.has(e.target).length === 0) { 86 container.popover('hide'); 87 } 88 }); 89 jQuery('.lpro-activity-grid .lpro-activity-author').popover({ 90 placement: "bottom", 91 container: '.lpro-activity-grid-container', 92 html: true 93 }); 94 setTimeout(function () { 95 jQuery('.lpro-activity-grid:nth-child(5)').find('.lpro-activity-author').trigger('click'); 96 }, 1000); 97 } 98 99 if (jQuery('#lpro-banner .lpro-banner-categories').length > 0) { 100 if (jQuery('#lpro-banner .lpro-banner-categories > div').length > 4) { 101 if (jQuery(window).width() <= 767) { 102 jQuery('#lpro-banner .lpro-banner-categories').slick({ 103 slidesToShow: 3, 104 slidesToScroll: 3, 105 autoplay: true, 106 autoplaySpeed: 2000,
107 arrows: false, 108 dots: false 109 }); 110 } else { 111 if (jQuery('#lpro-banner .lpro-banner-categories').hasClass('slick-initialized')) { 112 jQuery('#lpro-banner .lpro-banner-categories').slick('unslick'); 113 } 114 } 115 } 116 } 117 118 if (jQuery('.lpro-listing-grid-container').length > 0) { 119 if (jQuery('.lpro-listing-grid-container > div').length > 2) { 120 if (jQuery(window).width() <= 767) { 121 jQuery('.lpro-listing-grid-container').slick({ 122 slidesToShow: 1, 123 slidesToScroll: 1, 124 autoplay: true, 125 autoplaySpeed: 2000, 126 arrows: true, 127 infinite: true, 128 dots: false 129 }); 130 } else { 131 jQuery('.lpro-listing-grid-container').slick({ 132 slidesToShow: 3, 133 slidesToScroll: 1, 134 autoplay: true, 135 autoplaySpeed: 2000, 136 arrows: true, 137 infinite: true, 138 dots: false 139 }); 140 } 141 } else { 142 if (jQuery('.lpro-listing-grid-container').hasClass('slick-initialized')) { 143 jQuery('.lpro-listing-grid-container').slick('unslick'); 144 } 145 } 146 } 147 148 if (jQuery('.lpro-partner-container').length > 0) { 149 if (jQuery('.lpro-partner-container > div').length > 3) { 150 if (jQuery(window).width() <= 767) { 151 jQuery('.lpro-partner-container').slick({ 152 slidesToShow: 3, 153 slidesToScroll: 3, 154 autoplay: true, 155 autoplaySpeed: 2000, 156 arrows: false, 157 dots: false 158 }); 159 } else { 160 if (jQuery('.lpro-partner-container').hasClass('slick-initialized')) { 161 jQuery('.lpro-partner-container').slick('unslick'); 162 } 163 } 164 } 165 } 166 167}); 168 169if (jQuery('#lproSidebar').length > 0) { 170 var siteurl = jQuery('#page').data('site-url'), 171 sitelogo = jQuery('#page').data('sitelogo'), 172 $menu = jQuery("#lproSidebar"); 173 174 $menu.mmenu({ 175 "extensions": [ 176 "pagedim-black" 177 ], 178 "iconPanels": true, 179 navbar: { 180 title: "" 181 }, 182 navbars: { 183 height: 3, 184 content: [ 185 '<a href="' + siteurl + '" class="userimage"><img class="icon icons8-Contacts" src="' + sitelogo + '" alt="user"></a>', 186 ] 187 } 188 }); 189 190 $menu.removeAttr('style'); 191 var API = $menu.data("mmenu"); 192 193 jQuery(".lpro-lproSidebar-buttons").click(function () { 194 API.close(); 195 }); 196}
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.