1(function ($) { 2 'use strict'; 3 4 /*----- ELEMENTOR LOAD FUNCTION CALL ---*/ 5 6 $(window).on('elementor/frontend/init', function () { 7 8 // Initial 9 10 var Beforeafter = function () { 11 // You can put any js function here without windows on load 12 13 new BeerSlider(document.getElementById("mayosis-before-after"), {start: 50}); 14 15 } 16 17 18 var ClientProgessP = function () { 19 // on page load... 20 moveProgressBar(); 21 // on browser resize... 22 $(window).resize(function () { 23 moveProgressBar(); 24 }); 25 26 // SIGNATURE PROGRESS 27 function moveProgressBar() { 28 console.log("moveProgressBar"); 29 var getPercent = ($('.progress-wrap').data('progress-percent') / 100); 30 var getProgressWrapWidth = $('.progress-wrap').width(); 31 var progressTotal = getPercent * getProgressWrapWidth; 32 var animationLength = 2500; 33 34 // on page load, animate percentage bar to data percentage length 35 // .stop() used to prevent animation queueing 36 $('.progress-bar').stop().animate({ 37 left: progressTotal 38 }, animationLength); 39 } 40 41 } 42 43 var Testimonialm = function () { 44 45 // You can put any js function here without windows on load 46 var swiper = new Swiper("#carousel-testimonial-elmentor", { 47 loop: true, 48 slidesPerView: 'auto', 49 centeredSlides: true, 50 pagination: { 51 el: ".swiper-pagination", 52 clickable: true, 53 type: 'bullets', 54 dynamicBullets: true, 55 }, 56 navigation: { 57 nextEl: '.elementor-swiper-button-next', 58 prevEl: '.elementor-swiper-button-prev', 59 }, 60 }); 61 62 } 63 64 65 // Text slider 66 var MayosisTextSlider = function () { 67 // Text Slider 68 /** 69 * Horizontal Scrolling 70 */ 71 const scrollers = document.querySelectorAll(".scroller-x");
72 scrollers.forEach((scroller) => { 73 scroller.setAttribute("data-animated", true); 74 const scrollerInner = scroller.querySelector(".scroller-x__list"); 75 const scrollerContent = Array.from(scrollerInner.children); 76 scrollerContent.forEach((item) => { 77 const duplicatedItem = item.cloneNode(true); 78 duplicatedItem.setAttribute("aria-hidden", true); 79 scrollerInner.appendChild(duplicatedItem); 80 }); 81 }); 82 83 84 /** 85 * Vertical Scrolling 86 */ 87 const scrollersY = document.querySelectorAll(".scroller-y"); 88 scrollersY.forEach((scroller) => { 89 scroller.setAttribute("data-animated", true); 90 const scrollerInner = scroller.querySelector(".scroller-y__list"); 91 const scrollerContent = Array.from(scrollerInner.children); 92 scrollerContent.forEach((item) => { 93 const duplicatedItem = item.cloneNode(true); 94 duplicatedItem.setAttribute("aria-hidden", true); 95 scrollerInner.appendChild(duplicatedItem); 96 }); 97 }); 98 } 99 100 function testimonialMarquee(){ 101 const scrollers = document.querySelectorAll(".mayo__testi_marquee_slide");
102 scrollers.forEach((scroller) => { 103 scroller.setAttribute("data-animated", true); 104 const scrollerInner = scroller.querySelector(".mayo__testi_marquee_wrap"); 105 const scrollerContent = Array.from(scrollerInner.children); 106 scrollerContent.forEach((item) => { 107 const duplicatedItem = item.cloneNode(true); 108 duplicatedItem.setAttribute("aria-hidden", true); 109 scrollerInner.appendChild(duplicatedItem); 110 }); 111 }); 112 } 113 114 var Productslider = function () { 115 // You can put any js function here without windows on load 116 117 118 var productsliderMsv = new Swiper("#carousel-product-msv-elmentor", { 119 loop: true, 120 slidesPerView: 1, 121 centeredSlides: true, 122 pagination: { 123 el: ".swiper-pagination", 124 clickable: true, 125 type: 'bullets', 126 dynamicBullets: true, 127 }, 128 navigation: { 129 nextEl: '.elementor-swiper-button-next', 130 prevEl: '.elementor-swiper-button-prev', 131 }, 132 }); 133 134 135 } 136 137 138 var Productcarousel = function () { 139 // You can put any js function here without windows on load 140 141 142 var swiper = new Swiper("#product--carousel--elementor--d", { 143 slidesPerView: 'auto', 144 centeredSlides: true, 145 pagination: { 146 el: ".swiper-pagination", 147 clickable: true, 148 type: 'bullets', 149 }, 150 navigation: { 151 nextEl: '.elementor-swiper-button-next', 152 prevEl: '.elementor-swiper-button-prev', 153 }, 154 }); 155 156 157 } 158 159 160 var Catcarousel = function () { 161 // You can put any js function here without windows on load 162 163 164 var catgrid3 = new Swiper(".grid-cat-edd-3", { 165 slidesPerView: 3, 166 spaceBetween: 15, 167 navigation: { 168 nextEl: '.elementor-swiper-button-next', 169 prevEl: '.elementor-swiper-button-prev', 170 }, 171 breakpoints: { 172 200: { 173 slidesPerView: 1, 174 }, 175 768: { 176 slidesPerView: 3, 177 178 }, 179 1024: { 180 slidesPerView: 3, 181 182 }, 183 184 1366: { 185 slidesPerView: 3, 186 187 }, 188 189 1499: { 190 slidesPerView: 3, 191 192 }, 193 }, 194 }); 195 196 197 var catgrid4 = new Swiper(".grid-cat-edd-4", { 198 slidesPerView: 4, 199 spaceBetween: 15, 200 navigation: { 201 nextEl: '.elementor-swiper-button-next', 202 prevEl: '.elementor-swiper-button-prev', 203 }, 204 breakpoints: { 205 200: { 206 slidesPerView: 1, 207 }, 208 768: { 209 slidesPerView: 4, 210 211 }, 212 1024: { 213 slidesPerView: 4, 214 215 }, 216 217 1366: { 218 slidesPerView: 4, 219 220 }, 221 222 1499: { 223 slidesPerView: 4, 224 225 }, 226 }, 227 }); 228 229 230 var catgrid5 = new Swiper(".grid-cat-edd-5", { 231 slidesPerView: 5, 232 spaceBetween: 15, 233 navigation: { 234 nextEl: '.elementor-swiper-button-next', 235 prevEl: '.elementor-swiper-button-prev', 236 }, 237 breakpoints: { 238 200: { 239 slidesPerView: 1, 240 }, 241 768: { 242 slidesPerView: 5, 243 244 }, 245 1024: { 246 slidesPerView: 5, 247 248 }, 249 250 1366: { 251 slidesPerView: 5, 252 253 }, 254 255 1499: { 256 slidesPerView: 5, 257 258 }, 259 }, 260 }); 261 262 263 var catgrid6 = new Swiper(".grid-cat-edd-6", { 264 slidesPerView: 6, 265 spaceBetween: 15, 266 navigation: { 267 nextEl: '.elementor-swiper-button-next', 268 prevEl: '.elementor-swiper-button-prev', 269 }, 270 271 breakpoints: { 272 200: { 273 slidesPerView: 1, 274 }, 275 768: { 276 slidesPerView: 5, 277 278 }, 279 1024: { 280 slidesPerView: 5, 281 282 }, 283 284 1366: { 285 slidesPerView: 6, 286 287 }, 288 289 1499: { 290 slidesPerView: 6, 291 292 }, 293 }, 294 }); 295 296 297 var catgrid7 = new Swiper(".grid-cat-edd-7", { 298 slidesPerView: 7, 299 spaceBetween: 15, 300 navigation: { 301 nextEl: '.elementor-swiper-button-next', 302 prevEl: '.elementor-swiper-button-prev', 303 }, 304 305 breakpoints: { 306 200: { 307 slidesPerView: 1, 308 }, 309 768: { 310 slidesPerView: 5, 311 312 }, 313 1024: { 314 slidesPerView: 5, 315 316 }, 317 318 1366: { 319 slidesPerView: 6, 320 321 }, 322 323 1499: { 324 slidesPerView: 7, 325 326 }, 327 }, 328 }); 329 330 331 } 332 333 //BeforeAfter 334 elementorFrontend.hooks.addAction('frontend/element_ready/mayosis-before-after.default', function ($scope, $) { 335 Beforeafter(); 336 }); 337 338 339 //Testiminial 340 elementorFrontend.hooks.addAction('frontend/element_ready/mayosis-theme-testimonial.default', function ($scope, $) { 341 Testimonialm(); 342 }); 343 344 345 //product Slider 346 elementorFrontend.hooks.addAction('frontend/element_ready/mayosis-edd-slider.default', function ($scope, $) { 347 Productslider(); 348 }); 349 350 351 //product Carousel
352 elementorFrontend.hooks.addAction('frontend/element_ready/mayosis-edd-carousel.default', function ($scope, $) { 353 Productcarousel(); 354 }); 355 356 357 //Category Carousel 358 elementorFrontend.hooks.addAction('frontend/element_ready/mayosis-edd-category.default', function ($scope, $) { 359 Catcarousel(); 360 }); 361 362 363 //Category Carousel 364 elementorFrontend.hooks.addAction('frontend/element_ready/mayosis-woo-category.default', function ($scope, $) { 365 Catcarousel(); 366 }); 367 368 369 //Text Slider 370 elementorFrontend.hooks.addAction("frontend/element_ready/mayosis_text_slider.default", function ($scope, $) { 371 MayosisTextSlider() 372 }); 373 374 375 //Client Progress 376 elementorFrontend.hooks.addAction("frontend/element_ready/mayosis_popular_client_block.default", function ($scope, $) { 377 ClientProgessP() 378 }); 379 380 381 //Testimonial marquee 382 elementorFrontend.hooks.addAction("frontend/element_ready/testimonial_marquee.default", function ($scope, $) { 383 testimonialMarquee() 384 }); 385 386 387 }); 388})(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.