vendor: 15,809 bytes, lines 1-14
1/* Modernizr 2.6.2 (Custom Build) | MIT & BSD 2 * Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load 3 */ 4;window.Modernizr=function(a,b,c){function C(a){j.cssText=a}function D(a,b){return C(n.join(a+";")+(b||""))}function E(a,b){return typeof a===b}function F(a,b){return!!~(""+a).indexOf(b)}function G(a,b){for(var d in a){var e=a[d];if(!F(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function H(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:E(f,"function")?f.bind(d||b):f}return!1}function I(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return E(b,"string")||E(b,"undefined")?G(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),H(e,b,c))}function J(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=E(e[d],"function"),E(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),A={}.hasOwnProperty,B;!E(A,"undefined")&&!E(A.call,"undefined")?B=function(a,b){return A.call(a,b)}:B=function(a,b){return b in a&&E(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return I("flexWrap")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!E(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!I("indexedDB",a)},s.hashchange=function(){return z("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return C("background-color:rgba(150,255,150,.5)"),F(j.backgroundColor,"rgba")},s.hsla=function(){return C("background-color:hsla(120,40%,100%,.5)"),F(j.backgroundColor,"rgba")||F(j.backgroundColor,"hsla")},s.multiplebgs=function(){return C("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return I("backgroundSize")},s.borderimage=function(){return I("borderImage")},s.borderradius=function(){return I("borderRadius")},s.boxshadow=function(){return I("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return D("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return I("animationName")},s.csscolumns=function(){return I("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return C((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),F(j.backgroundImage,"gradient")},s.cssreflections=function(){return I("boxReflect")},s.csstransforms=function(){return!!I("transform")},s.csstransforms3d=function(){var a=!!I("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},s.csstransitions=function(){return I("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var K in s)B(s,K)&&(x=K.toLowerCase(),e[x]=s[K](),v.push((e[x]?"":"no-")+x));return e.input||J(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)B(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},C(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.hasEvent=z,e.testProp=function(a){return G([a])},e.testAllProps=I,e.testStyles=y,e.prefixed=function(a,b,c){return b?I(a,b,c):I(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};; 5// jQuery(document).ready(function(){var height=jQuery(window).height();var width=jQuery(window).width();if(width>height){if(jQuery(window).width()>1024)jQuery('a[href^="tel:"]').each(function(){jQuery(this).replaceWith(jQuery(this).text())})}else if(jQuery(window).width()>768)jQuery('a[href^="tel:"]').each(function(){jQuery(this).replaceWith(jQuery(this).text())})}); 6; 7/*! 8* jQuery meanMenu v2.0.8 9* @Copyright (C) 2012-2014 Chris Wharton @ MeanThemes (https://github.com/meanthemes/meanMenu) 10* 11*/ 12/* 13* This program is free software: you can redistribute it and/or modify 14* it under the terms of the GNU General Public License as published by
15* the Free Software Foundation, either version 3 of the License, or 16* (at your option) any later version. 17* 18* THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT 19* HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, 20* INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR 21* FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE 22* OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, 23* COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.COPYRIGHT HOLDERS WILL NOT 24* BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL 25* DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. 26* 27* You should have received a copy of the GNU General Public License 28* along with this program. If not, see <http://gnu.org/licenses/>. 29* 30* Find more information at http://www.meanthemes.com/plugins/meanmenu/ 31* 32*/ 33(function ($) { 34 "use strict"; 35 $.fn.meanmenu = function (options) { 36 var defaults = { 37 meanMenuTarget: jQuery(this), // Target the current HTML markup you wish to replace 38 meanMenuContainer: 'body', // Choose where meanmenu will be placed within the HTML 39 meanMenuClose: "X", // single character you want to represent the close menu button 40 meanMenuCloseSize: "18px", // set font size of close button 41 meanMenuOpen: "<span /><span /><span />", // text/markup you want when menu is closed 42 meanRevealPosition: "right", // left right or center positions 43 meanRevealPositionDistance: "0", // Tweak the position of the menu 44 meanRevealColour: "", // override CSS colours for the reveal background 45 meanScreenWidth: "480", // set the screen width you want meanmenu to kick in at 46 meanNavPush: "", // set a height here in px, em or % if you want to budge your layout now the navigation is missing. 47 meanShowChildren: true, // true to show children in the menu, false to hide them 48 meanExpandableChildren: true, // true to allow expand/collapse children 49 meanExpand: "+", // single character you want to represent the expand for ULs 50 meanContract: "-", // single character you want to represent the contract for ULs 51 meanRemoveAttrs: false, // true to remove classes and IDs, false to keep them 52 onePage: false, // set to true for one page sites 53 meanDisplay: "block", // override display method for table cell based layouts e.g. table-cell 54 removeElements: "" // set to hide page elements 55 }; 56 options = $.extend(defaults, options); 57 58 // get browser width 59 var currentWidth = window.innerWidth || document.documentElement.clientWidth; 60 61 return this.each(function () { 62 var meanMenu = options.meanMenuTarget; 63 var meanContainer = options.meanMenuContainer; 64 var meanMenuClose = options.meanMenuClose; 65 var meanMenuCloseSize = options.meanMenuCloseSize; 66 var meanMenuOpen = options.meanMenuOpen; 67 var meanRevealPosition = options.meanRevealPosition; 68 var meanRevealPositionDistance = options.meanRevealPositionDistance; 69 var meanRevealColour = options.meanRevealColour; 70 var meanScreenWidth = options.meanScreenWidth; 71 var meanNavPush = options.meanNavPush; 72 var meanRevealClass = ".meanmenu-reveal"; 73 var meanShowChildren = options.meanShowChildren; 74 var meanExpandableChildren = options.meanExpandableChildren; 75 var meanExpand = options.meanExpand; 76 var meanContract = options.meanContract; 77 var meanRemoveAttrs = options.meanRemoveAttrs; 78 var onePage = options.onePage; 79 var meanDisplay = options.meanDisplay; 80 var removeElements = options.removeElements; 81 82 //detect known mobile/tablet usage 83 var isMobile = false; 84 if ( (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/Android/i)) || (navigator.userAgent.match(/Blackberry/i)) || (navigator.userAgent.match(/Windows Phone/i)) ) { 85 isMobile = true; 86 } 87 88 if ( (navigator.userAgent.match(/MSIE 8/i)) || (navigator.userAgent.match(/MSIE 7/i)) ) { 89 // add scrollbar for IE7 & 8 to stop breaking resize function on small content sites 90 jQuery('html').css("overflow-y" , "scroll"); 91 } 92 93 var meanRevealPos = ""; 94 var meanCentered = function() { 95 if (meanRevealPosition === "center") { 96 var newWidth = window.innerWidth || document.documentElement.clientWidth; 97 var meanCenter = ( (newWidth/2)-22 )+"px"; 98 meanRevealPos = "left:" + meanCenter + ";right:auto;"; 99 100 if (!isMobile) { 101 jQuery('.meanmenu-reveal').css("left",meanCenter); 102 } else { 103 jQuery('.meanmenu-reveal').animate({ 104 left: meanCenter 105 }); 106 } 107 } 108 }; 109 110 var menuOn = false;
111 var meanMenuExist = false; 112 113 114 if (meanRevealPosition === "right") { 115 meanRevealPos = "right:" + meanRevealPositionDistance + ";left:auto;"; 116 } 117 if (meanRevealPosition === "left") { 118 meanRevealPos = "left:" + meanRevealPositionDistance + ";right:auto;"; 119 } 120 // run center function 121 meanCentered(); 122 123 // set all styles for mean-reveal 124 var $navreveal = ""; 125 126 var meanInner = function() { 127 // get last class name 128 if (jQuery($navreveal).is(".meanmenu-reveal.meanclose")) { 129 $navreveal.html(meanMenuClose); 130 } else { 131 $navreveal.html(meanMenuOpen); 132 } 133 }; 134 135 // re-instate original nav (and call this on window.width functions) 136 var meanOriginal = function() { 137 jQuery('.mean-bar,.mean-push').remove(); 138 jQuery(meanContainer).removeClass("mean-container"); 139 jQuery(meanMenu).css('display', meanDisplay); 140 menuOn = false; 141 meanMenuExist = false; 142 jQuery(removeElements).removeClass('mean-remove'); 143 }; 144 145 // navigation reveal 146 var showMeanMenu = function() { 147 var meanStyles = "background:"+meanRevealColour+";color:"+meanRevealColour+";"+meanRevealPos; 148 if (currentWidth <= meanScreenWidth) { 149 jQuery(removeElements).addClass('mean-remove'); 150 meanMenuExist = true; 151 // add class to body so we don't need to worry about media queries here, all CSS is wrapped in '.mean-container' 152 jQuery(meanContainer).addClass("mean-container"); 153 jQuery('.mean-container').prepend('<div class="mean-bar"><a href="#nav" class="meanmenu-reveal" style="'+meanStyles+'">Show Navigation</a><nav class="mean-nav"></nav></div>'); 154 155 //push meanMenu navigation into .mean-nav 156 var meanMenuContents = jQuery(meanMenu).html(); 157 jQuery('.mean-nav').html(meanMenuContents); 158 159 // remove all classes from EVERYTHING inside meanmenu nav 160 if(meanRemoveAttrs) { 161 jQuery('nav.mean-nav ul, nav.mean-nav ul *').each(function() { 162 // First check if this has mean-remove class 163 if (jQuery(this).is('.mean-remove')) { 164 jQuery(this).attr('class', 'mean-remove'); 165 } else { 166 jQuery(this).removeAttr("class"); 167 } 168 jQuery(this).removeAttr("id"); 169 }); 170 } 171 172 // push in a holder div (this can be used if removal of nav is causing layout issues) 173 jQuery(meanMenu).before('<div class="mean-push" />'); 174 jQuery('.mean-push').css("margin-top",meanNavPush); 175 176 // hide current navigation and reveal mean nav link 177 jQuery(meanMenu).hide(); 178 jQuery(".meanmenu-reveal").show(); 179 180 // turn 'X' on or off 181 jQuery(meanRevealClass).html(meanMenuOpen); 182 $navreveal = jQuery(meanRevealClass); 183 184 //hide mean-nav ul 185 jQuery('.mean-nav > ul').hide(); 186 187 // hide sub nav 188 if(meanShowChildren) { 189 // allow expandable sub nav(s) 190 if(meanExpandableChildren){ 191 jQuery('.mean-nav > ul ul').each(function() { 192 if(jQuery(this).children().length){ 193 jQuery(this,'li:first').parent().append('<a class="mean-expand" href="#" style="font-size: '+ meanMenuCloseSize +'">'+ meanExpand +'</a>'); 194 } 195 }); 196 jQuery('.mean-expand').on("click",function(e){ 197 e.preventDefault(); 198 if (jQuery(this).hasClass("mean-clicked")) { 199 jQuery(this).text(meanExpand); 200 jQuery(this).prev('ul').slideUp(300, function(){}); 201 } else { 202 jQuery(this).text(meanContract); 203 jQuery(this).prev('ul').slideDown(300, function(){}); 204 } 205 jQuery(this).toggleClass("mean-clicked"); 206 }); 207 } else { 208 jQuery('.mean-nav > ul ul').show(); 209 } 210 } else { 211 jQuery('.mean-nav > ul ul').hide(); 212 } 213 214 // add last class to tidy up borders 215 jQuery('.mean-nav > ul li').last().addClass('mean-last'); 216 $navreveal.removeClass("meanclose"); 217 jQuery($navreveal).click(function(e){ 218 e.preventDefault(); 219 if( menuOn === false ) { 220 $navreveal.css("text-align", "center"); 221 $navreveal.css("text-indent", "0"); 222 $navreveal.css("font-size", meanMenuCloseSize); 223 jQuery('.mean-nav > ul:first').slideDown(); 224 menuOn = true; 225 } else { 226 jQuery('.mean-nav > ul:first').slideUp(); 227 menuOn = false;
228 } 229 $navreveal.toggleClass("meanclose"); 230 meanInner(); 231 jQuery(removeElements).addClass('mean-remove'); 232 }); 233 234 // for one page websites, reset all variables... 235 if ( onePage ) { 236 jQuery('.mean-nav > ul > li > a:first-child').on( "click" , function () { 237 jQuery('.mean-nav > ul:first').slideUp(); 238 menuOn = false; 239 jQuery($navreveal).toggleClass("meanclose").html(meanMenuOpen); 240 }); 241 } 242 } else { 243 meanOriginal(); 244 } 245 }; 246 247 if (!isMobile) { 248 // reset menu on resize above meanScreenWidth 249 jQuery(window).resize(function () { 250 currentWidth = window.innerWidth || document.documentElement.clientWidth; 251 if (currentWidth > meanScreenWidth) { 252 meanOriginal(); 253 } else { 254 meanOriginal(); 255 } 256 if (currentWidth <= meanScreenWidth) { 257 showMeanMenu(); 258 meanCentered(); 259 } else { 260 meanOriginal(); 261 } 262 }); 263 } 264 265 jQuery(window).resize(function () { 266 // get browser width 267 currentWidth = window.innerWidth || document.documentElement.clientWidth; 268 269 if (!isMobile) { 270 meanOriginal(); 271 if (currentWidth <= meanScreenWidth) { 272 showMeanMenu(); 273 meanCentered(); 274 } 275 } else { 276 meanCentered(); 277 if (currentWidth <= meanScreenWidth) { 278 if (meanMenuExist === false) { 279 showMeanMenu(); 280 } 281 } else { 282 meanOriginal(); 283 } 284 } 285 }); 286 287 // run main menuMenu function on load 288 showMeanMenu(); 289 }); 290 }; 291})(jQuery); 292; 293 294(function($) { 295 "use strict"; 296 $.fn.footermenu = function(options) { 297 var defaults = { 298 fooMenuTarget: jQuery(this), // Target the current HTML markup you wish to replace 299 fooMenuContainer: 'body', // Choose where foomenu will be placed within the HTML 300 fooMenuClose: "X", // single character you want to represent the close menu button 301 fooMenuCloseSize: "18px", // set font size of close button 302 fooMenuOpen: "<span /><span /><span />", // text/markup you want when menu is closed 303 fooRevealPosition: "left", // left right or center positions 304 fooRevealPositionDistance: "0", // Tweak the position of the menu 305 fooRevealColour: "", // override CSS colours for the reveal background 306 fooScreenWidth: "1099", // set the screen width you want foomenu to kick in at 307 fooNavPush: "", // set a height here in px, em or % if you want to budge your layout now the navigation is missing. 308 fooShowChildren: true, // true to show children in the menu, false to hide them 309 fooExpandableChildren: true, // true to allow expand/collapse children 310 fooExpand: "+", // single character you want to represent the expand for ULs 311 fooContract: "-", // single character you want to represent the contract for ULs 312 fooRemoveAttrs: false, // true to remove classes and IDs, false to keep them 313 onePage: false, // set to true for one page sites 314 fooDisplay: "block", // override display method for table cell based layouts e.g. table-cell 315 removeElements: "" // set to hide page elements 316 }; 317 options = $.extend(defaults, options); 318 319 // get browser width 320 var currentWidth = window.innerWidth || document.documentElement.clientWidth; 321 322 return this.each(function() { 323 var fooMenu = options.fooMenuTarget; 324 var fooContainer = options.fooMenuContainer; 325 var fooMenuClose = options.fooMenuClose; 326 var fooMenuCloseSize = options.fooMenuCloseSize; 327 var fooMenuOpen = options.fooMenuOpen; 328 var fooRevealPosition = options.fooRevealPosition; 329 var fooRevealPositionDistance = options.fooRevealPositionDistance; 330 var fooRevealColour = options.fooRevealColour; 331 var fooScreenWidth = options.fooScreenWidth; 332 var fooNavPush = options.fooNavPush; 333 var fooRevealClass = ".foomenu-reveal"; 334 var fooShowChildren = options.fooShowChildren; 335 var fooExpandableChildren = options.fooExpandableChildren; 336 var fooExpand = options.fooExpand; 337 var fooContract = options.fooContract; 338 var fooRemoveAttrs = options.fooRemoveAttrs; 339 var onePage = options.onePage; 340 var fooDisplay = options.fooDisplay; 341 var removeElements = options.removeElements; 342 343 //detect known mobile/tablet usage 344 var isMobile = false;
345 if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/Android/i)) || (navigator.userAgent.match(/Blackberry/i)) || (navigator.userAgent.match(/Windows Phone/i))) { 346 isMobile = true; 347 } 348 349 if ((navigator.userAgent.match(/MSIE 8/i)) || (navigator.userAgent.match(/MSIE 7/i))) { 350 // add scrollbar for IE7 & 8 to stop breaking resize function on small content sites 351 jQuery('html').css("overflow-y", "scroll"); 352 } 353 354 var fooRevealPos = ""; 355 var fooCentered = function() { 356 if (fooRevealPosition === "center") { 357 var newWidth = window.innerWidth || document.documentElement.clientWidth; 358 var fooCenter = ((newWidth / 2) - 22) + "px"; 359 fooRevealPos = "left:" + fooCenter + ";right:auto;"; 360 361 if (!isMobile) { 362 jQuery('.foomenu-reveal').css("left", fooCenter); 363 } else { 364 jQuery('.foomenu-reveal').animate({ 365 left: fooCenter 366 }); 367 } 368 } 369 }; 370 371 var menuOn = false; 372 var fooMenuExist = false; 373 374 375 if (fooRevealPosition === "right") { 376 fooRevealPos = "right:" + fooRevealPositionDistance + ";left:auto;"; 377 } 378 if (fooRevealPosition === "left") { 379 fooRevealPos = "left:" + fooRevealPositionDistance + ";right:auto;"; 380 } 381 // run center function 382 fooCentered(); 383 384 // set all styles for foo-reveal 385 var $navreveal = ""; 386 387 var fooInner = function() { 388 // get last class name 389 if (jQuery($navreveal).is(".foomenu-reveal.fooclose")) { 390 $navreveal.html(fooMenuClose); 391 } else { 392 $navreveal.html(fooMenuOpen); 393 } 394 }; 395 396 // re-instate original nav (and call this on window.width functions) 397 var fooOriginal = function() { 398 jQuery('.foo-bar,.foo-push').remove(); 399 jQuery(fooContainer).removeClass("foo-container"); 400 jQuery(fooMenu).css('display', fooDisplay); 401 menuOn = false; 402 fooMenuExist = false; 403 jQuery(removeElements).removeClass('foo-remove'); 404 }; 405 406 // navigation reveal 407 var showMeanMenu = function() { 408 var fooStyles = "background:" + fooRevealColour + ";color:" + fooRevealColour + ";" + fooRevealPos; 409 if (currentWidth <= fooScreenWidth) { 410 jQuery(removeElements).addClass('foo-remove'); 411 fooMenuExist = true; 412 // add class to body so we don't need to worry about media queries here, all CSS is wrapped in '.foo-container' 413 jQuery(fooContainer).addClass("foo-container"); 414 jQuery('.foo-container').prepend('<div class="foo-bar"><a href="#nav" class="foomenu-reveal" style="' + fooStyles + '">Show Navigation</a><nav class="foo-nav"></nav></div>'); 415 416 //push fooMenu navigation into .foo-nav 417 var fooMenuContents = jQuery(fooMenu).html(); 418 jQuery('.foo-nav').html(fooMenuContents); 419 420 // remove all classes from EVERYTHING inside foomenu nav 421 if (fooRemoveAttrs) { 422 jQuery('nav.foo-nav ul, nav.foo-nav ul *').each(function() { 423 // First check if this has foo-remove class 424 if (jQuery(this).is('.foo-remove')) { 425 jQuery(this).attr('class', 'foo-remove'); 426 } else { 427 jQuery(this).removeAttr("class"); 428 } 429 jQuery(this).removeAttr("id"); 430 }); 431 } 432 433 // push in a holder div (this can be used if removal of nav is causing layout issues) 434 jQuery(fooMenu).before('<div class="foo-push" />'); 435 jQuery('.foo-push').css("margin-top", fooNavPush); 436 437 // hide current navigation and reveal foo nav link 438 jQuery(fooMenu).hide(); 439 jQuery(".foomenu-reveal").show(); 440 441 // turn 'X' on or off 442 jQuery(fooRevealClass).html(fooMenuOpen); 443 $navreveal = jQuery(fooRevealClass); 444 445 //hide foo-nav ul 446 jQuery('.foo-nav > ul').hide(); 447 448 // hide sub nav 449 if (fooShowChildren) { 450 // allow expandable sub nav(s) 451 if (fooExpandableChildren) { 452 jQuery('.foo-nav > ul ul').each(function() { 453 if (jQuery(this).children().length) { 454 jQuery(this, 'li:first').parent().append('<a class="foo-expand" href="#" style="font-size: ' + fooMenuCloseSize + '">' + fooExpand + '</a>'); 455 } 456 }); 457 jQuery('.foo-expand').on("click", function(e) { 458 e.preventDefault(); 459 if (jQuery(this).hasClass("foo-clicked")) { 460 jQuery(this).text(fooExpand); 461 jQuery(this).prev('ul').slideUp(300, function() { 462 }); 463 } else { 464 jQuery(this).text(fooContract); 465 jQuery(this).prev('ul').slideDown(300, function() { 466 }); 467 } 468 jQuery(this).toggleClass("foo-clicked"); 469 }); 470 } else { 471 jQuery('.foo-nav > ul ul').show(); 472 } 473 } else { 474 jQuery('.foo-nav > ul ul').hide(); 475 } 476 477 // add last class to tidy up borders 478 jQuery('.foo-nav > ul li').last().addClass('foo-last'); 479 $navreveal.removeClass("fooclose"); 480 jQuery($navreveal).click(function(e) { 481 e.preventDefault(); 482 if (menuOn === false) { 483 $navreveal.css("text-align", "left"); 484 $navreveal.css("text-indent", "0"); 485 $navreveal.css("font-size", fooMenuCloseSize); 486 jQuery('.foo-nav > ul:first').slideDown(); 487 menuOn = true; 488 } else { 489 jQuery('.foo-nav > ul:first').slideUp(); 490 menuOn = false;
491 } 492 $navreveal.toggleClass("fooclose"); 493 fooInner(); 494 jQuery(removeElements).addClass('foo-remove'); 495 }); 496 497 // for one page websites, reset all variables... 498 if (onePage) { 499 jQuery('.foo-nav > ul > li > a:first-child').on("click", function() { 500 jQuery('.foo-nav > ul:first').slideUp(); 501 menuOn = false; 502 jQuery($navreveal).toggleClass("fooclose").html(fooMenuOpen); 503 }); 504 } 505 } else { 506 fooOriginal(); 507 } 508 }; 509 510 if (!isMobile) { 511 // reset menu on resize above fooScreenWidth 512 jQuery(window).resize(function() { 513 currentWidth = window.innerWidth || document.documentElement.clientWidth; 514 if (currentWidth > fooScreenWidth) { 515 fooOriginal(); 516 } else { 517 fooOriginal(); 518 } 519 if (currentWidth <= fooScreenWidth) { 520 showMeanMenu(); 521 fooCentered(); 522 } else { 523 fooOriginal(); 524 } 525 }); 526 } 527 528 jQuery(window).resize(function() { 529 // get browser width 530 currentWidth = window.innerWidth || document.documentElement.clientWidth; 531 532 if (!isMobile) { 533 fooOriginal(); 534 if (currentWidth <= fooScreenWidth) { 535 showMeanMenu(); 536 fooCentered(); 537 } 538 } else { 539 fooCentered(); 540 if (currentWidth <= fooScreenWidth) { 541 if (fooMenuExist === false) { 542 showMeanMenu(); 543 } 544 } else { 545 fooOriginal(); 546 } 547 } 548 }); 549 550 // run main menuMenu function on load 551 showMeanMenu(); 552 }); 553 }; 554})(jQuery); 555; 556/** 557 * @file 558 * A JavaScript file for the theme. 559 * 560 * In order for this JavaScript to be loaded on pages, see the instructions in 561 * the README.txt next to this file. 562 */ 563 564// JavaScript should be made compatible with libraries other than jQuery by 565// wrapping it with an "anonymous closure". See: 566// - http://drupal.org/node/1446420 567// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth 568; 569(function ($, Drupal, window, document, undefined) { 570 (function ($) { 571 $.fn.wrapMatch = function (count, className) { 572 var length = this.length; 573 for (var i = 0; i < length; i += count) { 574 this.slice(i, i + count).wrapAll('<div ' + ((typeof className == 'string') ? 'class="' + className + '"' : '') + '/>'); 575 } 576 return this; 577 }; 578 })(jQuery); 579 580 function addHeight() { 581 var getPathHeight = jQuery('.location-wrapper-main .address').outerHeight(true); 582 var setPathHeight = jQuery('.location-wrapper-main .map-container'); 583 setPathHeight.css('height', getPathHeight); 584 } 585 586 function breakLine() { 587 var path = jQuery(''); 588 path.each(function (i) { 589 var html = $(this).html().split(" "); 590 html = html.slice(0, 1).join(" ") + "<br />" + html.slice(1).join(" "); 591 $(this).html(html); 592 }); 593 } 594 595 function addMapVideoClass() { 596 var video = jQuery("#content iframe[src*='//www.youtube.com/embed']"); 597 var map = jQuery("#content iframe[src*='//www.google.com/maps/embed']"); 598 $.each($(video), function () { 599 var _that = $(this); 600 _that.wrap("<p class='video-container' />"); 601 }); 602 $.each($(map), function () { 603 var _that = $(this); 604 _that.wrap("<p class='map-container' />"); 605 }); 606 } 607 608 function wrappedImg() { 609 jQuery('.node-type-gallery .node-gallery .field-type-text-with-summary').after('<div class="img-wrapper" />'); 610 jQuery('.node-type-gallery .node-gallery .field-type-image').appendTo('.img-wrapper'); 611 } 612 613 function addPadding() { 614 var path = jQuery('#block-block-21 .doctor-wrapper .box2text'); 615 var windowWidth = jQuery(window).width(); 616 var x = (windowWidth - 1200) / 2; 617 if (windowWidth > 1200) { 618 path.css('padding-right', x + 'px'); 619 } 620 } 621 622 $(document).ready(function () { 623 addMapVideoClass(); // For map/video wapper class for all pages 624 addPadding(); // For DR. Scott Greenhalgh, DDS meet sections on front page 625 if (jQuery(window).width() >= 768) { 626 addHeight(); // For map height on location page 627 } 628 /*================================================ 629 For gallery landing page 630 ===============================================*/ 631 $('#block-block-36 p a').wrapMatch(1, 'img'); 632 $('#block-block-36 p .img').wrapMatch(5, 'subgroup'); 633 634 /*================================================ 635 For top manu sections 636 ===============================================*/ 637 if ($("#block-nice-menus-1").length > 0) { 638 $('#block-nice-menus-1').meanmenu({ 639 meanMenuContainer: '#navigation .region-navigation', 640 meanScreenWidth: "1024", 641 meanRemoveAttrs: true, 642 meanDisplay: "block", 643 meanMenuOpen: "<span class='mobile-text'>Menu</span>", 644 meanRevealPosition: "left", 645 meanMenuClose: "<span class='mobile-text'>Menu</span>" 646 }); 647 } 648 649 /*================================================ 650 For footer manu sections 651 ===============================================*/ 652 $('#block-menu-block-3 .menu-block-wrapper').footermenu({ 653 fooMenuContainer: '#block-menu-block-3', 654 fooScreenWidth: "1024", 655 fooRemoveAttrs: true, 656 fooDisplay: "block", 657 fooMenuOpen: "<span class='foo-mobile-text'>Menu</span>", 658 fooRevealPosition: "left", 659 fooMenuClose: "<span class='foo-mobile-text'>Menu</span>" 660 }); 661 662 /*================================================ 663 for header search block 664 ===============================================*/ 665 666 jQuery("#block-search-form .block-title").click(function (e) { 667 jQuery('#search-block-form,#block-search-form .block-title').toggleClass("active"); 668 setTimeout(function () { 669 jQuery('#search-block-form.active .form-text').focus(); 670 }, 900); 671 e.stopPropagation(); 672 }); 673 var mouse_is_inside = false;
674 jQuery('#block-search-form, #search-block-form').hover(function () { 675 mouse_is_inside = true; 676 }, function () { 677 mouse_is_inside = false; 678 }); 679 jQuery("body").click(function () { 680 if (!mouse_is_inside) { 681 jQuery("#search-block-form,#block-search-form .block-title").removeClass('active'); 682 } 683 }); 684 685 /*================================================ 686 For social share block on blog 687 ===============================================*/ 688 jQuery('#block-block-4').wrap('<div class="addthis-wrapper" style="text-align:center;" />'); 689 690 /*================================================ 691 For gallery procedure view page 692 ===============================================*/ 693 jQuery('#gallery_pairs .gallery_pair > a').wrap('<span class="gp"/>'); 694 695 }); 696 697 $(document).ready(function () { 698 var id = '#dialog'; 699 var maskHeight = $(document).height(); 700 var maskWidth = $(window).width(); 701 $('#mask').css({'width':maskWidth,'height':maskHeight}); 702 $('#mask').fadeIn(500); 703 $('#mask').fadeTo("slow",0.9); 704 var winH = $(window).height(); 705 var winW = $(window).width(); 706 $(id).fadeIn(2000); 707 $('.window .close').click(function (e) { 708 e.preventDefault(); 709 $('#mask').hide(); 710 $('.window').hide(); 711 }); 712 $('#mask').click(function () { 713 $(this).hide(); 714 $('.window').hide(); 715 }); 716 }); 717 718 jQuery(window).load(function () {}); 719 720 jQuery(window).resize(function () { 721 addPadding(); //For gallery procedure view page 722 if (jQuery(window).width() >= 768) { 723 addHeight(); // For map height on location page 724 } 725 }); 726})(jQuery, Drupal, this, this.document); 727;
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.