1(function ($, elementor) { 2 "use strict"; 3 var ApElements = { 4 5 init: function () { 6 7 var widgets = { 8 'ap-slider.default': ApElements.apSlider, 9 'ap-slider2.default': ApElements.apSlider2, 10 'ap-testimonials.default': ApElements.apTestimonials, 11 'ap-team.default': ApElements.apTeam, 12 'ap-ytvideosl.default': ApElements.apYtvideosl, 13 'ap-services.default': ApElements.apServices, 14 'ap-blog-post.default': ApElements.apBlogPosts, 15 'ap-blog-slider.default': ApElements.apBlogSlider, 16 'ap-navbar.default': ApElements.apNavbar, 17 'ap-header-icon.default': ApElements.apHeaderIcons, 18 'ap-offcanvas.default': ApElements.apOffcanvas, 19 20 }; 21 22 $.each(widgets, function (widget, callback) { 23 elementor.hooks.addAction('frontend/element_ready/' + widget, callback); 24 }); 25 elementor.hooks.addAction( 'frontend/element_ready/section', ApElements.elementorSection ); 26 27 }, 28 29 30 apSlider: function ($scope) { 31 32 var arrowsVal = $('.ap-companion-slider .slider-wrapp').attr('data-arrow'); 33 var pagerVal = $('.ap-companion-slider .slider-wrapp').attr('data-pager'); 34 35 if( arrowsVal === 'yes' ){ 36 arrowsVal = true; 37 }else{ 38 arrowsVal = false; 39 } 40 41 if( pagerVal === 'yes' ){ 42 pagerVal = true; 43 }else{ 44 pagerVal = false; 45 } 46 47 $('.ap-companion-slider .slider-wrapp').each(function () { 48 $(this).not('.slick-initialized').slick({ 49 infinite: true, 50 arrows: arrowsVal, 51 dots: pagerVal 52 }); 53 }); 54 55 }, 56 57 /** 58 * slider 2 59 */ 60 apSlider2: function ($scope) { 61 62 var arrowsVal = $('.ap-companion-slider2 .slider-wrapp').attr('data-arrow'); 63 var pagerVal = $('.ap-companion-slider2 .slider-wrapp').attr('data-pager'); 64 65 if( arrowsVal === 'yes' ){ 66 arrowsVal = true; 67 }else{ 68 arrowsVal = false; 69 } 70 71 if( pagerVal === 'yes' ){ 72 pagerVal = true; 73 }else{ 74 pagerVal = false; 75 } 76 77 $('.ap-companion-slider2 .slider-wrapp').each(function () { 78 $(this).not('.slick-initialized').slick({ 79 infinite: true, 80 arrows: arrowsVal, 81 dots: pagerVal 82 }); 83 }); 84 85 }, 86 87 /** 88 * testimonial slider 89 */ 90 apTestimonials: function ($scope) { 91 92 $('.ap-companion-testimonials.default .slider-wrapp').each(function () { 93 $(this).not('.slick-initialized').slick({ 94 infinite: true, 95 arrows: false, 96 dots: true, 97 slidesToShow: 3, 98 slidesToScroll: 3, 99 responsive: [ 100 { 101 breakpoint: 426, 102 settings: { 103 slidesToShow: 1, 104 slidesToScroll: 1, 105 } 106 }, 107 { 108 breakpoint: 769, 109 settings: { 110 slidesToShow: 2, 111 slidesToScroll: 2, 112 } 113 }, 114 { 115 breakpoint: 1024, 116 settings: { 117 slidesToShow: 3, 118 slidesToScroll: 3, 119 } 120 }, 121 ] 122 }); 123 }); 124 125 $('.ap-companion-testimonials.layout2 .slider-wrapp').each(function () { 126 $(this).not('.slick-initialized').slick({ 127 infinite: true, 128 arrows: false, 129 dots: true, 130 slidesToShow: 2, 131 slidesToScroll: 1, 132 responsive: [ 133 { 134 breakpoint: 426, 135 settings: { 136 slidesToShow: 1, 137 slidesToScroll: 1, 138 } 139 } 140 ] 141 }); 142 }); 143 $('.ap-companion-testimonials.layout4 .slider-wrapp').each(function () { 144 $(this).not('.slick-initialized').slick({ 145 infinite: true,
146 arrows: false, 147 dots: true, 148 slidesToShow: 1, 149 slidesToScroll: 1 150 }); 151 }); 152 $('.ap-companion-testimonials.layout3 .slider-wrapp').each(function () { 153 $(this).not('.slick-initialized').slick({ 154 infinite: true, 155 arrows: false, 156 dots: true, 157 slidesToShow: 2, 158 slidesToScroll: 1, 159 responsive: [ 160 { 161 breakpoint: 500, 162 settings: { 163 slidesToShow: 1, 164 slidesToScroll: 1, 165 } 166 } 167 ] 168 }); 169 }); 170 $('.ap-companion-testimonials.layout5 .slider-wrapp').each(function () { 171 $(this).not('.slick-initialized').slick({ 172 infinite: true, 173 arrows: false, 174 dots: true, 175 slidesToShow: 1, 176 slidesToScroll: 1, 177 }); 178 }); 179 }, 180 181 apTeam: function ($scope) { 182 183 $('.ap-companion-team.default .slider-wrapp').each(function () { 184 $(this).not('.slick-initialized').slick({ 185 infinite: true, 186 arrows: true, 187 dots: false, 188 slidesToShow: 3, 189 slidesToScroll: 3, 190 responsive: [ 191 { 192 breakpoint: 426, 193 settings: { 194 slidesToShow: 1, 195 slidesToScroll: 1, 196 } 197 }, 198 { 199 breakpoint: 769, 200 settings: { 201 slidesToShow: 2, 202 slidesToScroll: 2, 203 } 204 }, 205 { 206 breakpoint: 1024, 207 settings: { 208 slidesToShow: 3, 209 slidesToScroll: 3, 210 } 211 }, 212 ] 213 }); 214 }); 215 216 }, 217 218 apYtvideosl: function ($scope) { 219 220 $('.ap-companion-ytvideosl.lay-slider .ap-companion-video-thumbnails').each(function () { 221 $(this).not('.slick-initialized').slick({ 222 infinite: true, 223 arrows: true, 224 dots: false, 225 slidesToShow: 2, 226 slidesToScroll: 2, 227 responsive: [ 228 { 229 breakpoint: 426, 230 settings: { 231 slidesToShow: 1, 232 slidesToScroll: 1, 233 } 234 }, 235 ] 236 }); 237 }); 238 239 }, 240 241 apServices: function ($scope) { 242 243 $('.ap-companion-services.default .slider-wrapp').each(function () { 244 245 var sliderCount = $(this).attr('data-count'); 246 247 $(this).not('.slick-initialized').slick({ 248 infinite: true, 249 arrows: true, 250 dots: false, 251 slidesToShow: sliderCount, 252 slidesToScroll: 1, 253 responsive: [ 254 { 255 breakpoint: 426, 256 settings: { 257 slidesToShow: 1, 258 } 259 }, 260 { 261 breakpoint: 769, 262 settings: { 263 slidesToShow: 2, 264 } 265 }, 266 { 267 breakpoint: 1024, 268 settings: { 269 slidesToShow: 3, 270 } 271 }, 272 ] 273 }); 274 }); 275 276 $('.ap-companion-services.layout2 .slider-wrapp').each(function () { 277 var sliderCount = $(this).attr('data-count'); 278 $(this).not('.slick-initialized').slick({ 279 infinite: true, 280 arrows: false, 281 dots: true, 282 slidesToShow: sliderCount, 283 slidesToScroll: 1, 284 responsive: [ 285 { 286 breakpoint: 426, 287 settings: { 288 slidesToShow: 1, 289 } 290 }, 291 { 292 breakpoint: 769, 293 settings: { 294 slidesToShow: 2, 295 } 296 }, 297 ] 298 }); 299 }); 300 301 $('.ap-companion-services.layout3 .slider-wrapp').each(function () { 302 var sliderCount = $(this).attr('data-count'); 303 $(this).not('.slick-initialized').slick({ 304 infinite: true, 305 arrows: true, 306 dots: false, 307 slidesToShow: sliderCount, 308 slidesToScroll: 1, 309 responsive: [ 310 { 311 breakpoint: 426, 312 settings: { 313 slidesToShow: 1, 314 } 315 }, 316 { 317 breakpoint: 769, 318 settings: { 319 slidesToShow: 2, 320 } 321 }, 322 ] 323 }); 324 }); 325 $('.ap-companion-services.layout4 .slider-wrapp').each(function () { 326 var sliderCount = $(this).attr('data-count'); 327 $(this).not('.slick-initialized').slick({ 328 infinite: true, 329 arrows: true, 330 dots: false, 331 slidesToShow: sliderCount, 332 slidesToScroll: 1, 333 responsive: [ 334 { 335 breakpoint: 426, 336 settings: { 337 slidesToShow: 1, 338 } 339 }, 340 ] 341 }); 342 }); 343 344 }, 345 346 apBlogPosts: function ($scope) { 347 348 $('.ap-blog-post-main-wrapp.style6').each(function () { 349 $(this).not('.slick-initialized').slick({ 350 infinite: true,
351 arrows: false, 352 dots: true, 353 slidesToShow: 3, 354 slidesToScroll: 1, 355 responsive: [ 356 { 357 breakpoint: 426, 358 settings: { 359 slidesToShow: 1, 360 } 361 }, 362 { 363 breakpoint: 769, 364 settings: { 365 slidesToShow: 2, 366 } 367 }, 368 ] 369 }); 370 }); 371 372 }, 373 374 apBlogSlider: function($scope){ 375 376 377 $('.ap-blog-slider .ap-slider-preview-wrapp').not('.slick-initialized').slick({ 378 slidesToShow: 1, 379 slidesToScroll: 1, 380 fade: true, 381 asNavFor: '.ap-blog-slider .ap-slider-thumb-wrapp' 382 }) 383 384 385 386 $('.ap-blog-slider .ap-slider-thumb-wrapp').not('.slick-initialized').slick({ 387 slidesToShow: 3, 388 slidesToScroll: 3, 389 asNavFor: '.ap-blog-slider .ap-slider-preview-wrapp', 390 dots: false, 391 centerMode: false, 392 centerPadding: 0, 393 focusOnSelect: true, 394 vertical: true, 395 responsive: [ 396 { 397 breakpoint: 1366, 398 settings: { 399 slidesToShow: 3, 400 slidesToScroll: 3, 401 infinite: true, 402 } 403 }, 404 { 405 breakpoint: 966, 406 settings: { 407 slidesToShow: 2, 408 slidesToScroll: 1 409 } 410 }, 411 { 412 breakpoint: 480, 413 settings: { 414 slidesToShow: 1, 415 slidesToScroll: 1 416 } 417 } 418 419 ] 420 }); 421 }, 422 423 apNavbar: function( $scope ) { 424 425 jQuery(document).ready(function ($) { 426 if ($('#ap-mob-side-nav').length > 0) { 427 var $menu = $("#ap-mob-side-nav").mmenu({ 428 "extensions": [ 429 "pagedim-black", 430 "border-full", 431 "multiline", 432 "effect-listitems-slide", 433 "theme-dark" 434 ] 435 }); 436 var API = $menu.data("mmenu"); 437 438 var $icon = $(".ap-nav-icon"); 439 440 $icon.on("click", function () { 441 $('.mm-page').removeAttr('style'); 442 API.open(); 443 }); 444 445 API.bind("opened", function () { 446 setTimeout(function () { 447 $icon.addClass("is-active"); 448 449 }, 100); 450 }); 451 452 API.bind("closed", function () { 453 setTimeout(function () { 454 $icon.removeClass("is-active"); 455 $('.mm-page').removeAttr('style'); 456 }, 100); 457 }); 458 } 459 }); 460 461 462 }, 463 464 apHeaderIcons: function( $scope ) { 465 466 $('body') .on('click','.ap-header-searchbox .searchbox-icon', function(){ 467 $('.ap-header-searchbox').toggleClass('active'); 468 }); 469 470 $('body') .on('click','.ap-header-searchbox .search-close', function(){ 471 $('.ap-header-searchbox').toggleClass('active'); 472 }); 473 474 }, 475 476 apOffcanvas: function( $scope ) { 477 478 $('body') .on('click','.ap-offcanvas-button,.ap-offcanvas-close', function(){ 479 $('.ap-offcanvas').toggleClass('active'); 480 }); 481 482 483 }, 484 485 486 elementorSection: function( $scope ) { 487 488 var $section = $scope, 489 instance = null, 490 sectionID = $section.data('id'); 491 492 //sticky fixes for inner section. 493 $.each($section, function( index ) { 494 var $sticky = $(this), 495 $stickyFound = $sticky.find('.elementor-element.ap-sticky-bar'); 496 497 if ($stickyFound.length) { 498 $stickyFound.stickySidebar({ 499 topSpacing: 10, 500 bottomSpacing: 10 501 }); 502 503 } 504 }); 505 } 506 507 508 509 510 }; 511 512 $(window).on('elementor/frontend/init', ApElements.init); 513 514 }(jQuery, window.elementorFrontend));
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.