1(function($) { 2 3 "use strict"; 4 5 6 var banner_carousel = function($scope, $) { 7 if ($('.banner-carousel').length) { 8 $('.banner-carousel').owlCarousel({ 9 loop:true, 10 animateOut: 'fadeOut', 11 animateIn: 'fadeIn', 12 margin:0, 13 nav:true, 14 smartSpeed: 1000, 15 autoplay: 8000, 16 autoplayTimeout:8000, 17 navText: [ '<span class="icon flaticon-arrows-1"></span>', '<span class="icon flaticon-right-arrow"></span>' ], 18 responsive:{ 19 0:{ 20 items:1 21 }, 22 600:{ 23 items:1 24 }, 25 800:{ 26 items:1 27 }, 28 1024:{ 29 items:1 30 } 31 } 32 }); 33 } 34 35 } 36 37 var banner_carousel_two = function($scope, $) { 38 if ($('.banner-carousel-two').length) { 39 $('.banner-carousel-two').owlCarousel({ 40 loop:true, 41 animateOut: 'fadeOut', 42 animateIn: 'fadeIn', 43 margin:0, 44 nav:true, 45 smartSpeed: 500, 46 autoplay: 7000, 47 autoplayTimeout:7000, 48 navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ], 49 responsive:{ 50 0:{ 51 items:1 52 }, 53 600:{ 54 items:1 55 }, 56 800:{ 57 items:1 58 }, 59 1024:{ 60 items:1 61 } 62 } 63 }); 64 } 65 66 } 67 68 var team_carousel = function($scope, $) { 69 if ($('.team-carousel').length) { 70 $('.team-carousel').owlCarousel({ 71 loop:true, 72 margin:0, 73 nav:true, 74 smartSpeed: 500, 75 autoplay: 5000, 76 autoplayTimeout:5000, 77 navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ], 78 responsive:{ 79 0:{ 80 items:1 81 }, 82 600:{ 83 items:2 84 }, 85 768:{ 86 items:3 87 }, 88 1024:{ 89 items:3 90 }, 91 1200:{ 92 items:4 93 } 94 } 95 }); 96 } 97 98 } 99 100 var news_carousel = function($scope, $) { 101 102 if ($('.news-carousel').length) { 103 $('.news-carousel').owlCarousel({ 104 loop:false, 105 margin:30, 106 nav:true, 107 smartSpeed: 500, 108 autoplay: 5000, 109 autoplayTimeout:5000, 110 navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ], 111 responsive:{ 112 0:{ 113 items:1 114 }, 115 600:{ 116 items:1 117 }, 118 768:{ 119 items:2 120 }, 121 1024:{ 122 items:3 123 }, 124 1200:{ 125 items:3 126 } 127 } 128 }); 129 } 130 131 } 132 133 var testimonial_carousel = function($scope, $) { 134 135 if ($('.testimonial-carousel').length) { 136 $('.testimonial-carousel').owlCarousel({ 137 loop:true, 138 margin:30, 139 nav:true, 140 smartSpeed: 500, 141 autoplay: 5000, 142 autoplayTimeout:5000, 143 navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ], 144 responsive:{ 145 0:{ 146 items:1 147 }, 148 600:{ 149 items:1 150 }, 151 768:{ 152 items:1 153 }, 154 1024:{ 155 items:1 156 } 157 } 158 }); 159 } 160 161 } 162 163 var testimonial_carousel = function($scope, $) { 164 165 if ($('.testimonial-carousel').length) { 166 $('.testimonial-carousel').owlCarousel({ 167 loop:true, 168 margin:30, 169 nav:true, 170 smartSpeed: 500, 171 autoplay: 5000, 172 autoplayTimeout:5000, 173 navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ], 174 responsive:{ 175 0:{ 176 items:1 177 }, 178 600:{ 179 items:1 180 }, 181 768:{ 182 items:1 183 }, 184 1024:{ 185 items:1 186 } 187 } 188 }); 189 } 190 191 } 192 193 var departments_carousel = function($scope, $) { 194 195 if ($('.departments-carousel').length) { 196 $('.departments-carousel').owlCarousel({ 197 loop:false, 198 margin:30, 199 nav:true, 200 smartSpeed: 500, 201 autoplay: 5000, 202 autoplayTimeout:5000, 203 navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ], 204 responsive:{ 205 0:{ 206 items:1 207 }, 208 600:{ 209 items:1 210 }, 211 768:{ 212 items:2 213 }, 214 1024:{ 215 items:3 216 }, 217 1200:{ 218 items:3 219 } 220 } 221 }); 222 } 223 224 } 225 226 var reviews_carousel = function($scope, $) { 227 228 if ($('.reviews-carousel').length) { 229 $('.reviews-carousel').owlCarousel({ 230 loop:true, 231 margin:30, 232 nav:true, 233 smartSpeed: 500, 234 autoplay: 5000, 235 autoplayTimeout:5000, 236 navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ], 237 responsive:{ 238 0:{ 239 items:1 240 }, 241 600:{ 242 items:1 243 }, 244 768:{ 245 items:2 246 }, 247 1024:{ 248 items:2 249 }, 250 1200:{ 251 items:3 252 } 253 } 254 }); 255 } 256 257 } 258 259 var featured_carousel = function($scope, $) { 260 261 if ($('.featured-carousel').length) { 262 $('.featured-carousel').owlCarousel({ 263 loop:true, 264 center:true, 265 margin:2, 266 nav:true, 267 dots:false, 268 smartSpeed: 500, 269 autoplay: 5000, 270 autoplayTimeout:5000, 271 navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ], 272 responsive:{ 273 0:{ 274 items:1, 275 center:false 276 }, 277 600:{ 278 items:1, 279 center:false 280 }, 281 768:{ 282 items:2, 283 center:false 284 }, 285 1024:{ 286 items:2, 287 center:false 288 }, 289 1200:{ 290 items:3 291 } 292 } 293 }); 294 } 295 296 } 297 298 var hi_carousel = function($scope, $) { 299 300 if ($('.hi-carousel').length) { 301 $('.hi-carousel').on('initialized.owl-carousel translate.owl-carousel', function(e){
302 idx = e.item.index; 303 $('.owl-item.inview').removeClass('inview'); 304 $('.owl-item.previous').removeClass('previous'); 305 $('.owl-item').eq(idx).addClass('inview'); 306 $('.owl-item').eq(idx-1).addClass('previous'); 307 }); 308 $('.hi-carousel').owlCarousel({ 309 center: true, 310 loop:true, 311 margin:50, 312 autoplay: true, 313 autoPlay: 5000, 314 dots:false, 315 nav:true, 316 navText: [ '<span class="icon flaticon-left-1"></span>', '<span class="icon flaticon-right-1"></span>' ], 317 responsive:{ 318 0:{ 319 items:1 320 }, 321 600:{ 322 items:1 323 }, 324 768:{ 325 items:1 326 }, 327 1024:{ 328 items:1 329 } 330 } 331 }) 332 } 333 334 } 335 336 337 338 var guest_carousel = function($scope, $) { 339 340 if ($('.guest-carousel').length) { 341 $('.guest-carousel').owlCarousel({ 342 loop:true, 343 margin:30, 344 nav:true, 345 smartSpeed: 700, 346 autoplay: 5000, 347 autoplayTimeout:5000, 348 navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ], 349 responsive:{ 350 0:{ 351 items:1 352 }, 353 600:{ 354 items:1 355 }, 356 800:{ 357 items:2 358 }, 359 1024:{ 360 items:2 361 }, 362 1200:{ 363 items:2 364 } 365 } 366 }); 367 } 368 369 370 } 371 372 var single_item_carousel = function($scope, $) { 373 374 if ($('.single-item-carousel').length) { 375 $('.single-item-carousel').owlCarousel({ 376 loop:true, 377 margin:10, 378 nav:true, 379 smartSpeed: 500, 380 autoplay: 5000, 381 autoplayTimeout:5000, 382 navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ], 383 responsive:{ 384 0:{ 385 items:1 386 }, 387 600:{ 388 items:1 389 }, 390 800:{ 391 items:1 392 }, 393 1024:{ 394 items:1 395 } 396 } 397 }); 398 } 399 400 401 } 402 403 var loadmore_gallery_one = function($scope, $) { 404 405 if($('.filter-list').length){ 406 $('.filter-list').mixItUp({}); 407 } 408 409 //3 Column Load More Mixitup Gallery With Filters 410 if($('.loadmore-gallery-one .filter-gallery-one').length){ 411 412 $(".loadmore-gallery-one .filter-gallery-one").mixItUp({ 413 selectors: { 414 target: ".mix" // As in mixitup 415 }, 416 layout: { 417 display: "inline-block" // As in mixitup 418 }, 419 loadmore: { 420 // The number of items to start with 421 initial: 9, 422 // The number of items to load on click on the loadmore button 423 loadMore: 3, 424 // A selector string for the existing wrapper the buttons will be inserted into 425 buttonWrapper: ".loadmore", 426 // The class of the Load more button 427 buttonClass: "loadmore-button", 428 // The label of the Load more button 429 buttonLabel: "Load More", 430 // The class of the less button 431 lessClass: "loadmore-less", 432 // The label of the less button 433 lessLabel: "Show Less" 434 } 435 }); 436 } 437 438 439 } 440 441 442 var sortableMasonryallery = function($scope, $) { 443 444 function sortableMasonry() { 445 if($('.sortable-masonry').length){ 446 447 var winDow = $(window); 448 // Needed variables 449 var $container=$('.sortable-masonry .items-container'); 450 var $filter=$('.filter-btns'); 451 452 $container.isotope({ 453 filter:'*', 454 masonry: { 455 columnWidth : '.masonry-item.col-lg-4' 456 }, 457 animationOptions:{ 458 duration:500, 459 easing:'linear' 460 } 461 }); 462 463 464 // Isotope Filter 465 $filter.find('li').on('click', function(){ 466 var selector = $(this).attr('data-filter'); 467 468 try { 469 $container.isotope({ 470 filter : selector, 471 animationOptions: { 472 duration: 500, 473 easing : 'linear', 474 queue : false 475 } 476 }); 477 } catch(err) { 478 479 } 480 return false; 481 }); 482 483 484 winDow.on('resize', function(){ 485 var selector = $filter.find('li.active').attr('data-filter'); 486 487 $container.isotope({ 488 filter : selector, 489 animationOptions: { 490 duration: 500, 491 easing : 'linear', 492 queue : false 493 } 494 }); 495 }); 496 497 498 var filterItemA = $('.filter-btns li'); 499 500 filterItemA.on('click', function(){ 501 var $this = $(this); 502 if ( !$this.hasClass('active')) { 503 filterItemA.removeClass('active'); 504 $this.addClass('active'); 505 } 506 }); 507 } 508 } 509 sortableMasonry(); 510 511 512 } 513 514 515 516 517 518 var progressBar = function($scope, $) {
519 var delay = 500; 520 $(".progress-bar").each(function(i) { 521 $(this).delay(delay * i).animate({ width: $(this).attr('aria-valuenow') + '%' }, delay); 522 523 $(this).prop('Counter', 0).animate({ 524 Counter: $(this).text() 525 }, { 526 duration: delay, 527 easing: 'swing', 528 step: function(now) { 529 $(this).text(Math.ceil(now) + '%'); 530 } 531 }); 532 }); 533 } 534 535 var citygovt_welcome = function($scope, $) { 536 if ($('.three_items').length) { 537 $('.three_items').owlCarousel({ 538 loop: true, 539 margin: 30, 540 nav: true, 541 smartSpeed: 500, 542 autoplay: 5000, 543 autoplayTimeout: 5000, 544 navText: ['<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>'], 545 responsive: { 546 0: { 547 items: 1 548 }, 549 600: { 550 items: 1 551 }, 552 768: { 553 items: 2 554 }, 555 1024: { 556 items: 3 557 }, 558 1200: { 559 items: 3 560 } 561 } 562 }); 563 } 564 } 565 566 567 //Elementor JS Hooks 568 $(window).on('elementor/frontend/init', function() { 569 elementorFrontend.hooks.addAction('frontend/element_ready/slider_banner.default', banner_carousel); 570 elementorFrontend.hooks.addAction('frontend/element_ready/slider_banner.default', banner_carousel_two); 571 572 elementorFrontend.hooks.addAction('frontend/element_ready/citygovtteam.default', team_carousel); 573 elementorFrontend.hooks.addAction('frontend/element_ready/city_govt_blogs.default', news_carousel); 574 elementorFrontend.hooks.addAction('frontend/element_ready/citygovt_testimonial.default', testimonial_carousel); 575 576 elementorFrontend.hooks.addAction('frontend/element_ready/citygovt_department.default', departments_carousel); 577 elementorFrontend.hooks.addAction('frontend/element_ready/citygovt_testimonial.default', reviews_carousel); 578 579 elementorFrontend.hooks.addAction('frontend/element_ready/citygovt_highlight.default', featured_carousel); 580 elementorFrontend.hooks.addAction('frontend/element_ready/citygovt_highlight.default', hi_carousel); 581 elementorFrontend.hooks.addAction('frontend/element_ready/CitygovtEventGuest.default', guest_carousel); 582 583 elementorFrontend.hooks.addAction('frontend/element_ready/department_carosel.default', single_item_carousel); 584 elementorFrontend.hooks.addAction('frontend/element_ready/masonary_gallery1.default', loadmore_gallery_one); 585 586 elementorFrontend.hooks.addAction('frontend/element_ready/masonary_gallery1.default', sortableMasonryallery); 587 elementorFrontend.hooks.addAction('frontend/element_ready/ProgressSkill.default', progressBar); 588 elementorFrontend.hooks.addAction('frontend/element_ready/citygovt_welcome.default', citygovt_welcome); 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 }); 604 605})(window.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.