1$(document).ready(function() { 2 "use strict"; 3 4 var window_width = $(window).width(), 5 window_height = window.innerHeight, 6 header_height = $(".default-header").height(), 7 header_height_static = $(".site-header.static").outerHeight(), 8 fitscreen = window_height - header_height; 9 10 $(".fullscreen").css("height", window_height) 11 $(".fitscreen").css("height", fitscreen); 12 13 //------- Niceselect js --------// 14 15 if (document.getElementById("default-select")) { 16 $('select').niceSelect(); 17 }; 18 if (document.getElementById("default-select2")) { 19 $('select').niceSelect(); 20 }; 21 if (document.getElementById("service-select")) { 22 $('select').niceSelect(); 23 }; 24 25 //------- Lightbox js --------// 26 27 $('.img-gal').magnificPopup({ 28 type: 'image', 29 gallery: { 30 enabled: true 31 } 32 }); 33 34 $('.play-btn').magnificPopup({ 35 type: 'iframe', 36 mainClass: 'mfp-fade', 37 removalDelay: 160, 38 preloader: false, 39 fixedContentPos: false 40 }); 41 42 //------- Datepicker js --------// 43 44 $( function() { 45 $( "#datepicker" ).datepicker(); 46 $( "#datepicker2" ).datepicker(); 47 } ); 48 49 50 //------- Superfist nav menu js --------// 51 52 $('.nav-menu').superfish({ 53 animation: { 54 opacity: 'show' 55 }, 56 speed: 400 57 }); 58 59 /* --------------------------------------------- 60 accordion 61 --------------------------------------------- */ 62 63 var allPanels = $(".accordion > dd").hide(); 64 allPanels.first().slideDown("easeOutExpo"); 65 $(".accordion").each(function() { 66 $(this).find("dt > a").first().addClass("active").parent().next().css({ 67 display: "block" 68 }); 69 }); 70 71 72 $(document).on('click', '.accordion > dt > a', function(e) { 73 74 var current = $(this).parent().next("dd"); 75 $(this).parents(".accordion").find("dt > a").removeClass("active"); 76 $(this).addClass("active"); 77 $(this).parents(".accordion").find("dd").slideUp("easeInExpo"); 78 $(this).parent().next().slideDown("easeOutExpo"); 79 80 return false; 81 82 }); 83 84 //------- Tabs Js --------// 85 if (document.getElementById("horizontalTab")) { 86 87 $('#horizontalTab').jqTabs({ 88 direction: 'horizontal', 89 duration: 200 90 }); 91 92 }; 93 94 95 //------- Owl Carusel js --------// 96 97 98 $('.active-popular-carusel').owlCarousel({ 99 items:4, 100 margin: 30, 101 loop:true, 102 dots: true, 103 autoplayHoverPause: true, 104 smartSpeed:650, 105 autoplay:true, 106 responsive: { 107 0: { 108 items: 1 109 }, 110 480: { 111 items: 1, 112 }, 113 768: { 114 items: 2, 115 }, 116 992: { 117 items:4 118 } 119 } 120 }); 121 122 $('.active-upcoming-event-carusel').owlCarousel({ 123 items:2, 124 margin: 30, 125 loop:true, 126 dots: true, 127 autoplayHoverPause: true, 128 smartSpeed:650, 129 autoplay:true, 130 responsive: { 131 0: { 132 items: 1 133 }, 134 480: { 135 items: 1, 136 }, 137 992: { 138 items: 2, 139 } 140 } 141 }); 142 143 144 $('.active-review-carusel').owlCarousel({ 145 items:2, 146 margin: 30, 147 loop:true, 148 dots: true, 149 autoplayHoverPause: true, 150 smartSpeed:650, 151 autoplay:true, 152 responsive: { 153 0: { 154 items: 1 155 }, 156 480: { 157 items: 1, 158 }, 159 768: { 160 items: 2, 161 } 162 } 163 }); 164 165 //------- Mobile Nav js --------// 166 167 if ($('#nav-menu-container').length) { 168 var $mobile_nav = $('#nav-menu-container').clone().prop({ 169 id: 'mobile-nav' 170 }); 171 $mobile_nav.find('> ul').attr({ 172 'class': '', 173 'id': '' 174 }); 175 $('body').append($mobile_nav); 176 $('body').prepend('<button type="button" id="mobile-nav-toggle"><i class="lnr lnr-menu"></i></button>'); 177 $('body').append('<div id="mobile-body-overly"></div>'); 178 $('#mobile-nav').find('.menu-has-children').prepend('<i class="lnr lnr-chevron-down"></i>'); 179 180 $(document).on('click', '.menu-has-children i', function(e) { 181 $(this).next().toggleClass('menu-item-active'); 182 $(this).nextAll('ul').eq(0).slideToggle(); 183 $(this).toggleClass("lnr-chevron-up lnr-chevron-down"); 184 }); 185 186 $(document).on('click', '#mobile-nav-toggle', function(e) { 187 $('body').toggleClass('mobile-nav-active'); 188 $('#mobile-nav-toggle i').toggleClass('lnr-cross lnr-menu'); 189 $('#mobile-body-overly').toggle(); 190 }); 191 192 $(document).on('click', function(e) { 193 var container = $("#mobile-nav, #mobile-nav-toggle"); 194 if (!container.is(e.target) && container.has(e.target).length === 0) { 195 if ($('body').hasClass('mobile-nav-active')) { 196 $('body').removeClass('mobile-nav-active'); 197 $('#mobile-nav-toggle i').toggleClass('lnr-cross lnr-menu'); 198 $('#mobile-body-overly').fadeOut(); 199 } 200 } 201 }); 202 } else if ($("#mobile-nav, #mobile-nav-toggle").length) { 203 $("#mobile-nav, #mobile-nav-toggle").hide(); 204 } 205 206 //------- Smooth Scroll js --------// 207 208 $('.nav-menu a, #mobile-nav a, .scrollto').on('click', function() {
209 if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { 210 var target = $(this.hash); 211 if (target.length) { 212 var top_space = 0; 213 214 if ($('#header').length) { 215 top_space = $('#header').outerHeight(); 216 217 if (!$('#header').hasClass('header-fixed')) { 218 top_space = top_space; 219 } 220 } 221 222 $('html, body').animate({ 223 scrollTop: target.offset().top - top_space 224 }, 1500, 'easeInOutExpo'); 225 226 if ($(this).parents('.nav-menu').length) { 227 $('.nav-menu .menu-active').removeClass('menu-active'); 228 $(this).closest('li').addClass('menu-active'); 229 } 230 231 if ($('body').hasClass('mobile-nav-active')) { 232 $('body').removeClass('mobile-nav-active'); 233 $('#mobile-nav-toggle i').toggleClass('lnr-times lnr-bars'); 234 $('#mobile-body-overly').fadeOut(); 235 } 236 return false; 237 } 238 } 239 }); 240 241 $(document).ready(function() { 242 243 $('html, body').hide(); 244 245 if (window.location.hash) { 246 247 setTimeout(function() { 248 249 $('html, body').scrollTop(0).show(); 250 251 $('html, body').animate({ 252 253 scrollTop: $(window.location.hash).offset().top - 108 254 255 }, 1000) 256 257 }, 0); 258 259 } else { 260 261 $('html, body').show(); 262 263 } 264 265 }); 266 267 268 269 //------- Header Scroll Class js --------// 270 271 $(window).scroll(function() { 272 if ($(this).scrollTop() > 100) { 273 $('#header').addClass('header-scrolled'); 274 } else { 275 $('#header').removeClass('header-scrolled'); 276 } 277 }); 278 279 //------- Google Map js --------// 280 281 if (document.getElementById("map")) { 282 google.maps.event.addDomListener(window, 'load', init); 283 284 function init() { 285 var mapOptions = { 286 zoom: 11, 287 center: new google.maps.LatLng(40.6700, -73.9400), // New York 288 styles: [{ 289 "featureType": "water", 290 "elementType": "geometry", 291 "stylers": [{ 292 "color": "#e9e9e9" 293 }, { 294 "lightness": 17 295 }] 296 }, { 297 "featureType": "landscape", 298 "elementType": "geometry", 299 "stylers": [{ 300 "color": "#f5f5f5" 301 }, { 302 "lightness": 20 303 }] 304 }, { 305 "featureType": "road.highway", 306 "elementType": "geometry.fill", 307 "stylers": [{ 308 "color": "#ffffff" 309 }, { 310 "lightness": 17 311 }] 312 }, { 313 "featureType": "road.highway", 314 "elementType": "geometry.stroke", 315 "stylers": [{ 316 "color": "#ffffff" 317 }, { 318 "lightness": 29 319 }, { 320 "weight": 0.2 321 }] 322 }, { 323 "featureType": "road.arterial", 324 "elementType": "geometry", 325 "stylers": [{ 326 "color": "#ffffff" 327 }, { 328 "lightness": 18 329 }] 330 }, { 331 "featureType": "road.local", 332 "elementType": "geometry", 333 "stylers": [{ 334 "color": "#ffffff" 335 }, { 336 "lightness": 16 337 }] 338 }, { 339 "featureType": "poi", 340 "elementType": "geometry", 341 "stylers": [{ 342 "color": "#f5f5f5" 343 }, { 344 "lightness": 21 345 }] 346 }, { 347 "featureType": "poi.park", 348 "elementType": "geometry", 349 "stylers": [{ 350 "color": "#dedede" 351 }, { 352 "lightness": 21 353 }] 354 }, { 355 "elementType": "labels.text.stroke", 356 "stylers": [{ 357 "visibility": "on" 358 }, { 359 "color": "#ffffff" 360 }, { 361 "lightness": 16 362 }] 363 }, { 364 "elementType": "labels.text.fill", 365 "stylers": [{ 366 "saturation": 36 367 }, { 368 "color": "#333333" 369 }, { 370 "lightness": 40 371 }] 372 }, { 373 "elementType": "labels.icon", 374 "stylers": [{ 375 "visibility": "off" 376 }] 377 }, { 378 "featureType": "transit", 379 "elementType": "geometry", 380 "stylers": [{ 381 "color": "#f2f2f2" 382 }, { 383 "lightness": 19 384 }] 385 }, { 386 "featureType": "administrative", 387 "elementType": "geometry.fill", 388 "stylers": [{ 389 "color": "#fefefe" 390 }, { 391 "lightness": 20 392 }] 393 }, { 394 "featureType": "administrative", 395 "elementType": "geometry.stroke", 396 "stylers": [{ 397 "color": "#fefefe" 398 }, { 399 "lightness": 17 400 }, { 401 "weight": 1.2 402 }] 403 }] 404 }; 405 var mapElement = document.getElementById('map'); 406 var map = new google.maps.Map(mapElement, mapOptions); 407 var marker = new google.maps.Marker({ 408 position: new google.maps.LatLng(40.6700, -73.9400), 409 map: map, 410 title: 'Snazzy!' 411 }); 412 } 413 } 414 415 //------- Mailchimp js --------// 416 417 $(document).ready(function() { 418 $('#mc_embed_signup').find('form').ajaxChimp(); 419 }); 420 421});
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.