https://zaakihalal.com/wp-content/plugins/grillino-core/assets/js/grillinator-frontend.js?ver=6.8.10
1; (function ($) { 2 'use strict'; 3 $(window).on('elementor/frontend/init', function () { 4 5 6 elementorFrontend.hooks.addAction('frontend/element_ready/global', function ($scope) { 7 if ($('.background-image').length > 0) { 8 $('.background-image').each(function () { 9 var src = $(this).attr('data-vs-img'); 10 $(this).css({ 11 'background-image': 'url(' + src + ')' 12 }); 13 }); 14 }; 15 }); 16 17 // Product Slider 18 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorproductslider.default', function ($scope) { 19 let $slickcarousels = $scope.find('.vs-carousels'); 20 $slickcarousels.not('.slick-initialized').slick({ 21 dots: false, 22 infinite: false, 23 arrows: $slickcarousels.data('slick-arrows'), 24 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 25 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 26 autoplay: $slickcarousels.data('slick-autoplay'), 27 autoplaySpeed: 6000, 28 fade: false, 29 speed: 300, 30 slidesToShow: $slickcarousels.data('slide-to-show'), 31 slidesToScroll: 1, 32 responsive: [{ 33 breakpoint: 992, 34 settings: { 35 slidesToShow: 2, 36 arrows: false, 37 } 38 }, 39 { 40 breakpoint: 768, 41 settings: { 42 slidesToShow: 1, 43 arrows: false, 44 } 45 } 46 ] 47 }); 48 49 }); 50 51 52 // Product Slider two 53 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorproductslidertwo.default', function ($scope) { 54 let $productslidertwo = $scope.find('.product-slider-two'); 55 $productslidertwo.not('.slick-initialized').slick({ 56 dots: $productslidertwo.data('slick-dots'), 57 infinite: false, 58 arrows: false, 59 autoplay: $productslidertwo.data('slick-autoplay'), 60 autoplaySpeed: 6000, 61 fade: false, 62 speed: 300, 63 slidesToShow: $productslidertwo.data('slide-to-show'), 64 slidesToScroll: 1, 65 responsive: [{ 66 breakpoint: 1500, 67 settings: { 68 slidesToShow: 3, 69 arrows: false, 70 dots: true, 71 } 72 }, { 73 breakpoint: 992, 74 settings: { 75 slidesToShow: 2, 76 arrows: false, 77 dots: false, 78 } 79 }, 80 { 81 breakpoint: 768, 82 settings: { 83 slidesToShow: 1, 84 dots: false, 85 } 86 }, 87 { 88 breakpoint: 320, 89 settings: { 90 slidesToShow: 1, 91 dots: false, 92 } 93 } 94 ] 95 }); 96 97 }); 98 99 // Product Tab Slider 100 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorproducttabslider.default', function ($scope) { 101 let $slickcarousels = $scope.find('.vs-carousel'); 102 $slickcarousels.not('.slick-initialized').slick({ 103 dots: false, 104 infinite: false, 105 arrows: true, 106 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 107 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 108 autoplay: true, 109 autoplaySpeed: 6000, 110 fade: false, 111 speed: 300, 112 slidesToShow: 3, 113 slidesToScroll: 1, 114 responsive: [{ 115 breakpoint: 992, 116 settings: { 117 slidesToShow: 2,
118 arrows: false, 119 } 120 }, 121 { 122 breakpoint: 768, 123 settings: { 124 slidesToShow: 1, 125 arrows: false, 126 } 127 } 128 ] 129 }); 130 131 $('a[data-toggle="tab"]').on("shown.bs.tab", function (t) { 132 var o = $(this).attr("href"); 133 $(o).find(".vs-carousel").slick("refresh"); 134 }); 135 136 }); 137 138 // Team Slider 139 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorteammember.default', function ($scope) { 140 let $slickcarousels = $scope.find('.vs-carousel'); 141 $slickcarousels.not('.slick-initialized').slick({ 142 dots: false, 143 infinite: true, 144 arrows: $slickcarousels.data('slick-arrows'), 145 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 146 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 147 autoplay: $slickcarousels.data('slick-autoplay'), 148 autoplaySpeed: 6000, 149 fade: false, 150 speed: 1000, 151 slidesToShow: $slickcarousels.data('slide-to-show'), 152 slidesToScroll: 1, 153 centerMode: $slickcarousels.data('centermode'), 154 centerPadding: '0px', 155 responsive: [{ 156 breakpoint: 1500, 157 settings: { 158 slidesToShow: 3, 159 arrows: false, 160 } 161 }, { 162 breakpoint: 992, 163 settings: { 164 slidesToShow: 2, 165 arrows: false, 166 } 167 }, 168 { 169 breakpoint: 768, 170 settings: { 171 slidesToShow: 1, 172 arrows: false, 173 } 174 } 175 ] 176 }); 177 let $vstoggler = $scope.find('.vs-toggler'); 178 $vstoggler.each(function () { 179 var btn = $(this); 180 btn.on('click', function (e) { 181 e.preventDefault(); 182 var menu = $(this).next('.toggle-menu'); 183 if (menu.hasClass('show')) { 184 btn.removeClass('active'); 185 menu.removeClass('show'); 186 } else { 187 $('.toggle-menu.show').removeClass('show'); 188 $('.vs-toggler.active').removeClass('active'); 189 btn.addClass('active'); 190 menu.addClass('show'); 191 } 192 }) 193 }); 194 195 // Finding First And Last Slide 196 function firstAndLastSlide() { 197 let child = $slickcarousels.find('.slick-slide.slick-active'), 198 i = 0, 199 lastClass = 'slick-last', 200 firstClass = 'slick-first'; 201 for (i; i < child.length; i++) { 202 if (i == child.length - 1) { 203 if (child.hasClass(lastClass)) { 204 child.removeClass(lastClass); 205 child[i].classList.add(lastClass); 206 } else { 207 child[i].classList.add(lastClass); 208 }; 209 }; 210 if (i == 0) { 211 if (child.hasClass(firstClass)) { 212 child.removeClass(firstClass); 213 child[i].classList.add(firstClass); 214 } else { 215 child[i].classList.add(firstClass); 216 }; 217 } 218 }; 219 220 }; 221 firstAndLastSlide(); 222 223 $slickcarousels.on('afterChange', function () { 224 firstAndLastSlide(); 225 }); 226 227 228 }); 229 // Team Slider 230 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorinstalgrambox.default', function ($scope) { 231 let $slickcarousels = $scope.find('.vs-carousel'); 232 $slickcarousels.not('.slick-initialized').slick({ 233 dots: false, 234 infinite: false, 235 arrows: $slickcarousels.data('slick-arrows'), 236 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 237 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 238 autoplay: $slickcarousels.data('slick-autoplay'), 239 autoplaySpeed: 6000, 240 fade: false, 241 speed: 1000, 242 slidesToShow: $slickcarousels.data('slide-to-show'), 243 slidesToScroll: 1, 244 centerMode: $slickcarousels.data('centermode'), 245 centerPadding: '0px', 246 responsive: [{ 247 breakpoint: 1500, 248 settings: { 249 slidesToShow: 3,
250 arrows: false, 251 } 252 }, { 253 breakpoint: 992, 254 settings: { 255 slidesToShow: 2, 256 arrows: false, 257 } 258 }, 259 { 260 breakpoint: 768, 261 settings: { 262 slidesToShow: 1, 263 arrows: false, 264 } 265 } 266 ] 267 }); 268 let $vstoggler = $scope.find('.vs-toggler'); 269 $vstoggler.each(function () { 270 var btn = $(this); 271 btn.on('click', function (e) { 272 e.preventDefault(); 273 var menu = $(this).next('.toggle-menu'); 274 if (menu.hasClass('show')) { 275 btn.removeClass('active'); 276 menu.removeClass('show'); 277 } else { 278 $('.toggle-menu.show').removeClass('show'); 279 $('.vs-toggler.active').removeClass('active'); 280 btn.addClass('active'); 281 menu.addClass('show'); 282 } 283 }) 284 }); 285 286 // Finding First And Last Slide 287 function firstAndLastSlide() { 288 let child = $slickcarousels.find('.slick-slide.slick-active'), 289 i = 0, 290 lastClass = 'slick-last', 291 firstClass = 'slick-first'; 292 for (i; i < child.length; i++) { 293 if (i == child.length - 1) { 294 if (child.hasClass(lastClass)) { 295 child.removeClass(lastClass); 296 child[i].classList.add(lastClass); 297 } else { 298 child[i].classList.add(lastClass); 299 }; 300 }; 301 if (i == 0) { 302 if (child.hasClass(firstClass)) { 303 child.removeClass(firstClass); 304 child[i].classList.add(firstClass); 305 } else { 306 child[i].classList.add(firstClass); 307 }; 308 } 309 }; 310 311 }; 312 firstAndLastSlide(); 313 314 $slickcarousels.on('afterChange', function () { 315 firstAndLastSlide(); 316 }); 317 318 319 }); 320 321 // Image Slider 322 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorimageslider.default', function ($scope) { 323 324 let $slickcarousels = $scope.find('.vs-carousel'); 325 326 $slickcarousels.on('init', function (event, slick, currentSlide) { 327 var cur = $(slick.$slides[slick.currentSlide]), 328 next = cur.next(), 329 prev = cur.prev(); 330 prev.addClass('vs-slick-prev'); 331 next.addClass('vs-slick-next'); 332 cur.removeClass('vs-slick-next').removeClass('vs-slick-prev'); 333 slick.$prev = prev; 334 slick.$next = next; 335 }).on('beforeChange', function (event, slick, currentSlide, nextSlide) { 336 var cur = $(slick.$slides[nextSlide]); 337 slick.$prev.removeClass('vs-slick-prev'); 338 slick.$next.removeClass('vs-slick-next'); 339 var next = cur.next(), 340 prev = cur.prev(); 341 prev.prev(); 342 prev.next(); 343 prev.addClass('vs-slick-prev'); 344 next.addClass('vs-slick-next'); 345 slick.$prev = prev; 346 slick.$next = next; 347 cur.removeClass('vs-slick-next').removeClass('vs-slick-prev'); 348 }); 349 350 $slickcarousels.not('.slick-initialized').slick({ 351 dots: false, 352 infinite: true, 353 arrows: $slickcarousels.data('slick-arrows'), 354 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 355 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 356 autoplay: $slickcarousels.data('slick-autoplay'), 357 autoplaySpeed: 6000, 358 fade: false, 359 speed: 1000, 360 slidesToShow: $slickcarousels.data('slide-to-show'), 361 slidesToScroll: 1, 362 centerMode: $slickcarousels.data('centermode'), 363 centerPadding: '0px', 364 variablewidth: $slickcarousels.data('variablewidth'), 365 loop: $slickcarousels.data('loop'), 366 focusOnSelect: true, 367 }); 368 369 // Finding First And Last Slide 370 function firstAndLastSlide() { 371 let child = $slickcarousels.find('.slick-slide.slick-active'), 372 i = 0, 373 lastClass = 'slick-last', 374 firstClass = 'slick-first'; 375 for (i; i < child.length; i++) { 376 if (i == child.length - 1) { 377 if (child.hasClass(lastClass)) { 378 child.removeClass(lastClass); 379 child[i].classList.add(lastClass); 380 } else { 381 child[i].classList.add(lastClass); 382 }; 383 }; 384 if (i == 0) { 385 if (child.hasClass(firstClass)) { 386 child.removeClass(firstClass); 387 child[i].classList.add(firstClass); 388 } else { 389 child[i].classList.add(firstClass); 390 }; 391 } 392 }; 393 394 }; 395 firstAndLastSlide(); 396 397 $slickcarousels.on('afterChange', function () { 398 firstAndLastSlide(); 399 }); 400 401 }); 402 403 // Service Slider 404 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorserviceslider.default', function ($scope) { 405 let $slickcarousels = $scope.find('.vs-carousel'); 406 $slickcarousels.not('.slick-initialized').slick({ 407 dots: false, 408 infinite: true, 409 arrows: $slickcarousels.data('slick-arrows'), 410 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 411 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 412 autoplay: $slickcarousels.data('slick-autoplay'), 413 autoplaySpeed: 6000, 414 fade: false, 415 speed: 1000, 416 slidesToShow: $slickcarousels.data('slide-to-show'), 417 slidesToScroll: 1, 418 responsive: [{ 419 breakpoint: 1025, 420 settings: { 421 slidesToShow: 2,
422 arrows: false, 423 } 424 }, { 425 breakpoint: 992, 426 settings: { 427 slidesToShow: 2, 428 arrows: false, 429 } 430 }, 431 { 432 breakpoint: 768, 433 settings: { 434 slidesToShow: 1, 435 arrows: false, 436 } 437 } 438 ] 439 }); 440 441 442 }); 443 444 // Service Icon Slider 445 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorserviceiconslider.default', function ($scope) { 446 let $slickcarousels = $scope.find('.vs-carousel'); 447 $slickcarousels.not('.slick-initialized').slick({ 448 dots: true, 449 infinite: true, 450 arrows: $slickcarousels.data('slick-arrows'), 451 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 452 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 453 autoplay: $slickcarousels.data('slick-autoplay'), 454 autoplaySpeed: 6000, 455 fade: false, 456 speed: 1000, 457 slidesToShow: $slickcarousels.data('slide-to-show'), 458 slidesToScroll: 1, 459 responsive: [{ 460 breakpoint: 992, 461 settings: { 462 slidesToShow: 2, 463 arrows: false, 464 dots: false 465 } 466 }, 467 { 468 breakpoint: 768, 469 settings: { 470 slidesToShow: 1, 471 arrows: false, 472 dots: false 473 } 474 } 475 ] 476 }); 477 let $slickcarousels2 = $scope.find('.vs-carousel-s-1'); 478 $slickcarousels2.not('.slick-initialized').slick({ 479 dots: false, 480 infinite: true, 481 arrows: true, 482 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 483 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 484 autoplay: $slickcarousels2.data('slick-autoplay'), 485 autoplaySpeed: 6000, 486 fade: false, 487 speed: 1000, 488 slidesToShow: $slickcarousels2.data('slide-to-show'), 489 slidesToScroll: 1, 490 responsive: [{ 491 breakpoint: 992, 492 settings: { 493 slidesToShow: 2, 494 arrows: false, 495 dots: false 496 } 497 }, 498 { 499 breakpoint: 768, 500 settings: { 501 slidesToShow: 1, 502 arrows: false, 503 dots: false 504 } 505 } 506 ] 507 }); 508 509 510 }); 511 512 // Blog Slider 513 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorblogpost.default', function ($scope) { 514 let $slickcarousels = $scope.find('.vs-carousel'); 515 $slickcarousels.not('.slick-initialized').slick({ 516 dots: false, 517 infinite: true, 518 arrows: $slickcarousels.data('slick-arrows'), 519 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 520 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 521 autoplay: $slickcarousels.data('slick-autoplay'), 522 autoplaySpeed: 6000, 523 fade: false, 524 speed: 1000, 525 slidesToShow: $slickcarousels.data('slide-to-show'), 526 slidesToScroll: 1, 527 centerMode: true, 528 centerPadding: 0, 529 responsive: [{ 530 breakpoint: 1500, 531 settings: { 532 slidesToShow: 3,
533 arrows: false, 534 } 535 }, { 536 breakpoint: 992, 537 settings: { 538 slidesToShow: 2, 539 arrows: false, 540 } 541 }, 542 { 543 breakpoint: 768, 544 settings: { 545 slidesToShow: 1, 546 arrows: false, 547 } 548 } 549 ] 550 }); 551 }); 552 553 // Feature Slider 554 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorfeatureslider.default', function ($scope) { 555 let $slickcarousels = $scope.find('.vs-carousel'); 556 $slickcarousels.not('.slick-initialized').slick({ 557 dots: false, 558 infinite: true, 559 arrows: $slickcarousels.data('slick-arrows'), 560 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 561 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 562 autoplay: $slickcarousels.data('slick-autoplay'), 563 autoplaySpeed: 6000, 564 fade: false, 565 speed: 1000, 566 slidesToShow: $slickcarousels.data('slide-to-show'), 567 slidesToScroll: 1, 568 centerMode: true, 569 centerPadding: 0, 570 responsive: [{ 571 breakpoint: 992, 572 settings: { 573 slidesToShow: 2, 574 arrows: false, 575 } 576 }, 577 { 578 breakpoint: 768, 579 settings: { 580 slidesToShow: 1, 581 arrows: false, 582 } 583 } 584 ] 585 }); 586 587 588 if ($('.background-image').length > 0) { 589 $('.background-image').each(function () { 590 var src = $(this).attr('data-vs-img'); 591 $(this).css({ 592 'background-image': 'url(' + src + ')' 593 }); 594 }); 595 }; 596 597 function sliderCustom() { 598 let $slider = $scope.find('.feature-carousel'); 599 $slider.each(function () { 600 function s() { 601 function s() { 602 var s = a.find(".slick-center"); 603 s.addClass("slick-center-current"), s.next("div").addClass("slick-center-next"), s.prev("div").addClass("slick-center-prev"); 604 } 605 s(), 606 a.on("afterChange", function () { 607 $(".slick-slide.slick-center-next").removeClass("slick-center-next"), $(".slick-slide.slick-center-current").removeClass("slick-center-current"), $(".slick-slide.slick-center-prev").removeClass("slick-center-prev"), s(); 608 }); 609 } 610 function e() { 611 let s = a.find(".slick-slide.slick-active"), 612 e = 0, 613 t = "slick-last", 614 o = "slick-first"; 615 for (; e < s.length; e++) e == s.length - 1 && (s.hasClass(t) ? (s.removeClass(t), s[e].classList.add(t)) : s[e].classList.add(t)), 0 == e && (s.hasClass(o) ? (s.removeClass(o), s[e].classList.add(o)) : s[e].classList.add(o)); 616 } 617 var a = $(this), 618 t = a.data("dots"), 619 o = a.data("loop"), 620 d = a.data("autoplay"), 621 r = a.data("fade"), 622 i = a.data("speed"), 623 l = a.data("slidetoshow"), 624 n = a.data("slidetoscroll"), 625 c = a.data("autoheight"), 626 v = a.data("autoplayspeed"), 627 p = a.data("asnavfor"), 628 u = a.data("centermode"), 629 w = a.data("centerpadding"), 630 k = a.data("focusonselect"), 631 m = a.data("pauseonfocus"), 632 f = a.data("pauseonhover"), 633 h = a.data("rows"), 634 x = a.data("slidesperrow"), 635 C = a.data("variablewidth"), 636 g = a.data("vertical"), 637 b = a.data("verticalswiping"), 638 S = a.data("usetransform"), 639 T = a.data("initialslide"), 640 y = a.data("arrows"), 641 M = a.data("prevarrow"), 642 L = a.data("nextarrow"), 643 O = a.data("xlarrows"), 644 A = a.data("xldots"), 645 F = a.data("xlslidetoshow"), 646 H = a.data("xlcentermode"), 647 P = a.data("mlarrows"), 648 N = a.data("mldots"), 649 R = a.data("mlslidetoshow"), 650 W = a.data("mlcentermode"), 651 j = a.data("lgarrows"), 652 q = a.data("lgdots"), 653 z = a.data("lgslidetoshow"), 654 B = a.data("lgcentermode"), 655 D = a.data("mdarrows"), 656 E = a.data("mddots"), 657 G = a.data("mdslidetoshow"), 658 I = a.data("mdcentermode"), 659 J = a.data("smarrows"), 660 K = a.data("smdots"), 661 Q = a.data("smslidetoshow"), 662 U = a.data("smcentermode"), 663 V = a.data("xsarrows"), 664 X = a.data("xsdots"), 665 Y = a.data("xsslidetoshow"), 666 Z = a.data("xscentermode"), 667 _ = '<button type="button" class="slick-prev"><i class="' + M + '"></i></button>', 668 ss = '<button type="button" class="slick-next"><i class="' + L + '"></i></button>'; 669 a 670 .on("init", function (s, e, a) { 671 var t = $(e.$slides[e.currentSlide]), 672 o = t.next(), 673 d = t.prev(); 674 d.addClass("vs-slick-prev"), o.addClass("vs-slick-next"), t.removeClass("vs-slick-next").removeClass("vs-slick-prev"), (e.$prev = d), (e.$next = o); 675 }) 676 .on("beforeChange", function (s, e, a, t) { 677 var o = $(e.$slides[t]); 678 e.$prev.removeClass("vs-slick-prev"), e.$next.removeClass("vs-slick-next"); 679 var d = o.next(), 680 r = o.prev(); 681 r.prev(), r.next(), r.addClass("vs-slick-prev"), d.addClass("vs-slick-next"), (e.$prev = r), (e.$next = d), o.removeClass("vs-slick-next").removeClass("vs-slick-prev"); 682 }), 683 a.slick({ 684 dots: !!t, 685 infinite: !o, 686 arrows: !!y, 687 autoplay: !d, 688 autoplaySpeed: v || 6e3, 689 fade: !!r, 690 speed: i || 1e3, 691 slidesToShow: l || 1, 692 slidesToScroll: n || 1, 693 adaptiveHeight: !!c, 694 asNavFor: p || !1, 695 centerMode: u || !1, 696 centerPadding: w || "0", 697 focusOnSelect: !k, 698 pauseOnFocus: !!m, 699 pauseOnHover: !!f, 700 rows: h || 1, 701 slidesPerRow: x || 1, 702 variableWidth: !!C, 703 vertical: !!g, 704 initialSlide: T || 0, 705 verticalSwiping: !!b, 706 useTransform: !S, 707 prevArrow: M ? _ : '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 708 nextArrow: L ? ss : '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 709 responsive: [ 710 { breakpoint: 1600, settings: { arrows: !!O, dots: !!A, slidesToShow: F || l, centerMode: !!H } }, 711 { breakpoint: 1400, settings: { arrows: !!P, dots: !!N, slidesToShow: R || l, centerMode: !!W } }, 712 { breakpoint: 1200, settings: { arrows: !!j, dots: !!q, slidesToShow: z || l, centerMode: B || !1 } }, 713 { breakpoint: 992, settings: { arrows: !!D, dots: !!E, slidesToShow: G || l, centerMode: I || !1 } }, 714 { breakpoint: 768, settings: { arrows: !!J, dots: !!K, slidesToShow: Q || l, centerMode: U || !1 } }, 715 { breakpoint: 576, settings: { arrows: !!V, dots: !!X, slidesToShow: Y || l, centerMode: Z || !1 } }, 716 ], 717 }), 718 1 == u && s(), 719 e(), 720 a.on("afterChange", function () { 721 e(); 722 }); 723 }); 724 } 725 sliderCustom(); 726 727 728 }); 729 730 731 732 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorachievementbox.default', function ($scope) { 733 let $chievment = $scope.find('.vs-carousel'); 734 $chievment.not('.slick-initialized').slick({ 735 dots: false, 736 infinite: true, 737 arrows: $chievment.data('slick-arrows'), 738 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 739 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 740 autoplay: $chievment.data('slick-autoplay'), 741 autoplaySpeed: 6000, 742 fade: false, 743 speed: 1000, 744 slidesToShow: $chievment.data('slide-to-show'), 745 slidesToScroll: 1, 746 centerMode: true, 747 centerPadding: 0, 748 responsive: [{ 749 breakpoint: 992, 750 settings: { 751 slidesToShow: 2,
752 arrows: false, 753 } 754 }, 755 { 756 breakpoint: 768, 757 settings: { 758 slidesToShow: 1, 759 arrows: false, 760 } 761 } 762 ] 763 }); 764 765 }); 766 767 // Product Category Image Slider 768 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorproductcategoryslider.default', function ($scope) { 769 let $slickcarousels = $scope.find('.vs-carousel'); 770 $slickcarousels.not('.slick-initialized').slick({ 771 dots: false, 772 infinite: true, 773 arrows: $slickcarousels.data('slick-arrows'), 774 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 775 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 776 autoplay: $slickcarousels.data('slick-autoplay'), 777 autoplaySpeed: 6000, 778 fade: false, 779 speed: 1000, 780 slidesToShow: $slickcarousels.data('slide-to-show'), 781 slidesToScroll: 1, 782 responsive: [{ 783 breakpoint: 992, 784 settings: { 785 slidesToShow: 1, 786 arrows: false, 787 } 788 }, 789 { 790 breakpoint: 768, 791 settings: { 792 slidesToShow: 1, 793 arrows: false, 794 } 795 } 796 ] 797 }); 798 799 if ($('.background-image').length > 0) { 800 $('.background-image').each(function () { 801 var src = $(this).attr('data-vs-img'); 802 $(this).css({ 803 'background-image': 'url(' + src + ')' 804 }); 805 }); 806 }; 807 808 809 }); 810 811 // Food Box Slider 812 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorproductfoodbox.default', function ($scope) { 813 let $foodboxslider = $scope.find('.foodbox-carousel'); 814 $foodboxslider.not('.slick-initialized').slick({ 815 dots: false, 816 infinite: true, 817 arrows: false, 818 autoplay: $foodboxslider.data('slick-autoplay'), 819 autoplaySpeed: 6000, 820 fade: false, 821 speed: 1000, 822 slidesToShow: $foodboxslider.data('slide-to-show'), 823 slidesToScroll: 1, 824 responsive: [{ 825 breakpoint: 992, 826 settings: { 827 slidesToShow: 2, 828 arrows: false, 829 } 830 }, 831 { 832 breakpoint: 768, 833 settings: { 834 slidesToShow: 1, 835 arrows: false, 836 dots: false 837 } 838 } 839 ] 840 }); 841 842 843 }); 844 845 // Discount Slider 846 elementorFrontend.hooks.addAction('frontend/element_ready/grillinadiscoutnslider.default', function ($scope) { 847 let $discountslider = $scope.find('.discount-carousel'); 848 $discountslider.not('.slick-initialized').slick({ 849 dots: true, 850 infinite: true, 851 arrows: false, 852 autoplay: $discountslider.data('slick-autoplay'), 853 autoplaySpeed: 6000, 854 fade: false, 855 speed: 1000, 856 slidesToShow: $discountslider.data('slide-to-show'), 857 slidesToScroll: 1, 858 responsive: [{ 859 breakpoint: 992, 860 settings: { 861 slidesToShow: 1,
862 arrows: false, 863 } 864 }, 865 { 866 breakpoint: 768, 867 settings: { 868 slidesToShow: 1, 869 arrows: false, 870 dots: false 871 } 872 } 873 ] 874 }); 875 876 877 }); 878 879 // Feature Fodd Box Slider 880 elementorFrontend.hooks.addAction('frontend/element_ready/grillinafeaturefoodlider.default', function ($scope) { 881 let $discountslider = $scope.find('.feature-food-box'); 882 $discountslider.not('.slick-initialized').slick({ 883 dots: false, 884 infinite: true, 885 arrows: true, 886 autoplay: $discountslider.data('slick-autoplay'), 887 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 888 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 889 autoplaySpeed: 6000, 890 fade: false, 891 speed: 1000, 892 slidesToShow: $discountslider.data('slide-to-show'), 893 slidesToScroll: 1, 894 responsive: [{ 895 breakpoint: 1500, 896 settings: { 897 slidesToShow: 3, 898 arrows: false, 899 } 900 }, 901 { 902 breakpoint: 768, 903 settings: { 904 slidesToShow: 2, 905 arrows: false, 906 dots: false 907 } 908 }, 909 { 910 breakpoint: 480, 911 settings: { 912 slidesToShow: 1, 913 arrows: false, 914 } 915 }, 916 ] 917 }); 918 919 920 }); 921 922 // Food Gallery Slider 923 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorfoodgallery.default', function ($scope) { 924 let $slickcarousels = $scope.find('.vs-carousel'); 925 $slickcarousels.not('.slick-initialized').slick({ 926 dots: false, 927 infinite: true, 928 arrows: $slickcarousels.data('slick-arrows'), 929 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 930 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 931 autoplay: $slickcarousels.data('slick-autoplay'), 932 autoplaySpeed: 6000, 933 fade: false, 934 speed: 1000, 935 slidesToShow: $slickcarousels.data('slide-to-show'), 936 slidesToScroll: 1, 937 centerMode: $slickcarousels.data('centermode'), 938 responsive: [{ 939 breakpoint: 992, 940 settings: { 941 slidesToShow: 2, 942 arrows: false, 943 } 944 }, 945 { 946 breakpoint: 768, 947 settings: { 948 slidesToShow: 1, 949 arrows: false, 950 } 951 } 952 ] 953 }); 954 }); 955 956 // Client Slider 957 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorclientlogo.default', function ($scope) { 958 let $slickcarousels = $scope.find('.vs-carousel'); 959 $slickcarousels.not('.slick-initialized').slick({ 960 dots: false, 961 infinite: true, 962 arrows: false, 963 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 964 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 965 autoplay: $slickcarousels.data('slick-autoplay'), 966 autoplaySpeed: 6000, 967 fade: false, 968 speed: 1000, 969 slidesToShow: $slickcarousels.data('slide-to-show'), 970 slidesToScroll: 1, 971 responsive: [{ 972 breakpoint: 992, 973 settings: { 974 slidesToShow: 3,
975 arrows: false, 976 } 977 }, 978 { 979 breakpoint: 768, 980 settings: { 981 slidesToShow: 2, 982 arrows: false, 983 } 984 }, 985 { 986 breakpoint: 480, 987 settings: { 988 slidesToShow: 1, 989 arrows: false, 990 } 991 }, 992 ] 993 }); 994 }); 995 996 997 998 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatoradiscountsection.default', function ($scope) { 999 /*----------- 10. Counter Box ----------*/ 1000 $.fn.countdown = function () { 1001 $(this).each(function () { 1002 var $counter = $(this), 1003 countDownDate = new Date($counter.data('end-date')).getTime(), // Set the date we're counting down toz 1004 exprireCls = 'expired'; 1005 1006 // Finding Function 1007 function s$(element) { 1008 return $counter.find(element); 1009 } 1010 1011 // Update the count down every 1 second 1012 var counter = setInterval(function () { 1013 // Get today's date and time 1014 var now = new Date().getTime(); 1015 1016 // Find the distance between now and the count down date 1017 var distance = countDownDate - now; 1018 1019 // Time calculations for days, hours, minutes and seconds 1020 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 1021 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 1022 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 1023 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 1024 1025 // if low than 10 add zero 1026 function addZero(element) { 1027 return element < 10 ? '' + element : element; 1028 } 1029 1030 // If the count down is over, write some text 1031 if (distance < 0) { 1032 clearInterval(counter); 1033 $counter.addClass(exprireCls); 1034 $counter.find('.message').css('display', 'block'); 1035 } else { 1036 // Output the result in elements 1037 s$('.day').html(addZero(days)) 1038 s$('.hour').html(addZero(hours)) 1039 s$('.minute').html(addZero(minutes)) 1040 s$('.seconds').html(addZero(seconds)) 1041 } 1042 }, 1000); 1043 }) 1044 } 1045 1046 if ($('.countup').length) { 1047 $('.countup').countdown(); 1048 } 1049 1050 }); 1051 1052 // Counter Up 1053 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorcounterup.default', function ($scope) { 1054 let $counter = $scope.find('.counter'); 1055 $counter.counterUp({ 1056 delay: 10, 1057 time: 1000 1058 }); 1059 }); 1060 1061 // About Counter Up 1062 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatoraboutus.default', function ($scope) { 1063 let $aboutcounter = $scope.find('.counter'); 1064 $aboutcounter.counterUp({ 1065 delay: 10, 1066 time: 1000 1067 }); 1068 }); 1069 1070 // Testimonial Slider 1071 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatortestimonialslider.default', function ($scope) { 1072 1073 let $slickcarousels = $scope.find('.vs-carousel'); 1074 $slickcarousels.not('.slick-initialized').slick({ 1075 dots: $slickcarousels.data('dots'), 1076 infinite: true, 1077 arrows: $slickcarousels.data('arrows'), 1078 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 1079 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 1080 autoplay: true, 1081 autoplaySpeed: 6000, 1082 fade: $slickcarousels.data('fade'), 1083 speed: 1000, 1084 slidesToShow: $slickcarousels.data('slidetoshow'), 1085 asNavFor: ($slickcarousels.data('asnavfor') ? $slickcarousels.data('asnavfor') : false), 1086 slidesToScroll: 1, 1087 focusOnSelect: true, 1088 responsive: [{ 1089 breakpoint: 768, 1090 settings: { 1091 slidesToShow: $slickcarousels.data('sm-slidetoshow'),
1092 arrows: false, 1093 } 1094 }, 1095 ] 1096 }); 1097 1098 let $slickcarouselsimg = $scope.find('.testimonial-author-image1'); 1099 $slickcarouselsimg.not('.slick-initialized').slick({ 1100 dots: false, 1101 infinite: true, 1102 arrows: false, 1103 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 1104 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 1105 autoplay: true, 1106 autoplaySpeed: 6000, 1107 speed: 1000, 1108 slidesToShow: 6, 1109 asNavFor: $slickcarouselsimg.data('asnavfor'), 1110 adaptiveHeight: true, 1111 variableWidth: true, 1112 slidesToScroll: 1, 1113 focusOnSelect: true, 1114 }); 1115 1116 let $slickcarouseltext = $scope.find('.testimonial-author-box1'); 1117 $slickcarouseltext.not('.slick-initialized').slick({ 1118 dots: false, 1119 infinite: true, 1120 arrows: true, 1121 prevArrow: '<button type="button" class="slick-prev"><i class="far fa-arrow-left"></i></button>', 1122 nextArrow: '<button type="button" class="slick-next"><i class="far fa-arrow-right"></i></button>', 1123 autoplay: true, 1124 autoplaySpeed: 6000, 1125 speed: 1000, 1126 fade: $slickcarouseltext.data('fade'), 1127 slidesToShow: $slickcarouseltext.data('slidetoshow'), 1128 asNavFor: $slickcarouseltext.data('asnavfor'), 1129 slidesToScroll: 1, 1130 focusOnSelect: true, 1131 }); 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 }); 1144 1145 1146 // google map 1147 elementorFrontend.hooks.addAction('frontend/element_ready/grillinatorgooglemap.default', function ($scope) { 1148 var $map = $scope.find('[data-trigger="map"]'); 1149 1150 if ($map.length) { 1151 // Map Initialization 1152 window.initMap = function () { 1153 $map.css('min-height', '640px'); 1154 1155 var map, lat, lng, zoom; 1156 lat = parseFloat($map.data('latitude'), 10); 1157 lng = parseFloat($map.data('longitude'), 10); 1158 zoom = parseFloat($map.data('zoom'), 10); 1159 1160 map = new google.maps.Map($map[0], { 1161 center: { lat: lat, lng: lng }, 1162 zoom: zoom, 1163 scrollwheel: false, 1164 disableDefaultUI: true, 1165 zoomControl: true, 1166 styles: [{ 1167 "featureType": "water", 1168 "elementType": "geometry", 1169 "stylers": [{ 1170 "color": "#e9e9e9" 1171 }, { 1172 "lightness": 17 1173 }] 1174 }, { 1175 "featureType": "landscape", 1176 "elementType": "geometry", 1177 "stylers": [{ 1178 "color": "#f5f5f5" 1179 }, { 1180 "lightness": 20 1181 }] 1182 }, { 1183 "featureType": "road.highway", 1184 "elementType": "geometry.fill", 1185 "stylers": [{ 1186 "color": "#ffffff" 1187 }, { 1188 "lightness": 17 1189 }] 1190 }, { 1191 "featureType": "road.highway", 1192 "elementType": "geometry.stroke", 1193 "stylers": [{ 1194 "color": "#ffffff" 1195 }, { 1196 "lightness": 29 1197 }, { 1198 "weight": .2 1199 }] 1200 }, { 1201 "featureType": "road.arterial", 1202 "elementType": "geometry", 1203 "stylers": [{ 1204 "color": "#ffffff" 1205 }, { 1206 "lightness": 18 1207 }] 1208 }, { 1209 "featureType": "road.local", 1210 "elementType": "geometry", 1211 "stylers": [{ 1212 "color": "#ffffff" 1213 }, { 1214 "lightness": 16 1215 }] 1216 }, { 1217 "featureType": "poi", 1218 "elementType": "geometry", 1219 "stylers": [{ 1220 "color": "#f5f5f5" 1221 }, { 1222 "lightness": 21 1223 }] 1224 }, { 1225 "featureType": "poi.park", 1226 "elementType": "geometry", 1227 "stylers": [{ 1228 "color": "#dedede" 1229 }, { 1230 "lightness": 21 1231 }] 1232 }, { 1233 "elementType": "labels.text.stroke", 1234 "stylers": [{ 1235 "visibility": "on" 1236 }, { 1237 "color": "#ffffff" 1238 }, { 1239 "lightness": 16 1240 }] 1241 }, { 1242 "elementType": "labels.text.fill", 1243 "stylers": [{ 1244 "saturation": 36 1245 }, { 1246 "color": "#333333" 1247 }, { 1248 "lightness": 40 1249 }] 1250 }, { 1251 "elementType": "labels.icon", 1252 "stylers": [{ 1253 "visibility": "off" 1254 }] 1255 }, { 1256 "featureType": "transit", 1257 "elementType": "geometry", 1258 "stylers": [{ 1259 "color": "#f2f2f2" 1260 }, { 1261 "lightness": 19 1262 }] 1263 }, { 1264 "featureType": "administrative", 1265 "elementType": "geometry.fill", 1266 "stylers": [{ 1267 "color": "#fefefe" 1268 }, { 1269 "lightness": 20 1270 }] 1271 }, { 1272 "featureType": "administrative", 1273 "elementType": "geometry.stroke", 1274 "stylers": [{ 1275 "color": "#fefefe" 1276 }, { 1277 "lightness": 17 1278 }, { 1279 "weight": 1.2 1280 }] 1281 }] 1282 }); 1283 1284 map = new google.maps.Marker({ 1285 position: { lat: lat, lng: lng }, 1286 map: map, 1287 animation: google.maps.Animation.DROP, 1288 draggable: false, 1289 icon: $map.data('marker') 1290 }); 1291 1292 }; 1293 initMap();
1294 }; 1295 }); 1296 1297 1298 }); 1299}(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.