-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.1dc1390d99c1ad5251b8.js
1 lines (1 loc) · 5.36 KB
/
main.1dc1390d99c1ad5251b8.js
1
!function(e){function t(t){for(var o,a,s=t[0],l=t[1],c=t[2],u=0,p=[];u<s.length;u++)a=s[u],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&p.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={0:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.webpackJsonp=window.webpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var d=l;r.push([10,1]),n()}({10:function(e,t,n){"use strict";n.r(t);n(2),n(3);var o=n(0),i=n.n(o);n(4);function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.menuIcon=i()(".devBari__header__menu-icon"),this.menuContent=i()(".devBari__header__nav"),this.events()}var t,n,o;return t=e,(n=[{key:"events",value:function(){this.menuIcon.click(this.toggleTheMenu.bind(this))}},{key:"toggleTheMenu",value:function(){this.menuContent.toggleClass("devBari__header__nav--is-visible"),this.menuIcon.toggleClass("devBari__header__menu-icon--close-x")}}])&&r(t.prototype,n),o&&r(t,o),e}(),s=(n(5),n(6),n(7),n(9),n(1)),l=n.n(s);document.onreadystatechange=function(){var e=document.readyState;"interactive"==e?document.querySelector("body").style.overflow="hidden":"complete"==e&&(document.querySelector("body").style.overflow="visible",document.getElementById("preloader").style.visibility="hidden")},new a,i()("select").selectric({maxHeight:150}),i()('[data-toggle="datepicker"]').datepicker(),i()(".devBari__testimonial__slider").slick({infinite:!1,arrows:!1,dots:!0,appendDots:i()(".devBari__testimonial__dots"),responsive:[{breakpoint:2500,settings:{slidesToShow:1}},{breakpoint:992,settings:{slidesToShow:1}},{breakpoint:300,settings:"unslick"}]}),i()(".devBari__hero__slider").slick({infinite:!0,arrows:!1,dots:!1,autoplay:!0,fade:!0,cssEase:"ease",speed:1700,initialSlide:2,autoplaySpeed:2200});var c=L.map("map",{attributionControl:!1}).setView([40.7446,-73.98764],17.5);L.tileLayer("http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}",{attribution:'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',maxZoom:30,id:"mapbox.streets",subdomains:["mt0","mt1","mt2","mt3"],accessToken:"pk.eyJ1IjoiYXppenVsZGV2IiwiYSI6ImNrMjJ0bTZ3NjF5M2YzZG11aDIxaW8yYjIifQ.TgQTLhW8vXVpRKlaPcSsSQ"}).addTo(c);var d=L.marker([40.7446,-73.98764],{bounceOnAdd:!0,bounceOnAddOptions:{duration:1500,height:500,loop:2},bounceOnAddCallback:function(){console.log("done")}}).addTo(c);c.setMaxBounds(c.getBounds()),c.scrollWheelZoom.disable(),d.bindPopup("<h3>Maxi Moving</h3><p>244 5th Ave, New York, NY 10001").openPopup();new Waypoint({element:document.getElementById("first-van"),handler:function(e){"down"==e?this.element.classList.add("section-van-move"):this.element.classList.remove("section-van-move")},offset:"60%"}),new Waypoint({element:document.getElementById("second-van"),handler:function(e){"down"==e?this.element.classList.add("section-van-move"):this.element.classList.remove("section-van-move")},offset:"60%"}),new Waypoint({element:document.getElementById("third-van"),handler:function(e){"down"==e?this.element.classList.add("section-van-move"):this.element.classList.remove("section-van-move")},offset:"60%"}),new Waypoint({element:document.getElementById("map"),handler:function(e){"down"==e&&d.bounce({duration:500,height:150})},offset:"20%"}),new Waypoint({element:document.getElementById("devBari__footer__top"),handler:function(e){"down"==e?this.element.classList.add("devBari__footer__top--visible"):this.element.classList.remove("devBari__footer__top--visible")},offset:"98%"});var u=document.querySelectorAll(".counter");new Waypoint({element:document.getElementById("devBari__overview"),handler:function(e){"down"==e&&u.forEach((function(e){l()(e,{duration:3500,delay:16})}))},offset:"100%"});i()("#devBari__footer__top").click((function(){return i()("html, body").animate({scrollTop:0},600),!1}));var p=i()(".maxi-circle li:not(:first-child)"),m=360/p.length;p.each((function(e){var t=i()(this),n=m*e-90,o=-1*n;t.css({transform:"rotate("+n+"deg) translate(12em) rotate("+o+"deg)"})}))},3:function(e,t,n){}});