1jQuery(function ($) { 2 3 'use strict'; 4 5 6 // ------------------------------------------------------------- 7 // Sticky Menu 8 // ------------------------------------------------------------- 9 10 function menuSticky() { 11 var navHeight = $(".topper").height(); 12 13 ($(window).scrollTop() > navHeight) ? $('nav, .menu-toggle').addClass('sticky') : $('nav , .menu-toggle').removeClass('sticky'); 14 } 15 16 17 18 19 // ------------------------------------------------------------- 20 // Offcanvas Menu 21 // ------------------------------------------------------------- 22 23 (function () { 24 var menutoggle = $(".menu-toggle"); 25 var offcanvasmenu = $("#offcanvas-menu"); 26 var closemenu = $(".close-menu"); 27 28 menutoggle.on("click" ,function(){ 29 offcanvasmenu.addClass("toggled"); 30 return false; 31 }); 32 33 closemenu.on("click" ,function() { 34 offcanvasmenu.removeClass("toggled"); 35 return false; 36 }); 37 }()); 38 39 40 41 // ------------------------------------------------------------- 42 // Single-Page-Menu-Scrolling Easy Plugin 43 // ------------------------------------------------------------- 44 45 $(function() { 46 $('a.page-scroll').on('click', function(event) { 47 var $anchor = $(this); 48 $('html, body').stop().animate({ 49 scrollTop: $($anchor.attr('href')).offset().top 50 }, 1500, 'easeInOutExpo'); 51 event.preventDefault(); 52 }); 53 }); 54 55 56 // ------------------------------------------------------------- 57 // Sub-menu 58 // ------------------------------------------------------------- 59 if ( $('.dropmenu').length) { 60 $('.dropmenu').on("click" ,function(){ 61 $(this).parent().find('ul').slideToggle(); 62 return false; 63 }); 64 } 65 66 67 68 // ------------------------------------------------------------- 69 // Cart-Box-Open/Remove 70 // ------------------------------------------------------------- 71 72 (function() { 73 var openclose = $(".cart-wrapper"); 74 75 openclose.on("click" ,function() { 76 return $(this).toggleClass("open"); 77 }); 78 79 }()); 80 81 82 83 // ------------------------------------------------------------- 84 // Search Bar 85 // ------------------------------------------------------------- 86 87 (function () { 88 var openbar = $(".open-bar"); 89 var searchbar = $("#search-bar"); 90 var closebar = $(".close-bar"); 91 92 openbar.on("click" ,function(){ 93 searchbar.addClass("active"); 94 return false; 95 }); 96 97 closebar.on("click" ,function() { 98 searchbar.removeClass("active"); 99 return false; 100 }); 101 }()); 102 103 104 105 // ------------------------------------------------------------- 106 // Slider 107 // ------------------------------------------------------------- 108 109 jQuery('#rev_slider_1').show().revolution({ 110 sliderLayout: 'auto', 111 gridwidth: 1140, 112 gridheight: 815, 113 spinner:"off", 114 hideTimerBar:"on", 115 navigation: { 116 arrows: { 117 enable: true, 118 style: 'zeus', 119 hide_onleave: false, 120 hide_onmobile: true, 121 hide_under: 480 122 } 123 } 124 }); 125 126 127 jQuery('#rev_slider_2').show().revolution({ 128 sliderLayout: 'auto', 129 gridwidth: 1140, 130 gridheight: 815, 131 spinner:"off", 132 hideTimerBar:"on", 133 navigation: { 134 arrows: { 135 enable: true, 136 style: 'zeus', 137 hide_onleave: false, 138 hide_onmobile: true, 139 hide_under: 480 140 } 141 } 142 }); 143 144 145 jQuery('#rev_slider_4').show().revolution({ 146 sliderLayout: 'auto', 147 gridwidth: 1140, 148 gridheight: 840, 149 spinner:"off", 150 hideTimerBar:"on", 151 navigation: { 152 arrows: { 153 enable: true, 154 style: 'zeus', 155 hide_onleave: false, 156 hide_onmobile: true, 157 hide_under: 480 158 } 159 } 160 }); 161 162 163 jQuery('#rev_slider_5').show().revolution({ 164 sliderLayout: 'auto', 165 gridwidth: 1140, 166 gridheight: 860, 167 spinner:"off", 168 hideTimerBar:"on", 169 navigation: { 170 arrows: { 171 enable: true, 172 style: 'zeus', 173 hide_onleave: false, 174 hide_onmobile: true, 175 hide_under: 480 176 } 177 } 178 }); 179 180 181 182 jQuery('#rev_slider_6').show().revolution({ 183 sliderLayout: 'auto', 184 gridwidth: 1140, 185 gridheight: 900, 186 spinner:"off", 187 hideTimerBar:"on", 188 navigation: { 189 arrows: { 190 enable: true, 191 style: 'zeus', 192 hide_onleave: false, 193 hide_onmobile: true, 194 hide_under: 480 195 } 196 } 197 }); 198 199 200 201 // ------------------------------------------------------------- 202 // Accordion - call 203 // ------------------------------------------------------------- 204 205 if ($('#accordion').length) { 206 $( "#accordion" ).accordion(); 207 } 208 209 210 211 212 // ------------------------------------------------------------- 213 // LightBox-Js 214 // ------------------------------------------------------------- 215 216 if ($('#lightBox, #lightBox-2').length) { 217 $('#lightBox, #lightBox-2').poptrox({ 218 usePopupCaption: true, 219 usePopupNav: true, 220 popupPadding: 0 221 }); 222 } 223 224 225 226 // ------------------------------------------------------------- 227 // Achievement-Slider 228 // ------------------------------------------------------------- 229 230 $(".achievement-slide").owlCarousel({ 231 loop: true, 232 autoplay: true, 233 items: 1, 234 dots:true, 235 nav: false, 236 autoplayHoverPause: true, 237 animateOut: 'slideOutUp', 238 animateIn: 'slideInUp' 239 }); 240 241 242 243 244 // ------------------------------------------------------------- 245 // Boost-Slider 246 // ------------------------------------------------------------- 247 248 if ($('.boost-carousel').length) { 249 $('.boost-carousel').owlCarousel({ 250 loop:true, 251 autoplay:true, 252 autoplayTimeout: 3000, 253 margin:30, 254 dots:true, 255 nav:true, 256 navText : ["<i class='fa fa-chevron-left'></i>","<i class='fa fa-chevron-right'></i>"], 257 responsive:{ 258 0:{ 259 items:1, 260 nav:false, 261 dots:true, 262 margin:0, 263 }, 264 600:{ 265 items:2, 266 nav:true, 267 dots:true, 268 }, 269 1000:{ 270 items:3 271 } 272 } 273 }); 274 } 275 276 277 278 279 // -------------------------------------------------------------
280 // Team-Carousel-Slider 281 // ------------------------------------------------------------- 282 283 if ($('.team-carousel').length) { 284 $('.team-carousel').owlCarousel({ 285 loop:true, 286 autoplay:false, 287 autoplayTimeout: 3000, 288 margin:30, 289 nav:true, 290 dots:false, 291 navText : ["<i class='fa fa-chevron-left'></i>","<i class='fa fa-chevron-right'></i>"], 292 responsive:{ 293 0:{ 294 items:1, 295 nav:true, 296 dots:false, 297 }, 298 600:{ 299 items:2, 300 nav:true, 301 dots:false, 302 }, 303 1000:{ 304 items:4 305 } 306 } 307 }); 308 } 309 310 311 312 // ------------------------------------------------------------- 313 // Finance-Carousel-Slider 314 // ------------------------------------------------------------- 315 316 if ($('.finance-carousel').length) { 317 $('.finance-carousel').owlCarousel({ 318 loop:true, 319 autoplay:true, 320 autoplayTimeout: 3000, 321 margin:20, 322 nav:true, 323 dots:false, 324 navText : ["<i class='fa fa-chevron-left'></i>","<i class='fa fa-chevron-right'></i>"], 325 responsive:{ 326 0:{ 327 items:1, 328 nav:true, 329 dots:false, 330 }, 331 600:{ 332 items:2, 333 nav:true, 334 dots:false, 335 }, 336 1000:{ 337 items:4 338 } 339 } 340 }); 341 } 342 343 344 345 346 347 // ------------------------------------------------------------- 348 // Client-Slider 349 // ------------------------------------------------------------- 350 351 if ($('.client-carousel').length) { 352 $('.client-carousel').owlCarousel({ 353 loop:true, 354 autoplay:true, 355 autoplayTimeout: 2000, 356 margin:10, 357 nav:true, 358 responsive:{ 359 0:{ 360 items:1, 361 nav:false, 362 dots:true, 363 }, 364 600:{ 365 items:4, 366 nav:false, 367 dots:true, 368 }, 369 1000:{ 370 items:7 371 } 372 } 373 }); 374 } 375 376 377 378 379 //------------------------------------------------------- 380 // counter Section 381 //------------------------------------------------------- 382 383 function funFactCounting() { 384 if ($('.counting-section').length) { 385 $('.counting-section').on('inview', function(event, visible, visiblePartX, visiblePartY) { 386 if (visible) { 387 $(this).find('.timer').each(function () { 388 var $this = $(this); 389 $({ Counter: 0 }).animate({ Counter: $this.text() }, { 390 duration: 2000, 391 easing: 'linear', 392 step: function () { 393 $this.text(Math.ceil(this.Counter)); 394 } 395 }); 396 }); 397 398 $(this).off('inview'); 399 } 400 }); 401 } 402 } 403 404 405 406 407 // ------------------------------------------------------------- 408 // Progress Bar 409 // ------------------------------------------------------------- 410 411 function progressBar() { 412 $('.progressSection').on('inview', function(event, visible, visiblePartX, visiblePartY) { 413 if (visible) { 414 $.each($('div.progress-bar'),function(){ 415 $(this).css('width', $(this).attr('aria-valuenow')+'%'); 416 }); 417 $(this).off('inview'); 418 } 419 }); 420 } 421 422 423 424 425 // ------------------------------------------------------------- 426 // Google Map 427 // ------------------------------------------------------------- 428 429 if ($('#googleMap').length) { 430 google.maps.event.addDomListener(window, 'load', init); 431
432 function init() { 433 var mapOptions = { 434 // How zoomed in you want the map to start at (always required) 435 zoom: 14, 436 scrollwheel: false, 437 438 // The latitude and longitude to center the map (always required) 439 center: new google.maps.LatLng(41.966770, -71.186996), // New York 440 441 // This is where you would paste any style found on Snazzy Maps. 442 styles:[{"featureType": "all","elementType": "labels.text.fill","stylers": [{"saturation": 36},{"color": "#333333"},{"lightness": 40}]}, 443 {"featureType": "all","elementType": "labels.text.stroke","stylers": [{"visibility": "on"},{"color": "#ffffff"},{"lightness": 16}]}, 444 {"featureType": "all","elementType": "labels.icon","stylers": [{"visibility": "off"}]}, 445 {"featureType": "administrative","elementType": "geometry.fill","stylers": [{"color": "#fefefe"},{"lightness": 20}]}, 446 {"featureType": "administrative","elementType": "geometry.stroke","stylers": [{"color": "#fefefe"},{"lightness": 17},{"weight": 1.2}]}, 447 {"featureType": "landscape","elementType": "geometry","stylers": [{"color": "#f4f4f4"},{"lightness": 20}]}, 448 {"featureType": "poi","elementType": "geometry","stylers": [{"color": "#f4f4f4"},{"lightness": 21}]}, 449 {"featureType": "poi.park","elementType": "geometry","stylers": [{"color": "#48c7ec"},{"lightness": 21}]}, 450 {"featureType": "road.highway","elementType": "geometry.fill","stylers": [{"color": "#ffffff"},{"lightness": 17}]}, 451 {"featureType": "road.highway","elementType": "geometry.stroke","stylers": [{"color": "#ffffff"},{"lightness": 29},{"weight": 0.2}]}, 452 {"featureType": "road.arterial","elementType": "geometry","stylers": [{"color": "#ffffff"},{"lightness": 18}]}, 453 {"featureType": "road.local","elementType": "geometry","stylers": [{"color": "#ffffff"},{"lightness": 16}]}, 454 {"featureType": "transit","elementType": "geometry","stylers": [{"color": "#48c7ec"},{"lightness": 19}]}, 455 {"featureType": "water","elementType": "geometry","stylers": [{"color": "#a3ccff"},{"lightness": 17}]}]}; 456 457 // Get the HTML DOM element that will contain your map 458 var mapElement = document.getElementById('googleMap'); 459 460 // Create the Google Map using our element and options defined above 461 var map = new google.maps.Map(mapElement, mapOptions); 462 463 // Let's also add a marker while we're at it 464 var marker = new google.maps.Marker({ 465 position: new google.maps.LatLng(41.966770, -71.186996), 466 map: map, 467 title: 'Snazzy!' 468 }); 469 } 470 } 471 472 473 474 475 // ------------------------------------------------------------- 476 // Back To Top 477 // ------------------------------------------------------------- 478 479 function backToTopBtnAppear() { 480 if ($("#toTop").length) { 481 var windowpos = $(window).scrollTop(), 482 backToTopBtn = $("#toTop"); 483 484 if (windowpos > 300) { 485 backToTopBtn.fadeIn(); 486 } else { 487 backToTopBtn.fadeOut(); 488 } 489 } 490 } 491 492 function backToTop() { 493 if ($("#toTop").length) { 494 var backToTopBtn = $("#toTop"); 495 backToTopBtn.on("click", function() { 496 $("html, body").animate({ 497 scrollTop: 0 498 }, 1000); 499 500 return false; 501 }) 502 } 503 } 504 505 506 507 // ------------------------------------------------------------- 508 // Preloader 509 // ------------------------------------------------------------- 510 511 function preloader() { 512 if($('#preloader').length) { 513 $('#preloader').delay(100).fadeOut(500, function() {}); 514 } 515 } 516 517 518 519 520 // ------------------------------------------------------------- 521 // WHEN WINDOW LOAD 522 // ------------------------------------------------------------- 523 524 $(window).on("load", function() { 525 526 preloader(); 527 528 funFactCounting(); 529 530 backToTop(); 531 532 new WOW().init(); 533 534 progressBar(); 535 536 }) 537 538 539 540 // ------------------------------------------------------------- 541 // WHEN WINDOW SCROLL 542 // ------------------------------------------------------------- 543 $(window).on("scroll", function() { 544 545 backToTopBtnAppear(); 546 547 menuSticky(); 548 549 }); 550 551}); // Jquery-End
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.