/*! * googlemaps-scrollprevent (jQuery Google Maps Scroll Prevent Plugin) * Version 0.6.5 * URL: https://github.com/diazemiliano/googlemaps-scrollprevent * Description: googlemaps-scrollprevent is an easy solution to the problem of * page scrolling with Google Maps. * Author: Emiliano Díaz https://github.com/diazemiliano/ * Copyright: The MIT License (MIT) Copyright (c) 2016 Emiliano Díaz. */ (function(){var t={}.hasOwnProperty;!function(e){return e.fn.extend({scrollprevent:function(o){var s,n,i,r,a,l,c,p,u,d,g,h,v,w,m,f,b,y,x,k,q,D;if(c={"class":{wrap:"mapscroll-wrap",overlay:"mapscroll-overlay",progress:"mapscroll-progress",button:"mapscroll-button",icon:"mapscroll-icon"},pressDuration:650,triggerElm:"button",overlay:{iconLocked:'',iconUnloking:'',iconUnlocked:''},onMapLock:function(){},onMapUnlock:function(){},printLog:!1},m=e.extend(!1,c,o),a=e(this),s=function(t){var e,o;return m.printLog&&window.console&&window.console.log?(e=new Date,o=e.getHours()+":"+e.getMinutes()+":"+e.getSeconds(),console.log("mapScrollPrevent ["+o+"] : "+t)):void 0},a.length){s(a.length+" iFrames detected."),w="/* --- mapScrollPrevent.js CSS Classes --- */ ."+m["class"].overlay+" { position: absolute; overflow:hidden; cursor: pointer; text-align: center; background-color: rgba(0, 0, 0, 0); } ."+m["class"].button+" { text-rendering: optimizeLegibility; font-family: Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; padding-top: 15px; padding-bottom: 15px; width: 55px; position: absolute; right: 43px; bottom: 24px; border-color: rgba(0, 0, 0, 0.3); color: rgba(58, 132, 223, 0); background-color: rgba(255, 255, 255, 1); color: rgb(58, 132, 223); border-top-right-radius: 2px; border-top-left-radius: 2px; box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px; cursor: pointer; z-index: 1; } ."+m["class"].icon+" { display: none; position: relative; z-index: 1; fill: rgba(58, 132, 223, 1); } ."+m["class"].icon+"-locked { display: inline; } ."+m["class"].progress+" { position: absolute; top: 0; bottom: 0; left: 0; width: 0%; display: block; background-color: rgba(58, 132, 223, 0.4); } ."+m["class"].wrap+" { position: relative; text-align: center; display: inline-block; } ."+m["class"].wrap+" iframe { position: relative; top: 0; left: 0; } ."+m["class"].overlay+", ."+m["class"].button+", ."+m["class"].icon+" { transition: all .3s ease-in-out; } ."+m["class"].progress+" { width: 0%; }",y=m.overlay;for(u in y)t.call(y,u)&&(k=y[u],s("Icons founded... Replacing classes."),k=k.replace('#s(id|class)="[^"]+"#',""),d=u.split("icon"),g=k.split("svg").join('svg class="'+m["class"].icon+"-"+d[1].toLowerCase()+" "+m["class"].icon+'"'),m.overlay[u]=g);return f=e("
"),r=e("