1(function($) { 2 "use strict"; 3 4 5 // Lazyload Images 6 var mainSlider = function($scope, $) { 7 if(!$('.banner-slider').hasClass('slick-initialized')){ 8 if ($('.banner-slider').length > 0) { 9 $('.banner-slider').slick({ 10 slidesToShow: 2, 11 slidesToScroll: 2, 12 autoplay: true, 13 dots: false, 14 arrows: false, 15 autoplaySpeed: 4000, 16 infinite: true, 17 responsive: [{ 18 breakpoint: 1200, 19 settings: { 20 slidesToShow: 2, 21 slidesToScroll: 2 22 } 23 }, 24 { 25 breakpoint: 991, 26 settings: { 27 slidesToShow: 2, 28 slidesToScroll: 2 29 } 30 }, 31 { 32 breakpoint: 768, 33 settings: { 34 slidesToShow: 2, 35 slidesToScroll: 2 36 } 37 }, 38 { 39 breakpoint: 576, 40 settings: { 41 slidesToShow: 2, 42 slidesToScroll: 2 43 } 44 }, 45 { 46 breakpoint: 480, 47 settings: { 48 slidesToShow: 1, 49 slidesToScroll: 1 50 } 51 } 52 // You can unslick at a given breakpoint now by adding: 53 // settings: "unslick" 54 // instead of a settings object 55 ] 56 }); 57 } 58 } 59 }; 60 61 var serviceTabSlider = function($scope, $) { 62 if(!$('.srvs_slider').hasClass('slick-initialized')){ 63 if ($('.srvs_slider').length) { 64 $('.srvs_slider').slick({ 65 slidesToShow: 5, 66 slidesToScroll: 2, 67 autoplay: false, 68 dots: true, 69 arrows: false, 70 autoplay: true, 71 autoplaySpeed: 5000, 72 infinite: true, 73 responsive: [{ 74 breakpoint: 1366, 75 settings: { 76 slidesToShow: 4, 77 slidesToScroll: 3 78 } 79 }, 80 { 81 breakpoint: 1200, 82 settings: { 83 slidesToShow: 3, 84 slidesToScroll: 3 85 } 86 }, 87 { 88 breakpoint: 991, 89 settings: { 90 slidesToShow: 3, 91 slidesToScroll: 3, 92 arrows: false 93 } 94 }, 95 { 96 breakpoint: 768, 97 settings: { 98 slidesToShow: 2, 99 slidesToScroll: 2, 100 dots: true 101 } 102 }, 103 { 104 breakpoint: 576, 105 settings: { 106 slidesToShow: 2, 107 slidesToScroll: 2, 108 dots: true 109 } 110 }, 111 { 112 breakpoint: 480, 113 settings: { 114 slidesToShow: 1, 115 slidesToScroll: 1, 116 dots: true, 117 vertical: false, 118 autoplay: false, 119 draggable: false, 120 swipeToSlide: false 121 } 122 } 123 // You can unslick at a given breakpoint now by adding: 124 // settings: "unslick" 125 // instead of a settings object 126 ] 127 }); 128 } 129 } 130 }; 131 132 var blogCarousel = function($scope, $) { 133 if(!$('.blog_carousel').hasClass('slick-initialized')){ 134 if ($('.blog_carousel').length) { 135 $('.blog_carousel').slick({ 136 slidesToShow: 3, 137 slidesToScroll: 3, 138 autoplay: true, 139 dots: true, 140 arrows: true, 141 autoplaySpeed: 2000, 142 infinite: true, 143 responsive: [{ 144 breakpoint: 1200, 145 settings: { 146 slidesToShow: 3, 147 slidesToScroll: 3 148 } 149 }, 150 { 151 breakpoint: 991, 152 settings: { 153 slidesToShow: 2, 154 slidesToScroll: 2,
155 arrows: false 156 } 157 }, 158 { 159 breakpoint: 768, 160 settings: { 161 slidesToShow: 2, 162 slidesToScroll: 2, 163 dots: true 164 } 165 }, 166 { 167 breakpoint: 576, 168 settings: { 169 slidesToShow: 1, 170 slidesToScroll: 1, 171 dots: true 172 } 173 }, 174 { 175 breakpoint: 480, 176 settings: { 177 slidesToShow: 1, 178 slidesToScroll: 1, 179 dots: true 180 } 181 } 182 // You can unslick at a given breakpoint now by adding: 183 // settings: "unslick" 184 // instead of a settings object 185 ] 186 }); 187 } 188 } 189 }; 190 191 192 193 var testiCarousel = function($scope, $) { 194 if(!$('.testi_carousel').hasClass('slick-initialized')){ 195 if ($('.testi_carousel').length) { 196 $('.testi_carousel').slick({ 197 slidesToShow: 1, 198 slidesToScroll: 1, 199 autoplay: false, 200 dots: true, 201 arrows: false, 202 autoplay: false, 203 autoplaySpeed: 2000, 204 infinite: true, 205 responsive: [{ 206 breakpoint: 1200, 207 settings: { 208 slidesToShow: 1, 209 slidesToScroll: 1 210 } 211 }, 212 { 213 breakpoint: 991, 214 settings: { 215 slidesToShow: 1, 216 slidesToScroll: 2, 217 arrows: false 218 } 219 }, 220 { 221 breakpoint: 768, 222 settings: { 223 slidesToShow: 1, 224 slidesToScroll: 1, 225 dots: true, 226 arrows: false 227 } 228 }, 229 { 230 breakpoint: 576, 231 settings: { 232 slidesToShow: 1, 233 slidesToScroll: 1, 234 dots: true, 235 arrows: false 236 } 237 }, 238 { 239 breakpoint: 480, 240 settings: { 241 slidesToShow: 1, 242 slidesToScroll: 1, 243 dots: true, 244 arrows: false 245 } 246 } 247 // You can unslick at a given breakpoint now by adding: 248 // settings: "unslick" 249 // instead of a settings object 250 ] 251 }); 252 } 253 } 254 }; 255 256 257 258 var ptCarousel = function($scope, $) { 259 if(!$('.pt_carousel').hasClass('slick-initialized')){ 260 if ($('.pt_carousel').length) { 261 $('.pt_carousel').slick({ 262 slidesToShow: 6, 263 slidesToScroll: 2, 264 autoplay: false, 265 dots: true, 266 arrows: true, 267 autoplay: true, 268 variableWidth: true, 269 autoplaySpeed: 2000, 270 infinite: true, 271 responsive: [{ 272 breakpoint: 1200, 273 settings: { 274 slidesToShow: 6, 275 slidesToScroll: 1 276 } 277 }, 278 { 279 breakpoint: 991, 280 settings: { 281 slidesToShow: 6, 282 slidesToScroll: 3,
283 arrows: false 284 } 285 }, 286 { 287 breakpoint: 768, 288 settings: { 289 slidesToShow: 3, 290 slidesToScroll: 1, 291 dots: true 292 } 293 }, 294 { 295 breakpoint: 576, 296 settings: { 297 slidesToShow: 2, 298 slidesToScroll: 1, 299 dots: true 300 } 301 }, 302 { 303 breakpoint: 480, 304 settings: { 305 slidesToShow: 1, 306 slidesToScroll: 1, 307 dots: true 308 } 309 } 310 // You can unslick at a given breakpoint now by adding: 311 // settings: "unslick" 312 // instead of a settings object 313 ] 314 }); 315 } 316 } 317 }; 318 319 320 321 var team_carousel = function($scope, $) { 322 if(!$('.team_carousel').hasClass('slick-initialized')){ 323 if ($('.team_carousel').length) { 324 $('.team_carousel').slick({ 325 slidesToShow: 3, 326 slidesToScroll: 1, 327 autoplay: false, 328 dots: true, 329 arrows: true, 330 autoplay: true, 331 autoplaySpeed: 2000, 332 infinite: true, 333 responsive: [{ 334 breakpoint: 1200, 335 settings: { 336 slidesToShow: 3, 337 slidesToScroll: 1 338 } 339 }, 340 { 341 breakpoint: 991, 342 settings: { 343 slidesToShow: 3, 344 slidesToScroll: 1 345 } 346 }, 347 { 348 breakpoint: 768, 349 settings: { 350 slidesToShow: 2, 351 slidesToScroll: 1, 352 dots: true 353 } 354 }, 355 { 356 breakpoint: 576, 357 settings: { 358 slidesToShow: 2, 359 slidesToScroll: 1, 360 dots: true 361 } 362 }, 363 { 364 breakpoint: 480, 365 settings: { 366 slidesToShow: 1, 367 slidesToScroll: 1, 368 dots: true 369 } 370 } 371 // You can unslick at a given breakpoint now by adding: 372 // settings: "unslick" 373 // instead of a settings object 374 ] 375 }); 376 } 377 } 378 }; 379 380 381 382 var bulbSlider = function($scope, $) { 383 if ($('.bulb-carousel').length) { 384 var bulb_obj = $('.bulb-carousel').data('slick'); 385 $('.bulb-carousel').slick({ 386 mobileFirst: JSON.parse(bulb_obj.mobile_first), 387 slidesToShow: parseInt(bulb_obj.slides_to_show), 388 slidesToScroll: parseInt(bulb_obj.slides_to_scroll), 389 infinite: JSON.parse(bulb_obj.infinite), 390 autoplay: JSON.parse(bulb_obj.autoplay), 391 autoplaySpeed: parseInt(bulb_obj.autoplay_speed), 392 arrows: JSON.parse(bulb_obj.arrows), 393 dots: JSON.parse(bulb_obj.dots), 394 responsive: [{ 395 breakpoint: 991, 396 settings: { 397 slidesToShow: 2 398 }, 399 }, 400 { 401 breakpoint: 767, 402 settings: { 403 slidesToShow: 2 404 }, 405 }, 406 { 407 breakpoint: 480, 408 settings: { 409 slidesToShow: 1 410 }, 411 } 412 ] 413 }); 414 } 415 }; 416 417 var testimonials_1 = function($scope, $) { 418 if ($('.testimonials-carousel').length) { 419 // slider 420 $('.testimonials-carousel').slick({ 421 mobileFirst: false, 422 slidesToShow: 1, 423 slidesToScroll: 1, 424 infinite: true, 425 autoplay: true, 426 autoplaySpeed: 5000, 427 //rtl: plugins.rtltrue,
428 arrows: false, 429 dots: true 430 }); 431 } 432 }; 433 434 var counterCarousel = function($scope, $) { 435 if ($('.counter-carousel').length) { 436 $('.counter-carousel').slick({ 437 mobileFirst: false, 438 slidesToShow: 4, 439 slidesToScroll: 1, 440 infinite: false, 441 autoplay: true, 442 autoplaySpeed: 4000, 443 arrows: false, 444 dots: true, 445 responsive: [{ 446 breakpoint: 991, 447 settings: { 448 slidesToShow: 2 449 }, 450 }, { 451 breakpoint: 767, 452 settings: { 453 slidesToShow: 2 454 }, 455 }, { 456 breakpoint: 480, 457 settings: { 458 slidesToShow: 1 459 }, 460 }] 461 }); 462 } 463 }; 464 465 var brandCarousel = function($scope, $) { 466 if ($('.counter-carousel').length) { 467 $('.counter-carousel').slick({ 468 mobileFirst: false, 469 slidesToShow: 7, 470 slidesToScroll: 1, 471 infinite: true, 472 autoplay: true, 473 autoplaySpeed: 2000, 474 //rtl: plugins.rtltrue, 475 arrows: false, 476 dots: true, 477 //variableWidth: !plugins.rtltrue, 478 responsive: [{ 479 breakpoint: 991, 480 settings: { 481 slidesToShow: 5 482 }, 483 }, 484 { 485 breakpoint: 767, 486 settings: { 487 slidesToShow: 3 488 }, 489 }, 490 { 491 breakpoint: 480, 492 settings: { 493 slidesToShow: 1, 494 arrows: false 495 }, 496 } 497 ] 498 }); 499 } 500 }; 501 502 503 $(window).on('elementor/frontend/init', function() { 504 elementorFrontend.hooks.addAction('frontend/element_ready/electrician-main-slider.default', mainSlider); 505 elementorFrontend.hooks.addAction('frontend/element_ready/centre-sevices_tabs.default', serviceTabSlider); 506 elementorFrontend.hooks.addAction('frontend/element_ready/elec_latest_news_2.default', blogCarousel); 507 elementorFrontend.hooks.addAction('frontend/element_ready/electrician-testimonials-2.default', testiCarousel); 508 elementorFrontend.hooks.addAction('frontend/element_ready/electrician-brands-2.default', ptCarousel); 509 elementorFrontend.hooks.addAction('frontend/element_ready/electrician-team-2.default', team_carousel); 510 }); 511})(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.