Skip to content

Instantly share code, notes, and snippets.

@rimiti

rimiti/bg.jpg

Last active Jan 14, 2019
Embed
What would you like to do?
cdn-coming-soon.min.js
.wrap-line,body{position:relative}body{padding:0;margin:0;font-family:"Source Sans Pro",Helvetica,Arial,sans-serif;font-size:13px;font-weight:400;line-height:1.8;color:#333}.h1,.h2,h1,h2{font-family:Montserrat,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.5}@-ms-viewport{width:device-width}@-o-viewport{width:device-width}@viewport{width:device-width}.h1,h1{font-size:45px;margin-top:0;margin-bottom:10px}.h2,h2{font-size:28px;text-transform:uppercase;letter-spacing:.15em;margin-top:0;margin-bottom:30px}.h3,.h4,h3,h4{font-family:Montserrat,Helvetica,Arial,sans-serif;letter-spacing:.1em;margin-top:0;font-weight:400;line-height:1.5;text-transform:uppercase}.h3,h3{font-size:26px;margin-bottom:0}.form-control,.h4,.lead,.navbar-links,h4,p{font-size:14px}.h4,h4{margin-bottom:10px}.lead,p{font-family:"Source Sans Pro",Helvetica,Arial,sans-serif;font-weight:400;line-height:1.5;margin-bottom:0}.btn,.count-down p,.form-control,.img-hover-effect .img-title,.navbar-links,a.btn{font-family:Montserrat,Helvetica,Arial,sans-serif}b,strong{font-weight:700}.font-weight-200{font-weight:200}.wrap-line{margin:20px 0 50px}.wrap-line:before{position:absolute;width:40px;height:1px;bottom:-30px;left:50%;margin-left:-20px;content:"";border-bottom:1px solid}.icon{line-height:1}.icon:before{vertical-align:bottom}.btn,.page-amplitude,.vert-middle>div,a.btn{vertical-align:middle}.icon-sm{font-size:24px}.icon-lg{font-size:34px}.text-color{color:#18b6ac}.text-white{color:#fff}.text-light{color:#aaa}.text-grey{color:#444}.bg-color{background-color:#18b6ac}.bg-white{background-color:#fff}.bg-white-09{background-color:rgba(255,255,255,.9)}.bg-black{background-color:#000}.bg-solid-color{background-color:#1f64c5}.bg-dark{background-color:#333}.bg-light{background-color:#aaa}.bg-bubble-color{background-color:#00457c}.bg-square-color{background-color:#5E35B1}a{color:#333;text-decoration:none}a>i{margin:0 7px}a:active,a:focus,a:hover{color:#000;text-decoration:underline;outline:0}a.link-light,a.link-light:active,a.link-light:focus,a.link-light:hover,a.link-white,a.link-white:active,a.link-white:focus,a.link-white:hover{color:#fff}.btn-row{margin-left:-5px;margin-right:-5px}.btn,a.btn{display:inline-block;margin:0 5px;padding:14px;font-size:12px;font-weight:400;letter-spacing:.15em;text-transform:uppercase;text-align:center;white-space:nowrap;cursor:pointer;border-radius:0;transition:background .3s ease-in-out}.btn i{margin-right:15px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:0}.input-group-btn:last-child>.btn{margin:0!important;padding:12px 13px 13px;line-height:1.392;border:none}.input-group-btn:last-child>.btn i,.input-group-btn:last-child>.btn-group i{margin:0!important}.btn.btn-dark,a.btn.btn-dark{color:#fff;background-color:#333}.btn.btn-dark:active,.btn.btn-dark:focus,.btn.btn-dark:hover,a.btn.btn-dark:active,a.btn.btn-dark:focus,a.btn.btn-dark:hover{color:#fff;background-color:#000;box-shadow:none}.btn-color,a.btn-color{color:#fff;background-color:#18b6ac}.btn.btn-color:active,.btn.btn-color:focus,.btn.btn-color:hover,a.btn.btn-color:active,a.btn.btn-color:focus,a.btn.btn-color:hover{color:#fff;background-color:#179f95}.btn-white,.btn.btn-white:active,.btn.btn-white:focus,.btn.btn-white:hover,a.btn-white,a.btn.btn-white:active,a.btn.btn-white:focus,a.btn.btn-white:hover{color:#333;background-color:#fff}.btn.btn-border-white,a.btn.btn-border-white{color:#fff;background-color:transparent;border:1px solid #fff}.btn.btn-border-white:active,.btn.btn-border-white:focus,.btn.btn-border-white:hover,a.btn.btn-border-white:active,a.btn.btn-border-white:focus,a.btn.btn-border-white:hover{color:#333;background-color:#fff;border:1px solid #fff}.form-control{height:50px;padding:15px 0 13px;margin:0 auto;font-weight:400;text-transform:uppercase;letter-spacing:.05em;background-color:transparent;color:#333;border-radius:0;border-top:none;border-left:none;border-right:none;box-shadow:none;appearance:none;outline:0}.form-control-custom{border:0;height:2px;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-control:focus{border-color:#333;box-shadow:none;outline:0}textarea.form-control{overflow:hidden;display:block;resize:none}.form-group{margin-bottom:25px}.form-group,.input-group{margin-left:auto;margin-right:auto;width:90%;transition:width .5s ease-in-out}.focus.form-group,.focus.input-group{width:100%}input:focus::-webkit-contacts-auto-fill-button{visibility:hidden;display:none!important;pointer-events:none;position:absolute;right:0}.form-control.form-control-light{color:#aaa;border-color:#aaa}.form-control.form-control-light:-moz-placeholder{color:#aaa}.form-control.form-control-light::-moz-placeholder{color:#aaa}.form-control.form-control-light:-ms-input-placeholder{color:#aaa}.form-control.form-control-light::-webkit-input-placeholder{color:#aaa}.form-control.form-control-dark{color:#333;border-color:#333}.form-control.form-control-dark:-moz-placeholder{color:#333}.form-control.form-control-dark::-moz-placeholder{color:#333}.form-control.form-control-dark:-ms-input-placeholder{color:#333}.form-control.form-control-dark::-webkit-input-placeholder{color:#333}.error .form-control:-moz-placeholder{color:#c0392b}.error .form-control::-moz-placeholder{color:#c0392b}.error .form-control:-ms-input-placeholder{color:#c0392b}.error .form-control::-webkit-input-placeholder{color:#c0392b}.error .form-control{color:#c0392b}#message-contact,#message-newsletter{display:none}.message-wrapper{position:absolute;right:0;left:0;bottom:0;z-index:1030}.map+.message-wrapper{bottom:400px}.message-wrapper.fixed{position:fixed}.error.message{background-color:#c0392b}.message{padding:15px;background-color:#2E7D32}.nav>li>a:focus,.nav>li>a:hover,.navbar-button,.navbar-links .nav>li>a:hover{background-color:transparent}label.message-text{margin-bottom:0}.message-text{margin-left:15px;font-weight:400}.vert-middle{min-height:700px;height:100%;align-items:center;display:flex}.vert-middle>div{width:100%}.p-t-b-5{padding-top:5px;padding-bottom:5px}.p-t-b-15{padding-top:25px;padding-bottom:25px}.p-t-b-20{padding-top:20px;padding-bottom:20px}.p-t-b-30{padding-top:30px;padding-bottom:30px}.p-t-b-40{padding-top:40px;padding-bottom:40px}.p-t-b-50{padding-top:50px;padding-bottom:50px}.p-t-30{padding-top:30px}.arrow-wrapper{padding:30px}.navbar-wrapper{height:60px;position:relative}.navbar-links{float:right;font-weight:400;line-height:1.5;letter-spacing:.15em;text-transform:uppercase}.navbar-links ul{list-style:none;padding-left:0;margin:0}.navbar-links li{float:left;opacity:0;transform:translate(100%,0);visibility:hidden;transition:all .3s ease-in-out}.navbar-links .nav>li>a{display:inline;padding-left:0;padding-right:0;padding-top:0}.navbar-links .nav>li{margin:20px 15px}.navbar-links .nav>li.active>a{border-bottom:1px solid #fff}.full-info .navbar-links li{transform:translate(0,0);opacity:1;visibility:visible}header{display:none}.navbar-button{position:relative;float:right;width:25px;height:19px;margin:22px 5px;border:none;cursor:pointer}.navbar-button span{position:absolute;left:0;display:block;height:1px;width:100%;background-color:#fff;border-radius:9px;filter:alpha(opacity=100);opacity:1;transform:rotate(0);transition:.25s ease-in-out}.navbar-button span:nth-child(1){top:0}.navbar-button span:nth-child(2){top:7px}.navbar-button span:nth-child(3){top:14px}.navbar-open .navbar-button span:nth-child(1){top:7px;transform:rotate(135deg)}.navbar-open .navbar-button span:nth-child(2){left:-40px;filter:alpha(opacity=0);opacity:0}.navbar-open .navbar-button span:nth-child(3){top:7px;transform:rotate(-135deg)}.section-overlay{position:fixed;top:0;height:100%;min-height:700px;width:100%;z-index:-100}#page-particle+.section-overlay,.page-amplitude-wrapper+.section-overlay{z-index:0}.section-overlay.youtube{position:fixed;top:50%;left:50%;min-width:100%;min-height:100%;width:auto;transform:translate(-50%,-50%)}.section-overlay.media{z-index:-250}.section-overlay img{position:absolute;top:0;left:0;height:100%;min-height:100%;min-width:100%}.overlay-opacity{filter:alpha(opacity=50);opacity:.3}.overlay-opacity-2{filter:alpha(opacity=40);opacity:.4}.overlay-opacity-3{filter:alpha(opacity=60);opacity:.6}.page-image,.page-image-bw,.page-image-full,.page-image-min,.page-image-ripple{background:url(https://gist.githubusercontent.com/rimiti/5de75a3ec251e58ebe8cc3d361bdd28c/raw/868d3fff3580cbafa92c733329a812b236bbd2c1/bg.jpg) center center no-repeat;background-size:cover;height:100%;width:100%;min-height:700px}.page-amplitude-wrapper,.page-slide{height:100vh;width:100%;min-height:700px}.page-slide-1{background:url(/static/img/page-slide-1.jpg) center center no-repeat;background-size:cover}.page-slide-2{background:url(/static/img/page-slide-2.jpg) center center no-repeat;background-size:cover}.page-slide-3{background:url(/static/img/page-slide-3.jpg) center center no-repeat;background-size:cover}body.vegas-container>.vegas-overlay,body.vegas-container>.vegas-slide,body.vegas-container>.vegas-timer{z-index:-800}.page-amplitude-wrapper{position:absolute;top:0;display:table;z-index:-250}.page-amplitude{width:100%;display:table-cell;margin:0 auto}.loader{position:fixed;z-index:1200;box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:100%;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;transition:opacity 1s linear}.button-close,.button-control{padding:0;background-color:transparent;z-index:100;cursor:pointer}.fade-out.loader{opacity:0}.fade-out .loader-inner{display:none}.ball-scale-ripple-multiple-color>div{border-color:#18b6ac}.ball-scale-ripple-multiple-bw>div{border-color:#fff}.ball-pulse-sync>div,.ball-pulse>div{width:10px;height:10px;margin:5px}.button-close{position:absolute;right:10px;top:10px;border:none;line-height:0}.button-control{float:left;margin:15px 5px;height:25px;width:25px;line-height:1;border:0}.modal.modal-scale.fade .modal-dialog{display:table;height:100%;-webkit-transform:scale(.1);-moz-transform:scale(.1);-ms-transform:scale(.1);transform:scale(.1);transform-origin:center;margin:0 auto;opacity:.1;-webkit-transition:all 1s;-moz-transition:all 1s;transition:all 1s}.modal.modal-scale .modal-dialog>div{display:table-cell;vertical-align:middle}.count-down>.cd-row,.count-down>div>div{display:inline-block}.modal.modal-scale.fade.in .modal-dialog{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity:1}.modal-content{padding:50px 80px;border-radius:0;border:0}.modal-backdrop.in{filter:alpha(opacity=20);opacity:.2}.count-down h1{line-height:1}.count-down p{font-size:16px;font-weight:200;line-height:1.35}.count-down>div>div{padding:0 30px}.row.no-gutters>[class*=" col-"],.row.no-gutters>[class^=col-]{padding-right:0;padding-left:0}.img-hover-effect{position:relative;overflow:hidden;-moz-backface-visibility:hidden;-webkit-backface-visibility:hidden}.img-hover-effect img{max-width:100%;-moz-transition:all 1s ease;-webkit-transition:all 1s ease;transition:all 2s ease}.img-hover-effect:hover img{-moz-transform:scale(1.2);-webkit-transform:scale(1.2);transform:scale(1.2)}.img-hover-effect .img-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:.25;transition:opacity .3s ease-in-out}.img-hover-effect:hover .img-overlay{opacity:0}.img-hover-effect .img-title{position:absolute;z-index:1;text-align:center;top:100%;left:50%;padding:5px 8px;margin:auto;font-size:14px;font-weight:400;text-transform:uppercase;letter-spacing:.1em;color:#fff;border:1px solid #fff;opacity:0;transform:translate(-50%,-50%);transition:all .3s ease-in-out;cursor:pointer}.img-hover-effect:hover .img-title{opacity:1;top:50%}.gallery .img-description{display:none}.page-info{min-height:700px;height:100%;padding-top:20px;padding-bottom:20px}.sr .reveal{visibility:hidden}.map>div{width:100%;height:400px}.map h4,.map h5{margin-top:0}@media only screen and (max-width:767px){.count-down>div>div{display:inline-block;padding:20px}.count-down h1{font-size:47px}.modal.modal-scale.fade{margin:15px}.modal.modal-scale.fade .modal-dialog{width:100%}.modal-content{padding:50px 15px}}@media only screen and (min-width:991px){.col-transform,.page-content{transition:all .6s ease-in-out}body,body.vegas-container{overflow:hidden}body.show-content{overflow:scroll}header{display:block}.page-info{padding-top:60px;position:fixed}.page-content{position:absolute;visibility:hidden;right:-50%}.show-content .page-content{overflow:scroll;position:absolute;right:0;visibility:visible}.page-amplitude-wrapper{position:fixed}.count-down{margin-left:-30px;margin-right:-30px}}
$(document).ready(function(){"use strict";var e=/iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi/i.test(self._navigator&&self._navigator.userAgent),t=!!("ontouchend"in window||self._navigator&&0<self._navigator.maxTouchPoints||self._navigator&&0<self._navigator.msMaxTouchPoints),n=$(".loader");n.length&&$(window).on("load",function(){n.addClass("fade-out"),setTimeout(function(){n.hide()},1e3)});var a=$(".count-down");if(a.length){var i=new Date(a.data("end-date"));a.countdown({date:i,render:function(e){$(this.el).html('<div class="cd-row"><div><h1>'+this.leadingZeros(e.days,3)+"</h1><p>days</p></div><div><h1>"+this.leadingZeros(e.hours,2)+'</h1><p>hrs</p></div></div><div class="cd-row"><div><h1>'+this.leadingZeros(e.min,2)+"</h1><p>min</p></div><div><h1>"+this.leadingZeros(e.sec,2)+"</h1><p>sec</p></div></div>")}})}$("a.smooth-scroll").on("click",function(e){var t=$(this).attr("href");initScroll(t),e.preventDefault()}),$(".reveal").length&&(window.sr=ScrollReveal(),sr.isSupported()&&document.documentElement.classList.add("sr"),sr.reveal(".reveal.scale-in",{origin:"bottom",distance:"20px",duration:1500,delay:400,opacity:1,scale:1.1,easing:"linear",reset:!1}),sr.reveal(".reveal.scale-out",{origin:"bottom",distance:"20px",duration:1500,delay:400,opacity:1,scale:.9,easing:"linear",reset:!1}));var o=$(".collapse");o.on("show.bs.collapse",function(){$(".navbar-button").addClass("open")}),o.on("hide.bs.collapse",function(){$(".navbar-button").removeClass("open")});var r=$(".navbar-links li"),s=$("body"),l=$(".navbar"),d=$(".col-transform");function c(e,t,n,a,i){$(e).each(function(){var e=this;window.setTimeout(function(){$(e).css({"-webkit-transform":"translate("+t+",0)",opacity:n,visibility:a})},i),i+=300})}$(".show-info").click(function(){990<window.innerWidth&&(s.hasClass("show-content")?(d.removeClass("col-md-6").addClass("col-md-12"),s.removeClass("show-content"),setTimeout(function(){l.removeClass("navbar-open")},900),c(r,"100%","0","hidden",600)):(d.removeClass("col-md-12").addClass("col-md-6"),s.addClass("show-content"),setTimeout(function(){l.addClass("navbar-open")},300),c(r.get().reverse(),"0","1","visible",600)));var e=$(this).data("href");initScroll(e)});var p=$("#page-slider");p.length&&p.owlCarousel({loop:!0,items:1,autoplay:!0,animateOut:"fadeOut",slideTransition:"linear",autoplaySpeed:8e3,mouseDrag:!1});var u=$("#page-youtube");!u.length||e||t||u.YTPlayer({fitToBackground:!0,videoId:u.data("video-id"),playerVars:{modestbranding:0,autoplay:1,controls:0,showinfo:0,branding:0,rel:0,autohide:0,start:0}});var h=$("#page-video");!h.length||e||t||new $.backgroundVideo($("body"),{align:"centerXY",width:960,height:540,path:h.data("path"),filename:h.data("file"),types:["mp4","ogg","webm"]});var m=$("#kenburn-slider, body");$("#kenburn-slider").length&&m.vegas({slides:[{src:"images/page-slide-1.jpg"},{src:"images/page-slide-2.jpg"},{src:"images/page-slide-3.jpg"}],transition:"fade",animation:"random",transitionDuration:4e3,delay:8e3,timer:!1});var g=$("#page-particle");g.length&&g.particleground({dotColor:g.data("dot-color"),lineColor:g.data("line-color")});var f=$("#page-gradient");f.length&&f.gradientify({gradients:[{start:[35,72,200],stop:[192,33,114]},{start:[10,155,102],stop:[82,98,176]}],fps:80});var v=$("#page-rain");if(v.length&&!e&&!t){var w=v[0];w.onload=function(){var e=new RainyDay({image:this,parentElement:$(".section-overlay")[0]});e.rain([[1,2,4e3]]),e.rain([[3,3,1],[5,5,1],[6,2,1]],100)},w.crossOrigin="anonymous",w.src=v.attr("src")}var b=$("#page-amplitude"),S=$("#volume"),y=$("#playback");if(b.length){var C=new SiriWave({speed:.05,amplitude:1,container:b[0],autostart:!0,frequency:4,height:300,style:"ios9"});if(e||t)S.hide(),y.hide();else{var x=new Howl({src:["audio/egotype.webm","audio/egotype.mp3"],autoplay:!0,loop:!0});y.on("click",function(){y.hasClass("pause")?(y.addClass("play").removeClass("pause"),y.find("i").removeClass("icon-music-pause-button").addClass("icon-music-play-button"),x.pause(),C.stop()):(y.removeClass("play").addClass("pause"),y.find("i").removeClass("icon-music-play-button").addClass("icon-music-pause-button"),x.play(),C.start())}),S.on("click",function(){S.hasClass("vol-1")?(S.removeClass("vol-1").addClass("vol-0"),S.find("i").removeClass("icon-music-volume-up").addClass("icon-music-volume-down"),x.volume(0)):(S.addClass("vol-1").removeClass("vol-0"),S.find("i").removeClass("icon-music-volume-down").addClass("icon-music-volume-up"),x.volume(1))})}}var M,F,k,T,E,V,R=100,I=50,z=50,H=0,_=0,A=0;window.innerWidth,window.innerHeight;function N(){window.innerWidth/2,window.innerHeight/2,F.aspect=window.innerWidth/window.innerHeight,F.updateProjectionMatrix(),T.setSize(window.innerWidth,window.innerHeight)}var P=$("#particle-waves");P.length&&(!function(e,t){M=$("#particle-waves")[0],(F=new THREE.PerspectiveCamera(75,window.innerWidth/window.innerHeight,1,1e4)).position.z=1e3,k=new THREE.Scene,E=[];for(var n=2*Math.PI,a=new THREE.SpriteCanvasMaterial({color:e,program:function(e){e.beginPath(),e.arc(0,0,.5,0,n,!0),e.fill()}}),i=0,o=0;o<I;o++)for(var r=0;r<z;r++)(V=E[i++]=new THREE.Sprite(a)).position.x=o*R-I*R/2,V.position.z=r*R-z*R/2,k.add(V);(T=new THREE.CanvasRenderer).setPixelRatio(window.devicePixelRatio),T.setSize(window.innerWidth,window.innerHeight),T.setClearColor(t,1),M.appendChild(T.domElement),window.addEventListener("resize",N,!1)}(P.data("wave-color"),P.data("bg-color")),function e(){requestAnimationFrame(e),function(){F.position.x+=.05*(_-F.position.x),F.position.y+=.05*(-A-F.position.y),F.lookAt(k.position);for(var e=0,t=0;t<I;t++)for(var n=0;n<z;n++)(V=E[e++]).position.y=50*Math.sin(.3*(t+H))+50*Math.sin(.5*(n+H)),V.scale.x=V.scale.y=4*(Math.sin(.3*(t+H))+1)+4*(Math.sin(.5*(n+H))+1);T.render(k,F),H+=.1}()}());var D=$("#waterpipe");D.length&&D.waterpipe({gradientStart:"#fa05fa",gradientEnd:"#6b71e3",smokeOpacity:.1,numCircles:1,maxMaxRad:"auto",minMaxRad:"auto",minRadFactor:0,iterations:8,drawsPerFrame:10,lineWidth:2,speed:20,bgColorInner:"#444444",bgColorOuter:"#000000"});var L=$("#page-ripple");!L.length||e||t||(L.ripples({resolution:512,dropRadius:10,perturbance:.04,interactive:!1}),setInterval(function(){var e=L,t=Math.random()*e.outerWidth(),n=Math.random()*e.outerHeight(),a=.04+.04*Math.random();e.ripples("drop",t,n,20,a)},3e3));var W=$("#page-starfield");W.length&&W.starfield({speed:0,quantity:500,ratio:200});var O=$("#page-square");O.length&&particlesJS("page-square",{particles:{number:{value:20,density:{enable:!1,value_area:800}},color:{value:O.data("square-color")},opacity:{value:.5,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},shape:{type:"edge",stroke:{width:0,color:"#000000"}},size:{value:58,random:!1,anim:{enable:!0,speed:10,size_min:40,sync:!1}},line_linked:{enable:!1,distance:200,color:"#ffffff",opacity:1,width:2},move:{enable:!0,speed:4,direction:"right",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"window",events:{onhover:{enable:!1,mode:"grab"},onclick:{enable:!1,mode:"push"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0});var q=$("#page-bubbles");q.length&&particlesJS("page-bubbles",{particles:{number:{value:30,density:{enable:!0,value_area:800}},color:{value:q.data("bubble-color")},opacity:{value:.3,random:!0,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:58,random:!1,anim:{enable:!0,speed:10,size_min:40,sync:!1}},line_linked:{enable:!1,distance:200,color:"#ffffff",opacity:1,width:2},move:{enable:!0,speed:8,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"grab"},onclick:{enable:!1,mode:"push"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0});var B=$("#page-fss");if(B.length)var j,Z,U,Y,G,X,J,K={width:1.2,height:1.2,depth:0,segments:16,slices:8,xRange:.8,yRange:.1,zRange:1,ambient:"#555555",diffuse:"#ffffff",speed:.002},Q={count:2,xyScalar:1,zOffset:100,ambient:B.data("ambient-color"),diffuse:B.data("diffuse-color"),speed:.002,gravity:500,dampening:.95,minLimit:10,maxLimit:null,minDistance:20,maxDistance:800,autopilot:!0,draw:!1,bounds:FSS.Vector3.create(),step:FSS.Vector3.create(Math.randomInRange(.2,1),Math.randomInRange(.2,1),Math.randomInRange(.2,1))},ee={renderer:"canvas"},te=Date.now(),ne=FSS.Vector3.create(),ae=FSS.Vector3.create(),ie=B[0],oe=B[0];function re(){var e,t;for(U.remove(Y),Z.clear(),G=new FSS.Plane(K.width*Z.width,K.height*Z.height,K.segments,K.slices),X=new FSS.Material(K.ambient,K.diffuse),Y=new FSS.Mesh(G,X),U.add(Y),e=G.vertices.length-1;0<=e;e--)(t=G.vertices[e]).anchor=FSS.Vector3.clone(t.position),t.step=FSS.Vector3.create(Math.randomInRange(.2,1),Math.randomInRange(.2,1),Math.randomInRange(.2,1)),t.time=Math.randomInRange(0,Math.PIM2)}function se(e,t){Z.setSize(e,t),FSS.Vector3.set(ne,Z.halfWidth,Z.halfHeight),re()}function le(){j=Date.now()-te,function(){var e,t,n,a,i,o,r,s=K.depth/2;FSS.Vector3.copy(Q.bounds,ne),FSS.Vector3.multiplyScalar(Q.bounds,Q.xyScalar),FSS.Vector3.setZ(ae,Q.zOffset),Q.autopilot&&(e=Math.sin(Q.step[0]*j*Q.speed),t=Math.cos(Q.step[1]*j*Q.speed),FSS.Vector3.set(ae,Q.bounds[0]*e,Q.bounds[1]*t,Q.zOffset));for(a=U.lights.length-1;0<=a;a--){i=U.lights[a],FSS.Vector3.setZ(i.position,Q.zOffset);var l=Math.clamp(FSS.Vector3.distanceSquared(i.position,ae),Q.minDistance,Q.maxDistance),d=Q.gravity*i.mass/l;FSS.Vector3.subtractVectors(i.force,ae,i.position),FSS.Vector3.normalise(i.force),FSS.Vector3.multiplyScalar(i.force,d),FSS.Vector3.set(i.acceleration),FSS.Vector3.add(i.acceleration,i.force),FSS.Vector3.add(i.velocity,i.acceleration),FSS.Vector3.multiplyScalar(i.velocity,Q.dampening),FSS.Vector3.limit(i.velocity,Q.minLimit,Q.maxLimit),FSS.Vector3.add(i.position,i.velocity)}for(o=G.vertices.length-1;0<=o;o--)r=G.vertices[o],e=Math.sin(r.time+r.step[0]*j*K.speed),t=Math.cos(r.time+r.step[1]*j*K.speed),n=Math.sin(r.time+r.step[2]*j*K.speed),FSS.Vector3.set(r.position,K.xRange*G.segmentWidth*e,K.yRange*G.sliceHeight*t,K.zRange*s*n-s),FSS.Vector3.add(r.position,r.anchor);G.dirty=!0}(),de(),requestAnimationFrame(le)}function de(){var e,t,n,a;if(Z.render(U),Q.draw)for(e=U.lights.length-1;0<=e;e--)t=(a=U.lights[e]).position[0],n=a.position[1],Z.context.lineWidth=.5,Z.context.beginPath(),Z.context.arc(t,n,10,0,Math.PIM2),Z.context.strokeStyle=a.ambientHex,Z.context.stroke(),Z.context.beginPath(),Z.context.arc(t,n,4,0,Math.PIM2),Z.context.fillStyle=a.diffuseHex,Z.context.fill()}function ce(){se(ie.offsetWidth,ie.offsetHeight),de()}B.length&&(J=new FSS.CanvasRenderer,ee.renderer,Z&&oe.removeChild(Z.element),(Z=J).setSize(ie.offsetWidth,ie.offsetHeight),oe.appendChild(Z.element),U=new FSS.Scene,re(),function(){var e,t;for(e=U.lights.length-1;0<=e;e--)t=U.lights[e],U.remove(t);for(Z.clear(),e=0;e<Q.count;e++)(t=new FSS.Light(Q.ambient,Q.diffuse)).ambientHex=t.ambient.format(),t.diffuseHex=t.diffuse.format(),U.add(t),t.mass=Math.randomInRange(.5,1),t.velocity=FSS.Vector3.create(),t.acceleration=FSS.Vector3.create(),t.force=FSS.Vector3.create(),t.ring=document.createElementNS(FSS.SVGNS,"circle"),t.ring.setAttributeNS(null,"stroke",t.ambientHex),t.ring.setAttributeNS(null,"stroke-width","0.5"),t.ring.setAttributeNS(null,"fill","none"),t.ring.setAttributeNS(null,"r","10"),t.core=document.createElementNS(FSS.SVGNS,"circle"),t.core.setAttributeNS(null,"fill",t.diffuseHex),t.core.setAttributeNS(null,"r","4")}(),window.addEventListener("resize",ce),se(ie.offsetWidth,ie.offsetHeight),le());var pe=function(e){for(var t=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1;var t=function e(t,n){return t&&(n(t)?t:e(t.parentNode,n))}(e.target||e.srcElement,function(e){return e.tagName&&"FIGURE"===e.tagName.toUpperCase()});if(t){for(var n,a=t.parentNode,i=t.parentNode.childNodes,o=i.length,r=0,s=0;s<o;s++)if(1===i[s].nodeType){if(i[s]===t){n=r;break}r++}return 0<=n&&l(n,a),!1}},l=function(e,t,n,a){var i,o,r=document.querySelectorAll(".pswp")[0];if(o=function(e){for(var t,n,a,i,o=e.childNodes,r=o.length,s=[],l=0;l<r;l++)1===(t=o[l]).nodeType&&(a=(n=t.children[0]).getAttribute("data-size").split("x"),i={src:n.getAttribute("href"),w:parseInt(a[0],10),h:parseInt(a[1],10)},1<t.children.length&&(i.title="<h4>"+t.children[1].innerHTML+"</h4><p>"+t.children[2].innerHTML+"</p>"),0<n.children.length&&(i.msrc=n.children[0].getAttribute("src")),i.el=t,s.push(i));return s}(t),i={barsSize:{top:64,bottom:"auto",padding:"10px"},bgOpacity:.98,closeEl:!0,captionEl:!0,fullscreenEl:!1,zoomEl:!1,shareEl:!1,counterEl:!0,arrowEl:!0,preloaderEl:!0,galleryUID:t.getAttribute("data-pswp-uid"),getThumbBoundsFn:function(e){var t=o[e].el.getElementsByTagName("img")[0],n=window.pageYOffset||document.documentElement.scrollTop,a=t.getBoundingClientRect();return{x:a.left,y:a.top+n,w:a.width}}},a)if(i.galleryPIDs){for(var s=0;s<o.length;s++)if(o[s].pid==e){i.index=s;break}}else i.index=parseInt(e,10)-1;else i.index=parseInt(e,10);isNaN(i.index)||(n&&(i.showAnimationDuration=0),new PhotoSwipe(r,PhotoSwipeUI_Default,o,i).init())},n=document.querySelectorAll(e),a=0,i=n.length;a<i;a++)n[a].setAttribute("data-pswp-uid",a+1),n[a].onclick=t;var o=function(){var e=window.location.hash.substring(1),t={};if(e.length<5)return t;for(var n=e.split("&"),a=0;a<n.length;a++)if(n[a]){var i=n[a].split("=");i.length<2||(t[i[0]]=i[1])}return t.gid&&(t.gid=parseInt(t.gid,10)),t}();o.pid&&o.gid&&l(o.pid,n[o.gid-1],!0,!0)};$("#photoswipe").load("js/plugins/photoswipe/include/photoswipe.html",function(){pe(".gallery")});var ue=$("textarea");ue.length&&ue[0].addEventListener("keydown",function(){var e=this;setTimeout(function(){e.style.cssText="height:50px; padding:15px",e.style.cssText="height:"+e.scrollHeight+"px"},0)});var he=$(".form-control");he.on("focus",function(){$(this).parent().addClass("focus")}),he.on("blur",function(){$(this).parent().removeClass("focus")});var me=$("#mc-form");function ge(e){var t,n,a=new google.maps.LatLng(40.72020106,-73.97163391),i=[['<div class="wrapper"><h4>Kounter Office</h4><h5>Opening Hours</h5><p>Mo – Fr: 08:30 – 20:00</p></div>',40.7486332,-73.9797129],['<div class="wrapper"><h4>Kounter Agency</h4><h5>Opening Hours</h5><p>Mo – Fr: 08:30 – 20:00</p></div>',40.6681,-73.9448]],o=new google.maps.Size(50,49),r={zoom:11,center:a,mapTypeId:google.maps.MapTypeId.TERRAIN,mapTypeControl:!1,streetViewControl:!1,scrollwheel:!1,styles:[{featureType:"road",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"poi",elementType:"label",stylers:[{visibility:"off"}]},{featureType:"all",stylers:[{saturation:-100},{gamma:.9}]}]},s=new google.maps.Map(e[0],r),l=new google.maps.InfoWindow;google.maps.event.addListener(l,"domready",function(){var e=$(".gm-style-iw").prev();e.children(":nth-child(2)").css({"box-shadow":"none","background-color":"rgba(0, 0, 0, 0.1)"}),e.children(":nth-child(3)").find("div").children().css({"box-shadow":"none","border-top-color":"rgba(0, 0, 0, 0.1)"})});var d={url:"images/marker.png",scaledSize:o};for(n=0;n<i.length;n++){var c=i[n][0];t=new google.maps.Marker({position:new google.maps.LatLng(i[n][1],i[n][2]),map:s,icon:d}),google.maps.event.addListener(t,"click",function(e){return function(){l.setContent(e),l.open(s,this)}}(c))}}me.length&&me.ajaxChimp({callback:function(e){var t=$("#message-newsletter");t.removeClass("error"),me.find(".form-group").removeClass("error"),"error"===e.result?(me.find(".input-group").addClass("error"),t.addClass("error")):me.find(".form-control").fadeIn().val("");t.slideDown("slow","swing"),setTimeout(function(){t.slideUp("slow","swing")},1e4)},url:"https://wefloc.us19.list-manage.com/subscribe/post?u=b7b7e32eccb585306c1df17e2&amp;id=1252b7d51d"});var fe=$("#map");if(fe.length&&(google.maps.event.addDomListener(window,"load",ge(fe)),google.maps.event.addDomListener(window,"resize",ge(fe))),navigator.userAgent.match(/IEMobile\/10\.0/)){var ve=document.createElement("style");ve.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(ve)}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.