Unverified Commit b572d045 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Introduce language switcher

parent 783e11fa
......@@ -239,9 +239,16 @@
// CONCRETE stuff
/* header account menu */
#thimbus-account-menu-container {
top: 10px;
right: 10px;
position: absolute;
}
#language-selector-menu,
#thimbus-account-menu {
a.btn {
background-color: @inverted-color;
background: @inverted-color;
color: @background-color;
&:hover {
......
(function() {
language_submit_btn.onclick = function () {
set_language_form.submit();
};
})();
var htmlClasses=document.documentElement.className.split(" ");htmlClasses.push("js-on"),document.documentElement.className=htmlClasses.join(" ").replace(/^\s+|\s+$/g,""),function(e){e.fn.gwScrollTo=function(t){var i={duration:1e3,easing:"easeInOutCubic",target:"#top",callback:""},s=e.extend({},i,t),n=this;if(s.easing=jQuery.easing[s.easing]?s.easing:!1,!e(s.target).length)return!1;var a=e(s.target).offset();return n.is(":animated")||a.top==e(window).scrollTop()?!1:n.animate({scrollTop:e(s.target).offset().top},s.duration,s.easing,function(){this.tagName==n[0].tagName&&e.isFunction(s.callback)?s.callback.call(this):!1})}}(jQuery),jQuery(document).ready(function(e,t){var i,s,n=e("body"),a=n.find("#wrapper"),o=n.find("#header-info"),l=n.find("#logo"),r=l.find("img"),c=n.find("#primary-navigation"),d=c.find(".nav"),u=c.find(".menu-responsive"),f=n.find("#header-panel"),h=n.find("#bottom"),p=n.find("#footer"),g=e("<div />",{id:"primary-navigation-placholder"}).css({height:"45px",display:"none"}),v=o.length?o.outerHeight():0,m=l.length?l.height():0,b=c.length?c.height():0,w=f.height?f.height():0,y=h.height?h.outerHeight():0,k=10,C=35,x=function(){return v+m+2*k},T=function(){return x()+b+w};r.load(function(){m=l.length?l.height():0}),n.hasClass("stickymenu")&&g.insertBefore(c),setTimeout(function(){e(window).resize(),d.find(".nav-path-selected > a").trigger("click")},10),e(window).resize(),d.find(".nav-path-selected > a").trigger("click");var j;n.find('[class^="hide-info-box"]').delegate(this,"mouseenter mouseleave",function(e){clearTimeout(j),"mouseenter"==e.type?(A!=t&&A.find(".fullwidthabnner").revpause(),n.find(".header-overlay").addClass("visible")):j=setTimeout(function(){A!=t&&(A.find(".fullwidthabnner").hasClass("hovered")||A.find(".fullwidthabnner").revresume().closest(".slider").trigger("mousemove")),n.find(".header-overlay").removeClass("visible")},300)}),e(window).scroll(function(){f.length&&(i=u.is(":visible")?0:.6667*T()>e(window).scrollTop()?e(window).scrollTop()*-.5:.6667*T()*-.5,f.hasClass("header-parallax")&&f.css("marginBottom",i).find(".page-title").css("bottom",i*-.5+50)),s=k+(C-k)*(v-e(window).scrollTop())/v,l.css({paddingTop:function(){return u.is(":visible")?C:s>k?s:k},paddingBottom:function(){return u.is(":visible")?C:s>k?s:k}}),n.hasClass("stickymenu")&&!u.is(":visible")&&x()<=e(window).scrollTop()?(c.addClass("stickynav"),g.css("display","block"),e(document).height()-e(window).height()<=e(window).scrollTop()?p.removeClass("stickyfooter-bottom"):p.addClass("stickyfooter-bottom")):(c.removeClass("stickynav"),g.css("display","none")),e(window).scrollTop()>0?n.find("#scroll-top").fadeIn(200):n.find("#scroll-top").fadeOut(200)}),e(window).resize(function(){e(window).trigger("scroll"),v=v=o.length?o.outerHeight():0,n.hasClass("stickyfooter")&&(u.is(":visible")?(n.removeClass("stickyfooter"),a.css("marginBottom",0)):(n.addClass("stickyfooter"),y=h.height?h.outerHeight():0,a.css("marginBottom",y-5))),u.is(":visible")?(u.hasClass("open")||d.css("display","none").find('li:not(".nav-path-selected")').children("ul").css("display","none"),d.find("li").addClass("noLava").find("ul").each(function(){var t=e(this),i=t.find(">li>a").parents("ul").length;t.find(">li>a").css({paddingLeft:20*(i-1)+40+"px",backgroundPosition:20*(i-1)+20+"px -5px"}),t.find(">li.nav-path-selected>a").css({paddingLeft:20*(i-1)+40+"px",backgroundPosition:20*(i-1)+20+"px -54px"})})):(u.removeClass("open"),d.css("display","block").find("ul").css("display","block").end().find("li").removeClass("noLava").end().find("ul > li").addClass("noLava").end().find("li.nav-path-selected").trigger("mouseenter").trigger("mouseleave").end().find("li>a").css("paddingLeft","20px"))}).resize(),jQuery().magnificPopup&&(e(".magnific-popup").each(function(){e(this).magnificPopup({type:"image",closeOnContentClick:!0})}),e(".magnific-popup-html").each(function(){e(this).magnificPopup({disableOn:700,type:"iframe"})})),(e("html").hasClass("lt-ie10")||e("html").hasClass("lt-ie9"))&&n.find("input[placeholder], textarea[placeholder]").each(function(){var t=e(this);t.val(t.attr("placeholder")),t.delegate(this,"focus blur",function(e){"focus"==e.type?t.val()==t.attr("placeholder")&&t.val(""):(""==t.val()||t.val()==t.attr("placeholder"))&&t.val(t.attr("placeholder"))})}),n.find("#scroll-top").css("display","none").delegate("a","click",function(t){t.preventDefault(),e("html, body").gwScrollTo({easing:"easeInOutCubic"})}),n.find(".searchform").delegate(this,"submit",function(){var t=e(this),i=t.find('input[name="s"]');return""==i[0].value?(i.focus(),!1):void 0}),d.delegate("li a","click mouseenter mouseleave",function(t){var i=e(this),s=e(this).parent(),n=s.parents("ul").parent("li");"click"==t.type&&(this.href.match(/#/gi)?t.preventDefault():(u.find(".menu-title").html(i.text()),d.find("li.nav-path-selected").removeClass("nav-path-selected").find(">a").css("backgroundPositionY","-5px").css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -5px"}),s.addClass("nav-path-selected"),n.each(function(){var t=e(this);t.hasClass("nav-path-selected")||t.addClass("nav-path-selected").find(">a").css("backgroundPositionY","-54px").css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -54px"})}))),u.is(":visible")&&("click"==t.type?!i.closest("li").find(">ul").is(":visible")&&i.closest("li").find(">ul").length>0&&(t.preventDefault(),i.closest("li").find(">ul").slideDown(300,"easeInOutCubic").end().siblings().find("ul").slideUp(300,"easeInOutCubic")):"mouseenter"==t.type?(i.css("backgroundPositionY","-54px"),i.css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -54px"})):i.closest("li").hasClass("nav-path-selected")||(i.css("backgroundPositionY","-5px"),i.css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -5px"})))}),u.delegate(this,"click",function(){var t=e(this);d.is(":visible")?d.slideUp(300,"easeInOutCubic"):(t.addClass("open"),d.slideDown(300,"easeInOutCubic"))}),jQuery().lavaLamp&&setTimeout(function(){d.each(function(){e(this).children("li.").addClass("selectedLava").end().find("ul > li").addClass("noLava").end().lavaLamp({fx:"easeOutExpo",speed:500})})},100),n.find(".alert").delegate(".close","click",function(){e(this).closest(".alert").slideUp()}),n.find(".tabs").delegate("li","click",function(t){var i=e(this),s=i.closest(".tabs-wrapper").next(".tabs-content"),n=s.find("> li"),a=i.closest(".tabs").find("> li").index(i);t.preventDefault(),i.hasClass("current")?s.stop().animate({height:n.eq(a).find(".tab-content").outerHeight()},350,"jswing"):(i.addClass("current").siblings(".current").removeClass("current"),n.eq(a).siblings(".current").find(".tab-content").css("display","block").fadeTo(200,0,function(){s.stop().animate({height:n.eq(a).find(".tab-content").outerHeight()},350,"jswing",function(){n.eq(a).siblings(".current").removeClass("current").find(".tab-content").css("display","none"),n.eq(a).addClass("current").find(".tab-content").fadeTo(200,1)})}))}),e(window).resize(function(){n.find(".tabs li.current").trigger("click")}),n.find(".tabs-content").delegate(".tab-title","click",function(t){var i=e(this),s=i.closest("li"),n=i.closest(".tabs-content"),a=(n.find("> li"),n.prev(".tabs-wrapper").find(".tabs")),o=a.find("> li"),l=n.find("> li").index(s);t.preventDefault(),s.hasClass("current")||(s.addClass("current").find(".tab-content").stop().css({display:"none",opacity:1}).slideDown(500,"easeOutExpo"),s.siblings(".current").removeClass("current").find(".tab-content").stop().css("display","block").slideUp(500,"easeOutExpo",function(){n.css("height",s.find(".tab-content").outerHeight())}),o.eq(l).addClass("current").siblings().removeClass("current"))}),n.find(".toggles").delegate(".toggle-title","click",function(t){var i=e(this),s=i.closest("li");t.preventDefault(),s.hasClass("current")?s.removeClass("current").find(".toggle-content").stop().css("display","block").slideUp(500,"easeOutExpo"):(s.addClass("current").find(".toggle-content").stop().css("display","none").slideDown(500,"easeOutExpo"),s.siblings(".current").find(".toggle-title").trigger("click"))});var P=n.find(".progress-bars");P.find(".progress-label span").html("0%").end().find(".bar").css("width",0).bind("inview",function(t,i){var s,n=e(this),a=n.closest("li");n.addClass("trans-enabled"),i===!0&&(n.css("width",Math.round(parseFloat(n.data("width")))+"%").unbind("inview"),s=setInterval(function(){var e=Math.round(n.width()/a.width()*100);a.find(".progress-label span").html(e+"%"),e==Math.round(parseFloat(n.data("width")))&&clearInterval(s)},5))});var O=n.find(".portfolio-isotope"),I=O.find(".portfolio-filter"),L=O.find(".portfolio-posts");jQuery().isotope&&I.delegate("li","click",function(){var i,s=e(this);i=s.data("filter")==t?"*":'[data-filter*="'+s.data("filter")+'"]',setTimeout(function(){L.isotope({filter:i})},100)}),e(window).resize(function(){I.find("li.current").length?I.find("li.current").trigger("click"):I.find("li:first").trigger("click")}),jQuery().carouFredSel&&(n.find(".testimonials .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,auto:!1,height:"variable",width:"100%",pagination:{keys:!1,container:e(this).closest(".slider").find(".slider-pagination"),anchorBuilder:function(e){return'<li><a href="#" data-id="'+e+'"></a></li>'}},swipe:{onTouch:!0},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},10)}).trigger("resize")}})}),n.find(".post-slider .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,height:"variable",width:"100%",height:"auto",auto:!1,next:t.closest(".slider").find(".slider-control-next"),prev:t.closest(".slider").find(".slider-control-prev"),swipe:{onTouch:!0},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},10)}).trigger("resize")}})}),e(".brands .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,auto:!1,width:"100%",next:t.closest(".slider").find(".slider-controls .next"),prev:t.closest(".slider").find(".slider-controls .prev"),scroll:1,swipe:{onTouch:!0},items:{width:300,visible:{min:1,max:4}},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},100)}).trigger("resize")}})}));var z,D=n.find(".ticker"),M=e(".ticker-controls");D.each(function(){e(this).bind("loaded clicked",function(i,s){var n=e(this),a=n.find(".ticker-list"),o=a.find("li"),l=o.length,s=s==t?"fw":"rev",r=function(e){return e=e>=l?0:e,e=0>e?l-1:e},c=function(e,i){i=i==t?"fw":i,e=e==t?"fw"==i?0:l-1:r(e);var s,c=r(e+1),d=r(e-1);e="fw"==i?c:d,s=o.eq(e).height(),o.stop().fadeTo(200,0,function(){o.css({position:"absolute",top:o.eq(e).height()}).eq(e).css("top","-="+o.eq(e).height()),a.stop().animate({height:s},250,"jswing",function(){o.stop().fadeTo(200,1)})}),"fw"==i?n.data("id",e):n.data("id",e)};"clicked"==i.type&&(clearInterval(z),c(n.data("id"),s),n.trigger("loaded")),"loaded"==i.type&&(clearInterval(z),n.data("id")==t&&(n.data("id",0),a.css("height",o.eq(n.data("id")).height())),z=setInterval(function(){c(n.data("id"))},5e3))})}),M.delegate(".arrow","click",function(t){var i=e(this),s=i.closest(".ticker-controls").prev(".ticker");t.preventDefault(),i.hasClass("next")?s.trigger("clicked"):s.trigger("clicked","rev")}),M.prev(".ticker").trigger("loaded");var H=!1;e(window).resize(function(){H&&clearTimeout(H),H=setTimeout(function(){M.prev(".ticker").trigger("loaded")},100)});var Q=n.find("#contact-form");Q.length&&Q.submit(function(){var i=e(this),s=i.find("#contact-submit"),a=i.find("input[type=text], textarea"),o=(i.find("#captcha"),i.parent().find("#contact-message")),l=s[0].innerHTML;return s.hasClass("disabled")?!1:(e.ajax({type:"POST",url:i[0].action,data:i.serialize(),dataType:"json",beforeSend:function(){o.length>0&&o.stop().slideUp(),s.css("opacity",.5).addClass("disabled")[0].innerHTML=s.data("send")}}).done(function(r){if(s.css("opacity",1).removeClass("disabled")[0].innerHTML=l,a.filter("#captcha")[0].value="",0==o.length&&(o=e("<div />",{id:"contact-message"}).css("display","none"),i.before(o)),"success"==r.result)a.val(""),o.addClass("alert alert-success1").removeClass("alert-error").html(r.message.mail_sent+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown();else if(r.message.mail_sent!=t)o.addClass("alert alert-error").removeClass("alert-success1").html(r.message.mail_sent+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown();else{var c="";jQuery.each(r.message,function(e,t){c+="<p>"+t+"</p>"}),o.addClass("alert alert-error").removeClass("alert-success1").html(c+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown()}n.find(".alert").delegate(".close","click",function(){e(this).closest(".alert").slideUp()})}),!1)});var S=n.find("#header-map");if(jQuery().goMap&&google&&google.maps){S.each(function(){e(this).goMap({markers:[{address:"Leatherhead, Surrey United Kingdom 01372 818123, United Kingdom",title:"Granth",icon:{image:"assets/images/misc/pin_red.png"}}],scrollwheel:!1,zoom:13,maptype:"ROADMAP"})});var q=!1;e(window).resize(function(){q&&clearTimeout(q),q=setTimeout(function(){e.goMap.getMarkers("markers").length&&e.goMap.map.panTo(e.goMap.getMarkers("markers")[0].getPosition())},100)})}if(jQuery().revolution){var A=n.find(".rev-slider"),U=570;A.find(".fullwidthabnner").css({height:U,maxHeight:U}).revolution({delay:9e3,startheight:U,startwidth:1020,navigationType:"none",navigationArrows:"none",touchenabled:"on",onHoverStop:"on",navOffsetHorizontal:0,navOffsetVertical:20,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,hideSliderAtLimit:0,stopAtSlide:-1,stopAfterLoops:-1,shadow:0,fullWidth:"on"}),A.delegate(".slider-control-prev, .slider-control-next","click",function(t){{var i=e(this);i.closest(".rev-slider")}t.preventDefault(),i.hasClass("slider-control-prev")?A.revprev():A.revnext()})}}),jQuery(document).ready(function(){jQuery(".gallery-box").fancybox({helpers:{title:{type:"float"}},afterShow:function(){var e=$(this.element).attr("data-download");void 0!=e&&$('<a class="fancybox-download" href="'+e+'"></a>').appendTo(this.outer)},padding:0})}),jQuery(document).ready(function(){$(".member-item img").on("error",function(e){-1==e.target.src.indexOf("gravatarmissing.png")&&(e.target.src="/packages/theme_thimbus/themes/thimbus/assets/images/gravatarmissing.png")})});
\ No newline at end of file
(function() {
/** do stuff here **/
})();
var htmlClasses=document.documentElement.className.split(" ");htmlClasses.push("js-on"),document.documentElement.className=htmlClasses.join(" ").replace(/^\s+|\s+$/g,""),function(e){e.fn.gwScrollTo=function(t){var i={duration:1e3,easing:"easeInOutCubic",target:"#top",callback:""},s=e.extend({},i,t),n=this;if(s.easing=jQuery.easing[s.easing]?s.easing:!1,!e(s.target).length)return!1;var a=e(s.target).offset();return n.is(":animated")||a.top==e(window).scrollTop()?!1:n.animate({scrollTop:e(s.target).offset().top},s.duration,s.easing,function(){this.tagName==n[0].tagName&&e.isFunction(s.callback)?s.callback.call(this):!1})}}(jQuery),jQuery(document).ready(function(e,t){var i,s,n=e("body"),a=n.find("#wrapper"),o=n.find("#header-info"),l=n.find("#logo"),r=l.find("img"),c=n.find("#primary-navigation"),d=c.find(".nav"),u=c.find(".menu-responsive"),f=n.find("#header-panel"),h=n.find("#bottom"),p=n.find("#footer"),g=e("<div />",{id:"primary-navigation-placholder"}).css({height:"45px",display:"none"}),v=o.length?o.outerHeight():0,m=l.length?l.height():0,b=c.length?c.height():0,w=f.height?f.height():0,y=h.height?h.outerHeight():0,k=10,C=35,x=function(){return v+m+2*k},T=function(){return x()+b+w};r.load(function(){m=l.length?l.height():0}),n.hasClass("stickymenu")&&g.insertBefore(c),setTimeout(function(){e(window).resize(),d.find(".nav-path-selected > a").trigger("click")},10),e(window).resize(),d.find(".nav-path-selected > a").trigger("click");var j;n.find('[class^="hide-info-box"]').delegate(this,"mouseenter mouseleave",function(e){clearTimeout(j),"mouseenter"==e.type?(A!=t&&A.find(".fullwidthabnner").revpause(),n.find(".header-overlay").addClass("visible")):j=setTimeout(function(){A!=t&&(A.find(".fullwidthabnner").hasClass("hovered")||A.find(".fullwidthabnner").revresume().closest(".slider").trigger("mousemove")),n.find(".header-overlay").removeClass("visible")},300)}),e(window).scroll(function(){f.length&&(i=u.is(":visible")?0:.6667*T()>e(window).scrollTop()?e(window).scrollTop()*-.5:.6667*T()*-.5,f.hasClass("header-parallax")&&f.css("marginBottom",i).find(".page-title").css("bottom",i*-.5+50)),s=k+(C-k)*(v-e(window).scrollTop())/v,l.css({paddingTop:function(){return u.is(":visible")?C:s>k?s:k},paddingBottom:function(){return u.is(":visible")?C:s>k?s:k}}),n.hasClass("stickymenu")&&!u.is(":visible")&&x()<=e(window).scrollTop()?(c.addClass("stickynav"),g.css("display","block"),e(document).height()-e(window).height()<=e(window).scrollTop()?p.removeClass("stickyfooter-bottom"):p.addClass("stickyfooter-bottom")):(c.removeClass("stickynav"),g.css("display","none")),e(window).scrollTop()>0?n.find("#scroll-top").fadeIn(200):n.find("#scroll-top").fadeOut(200)}),e(window).resize(function(){e(window).trigger("scroll"),v=v=o.length?o.outerHeight():0,n.hasClass("stickyfooter")&&(u.is(":visible")?(n.removeClass("stickyfooter"),a.css("marginBottom",0)):(n.addClass("stickyfooter"),y=h.height?h.outerHeight():0,a.css("marginBottom",y-5))),u.is(":visible")?(u.hasClass("open")||d.css("display","none").find('li:not(".nav-path-selected")').children("ul").css("display","none"),d.find("li").addClass("noLava").find("ul").each(function(){var t=e(this),i=t.find(">li>a").parents("ul").length;t.find(">li>a").css({paddingLeft:20*(i-1)+40+"px",backgroundPosition:20*(i-1)+20+"px -5px"}),t.find(">li.nav-path-selected>a").css({paddingLeft:20*(i-1)+40+"px",backgroundPosition:20*(i-1)+20+"px -54px"})})):(u.removeClass("open"),d.css("display","block").find("ul").css("display","block").end().find("li").removeClass("noLava").end().find("ul > li").addClass("noLava").end().find("li.nav-path-selected").trigger("mouseenter").trigger("mouseleave").end().find("li>a").css("paddingLeft","20px"))}).resize(),jQuery().magnificPopup&&(e(".magnific-popup").each(function(){e(this).magnificPopup({type:"image",closeOnContentClick:!0})}),e(".magnific-popup-html").each(function(){e(this).magnificPopup({disableOn:700,type:"iframe"})})),(e("html").hasClass("lt-ie10")||e("html").hasClass("lt-ie9"))&&n.find("input[placeholder], textarea[placeholder]").each(function(){var t=e(this);t.val(t.attr("placeholder")),t.delegate(this,"focus blur",function(e){"focus"==e.type?t.val()==t.attr("placeholder")&&t.val(""):(""==t.val()||t.val()==t.attr("placeholder"))&&t.val(t.attr("placeholder"))})}),n.find("#scroll-top").css("display","none").delegate("a","click",function(t){t.preventDefault(),e("html, body").gwScrollTo({easing:"easeInOutCubic"})}),n.find(".searchform").delegate(this,"submit",function(){var t=e(this),i=t.find('input[name="s"]');return""==i[0].value?(i.focus(),!1):void 0}),d.delegate("li a","click mouseenter mouseleave",function(t){var i=e(this),s=e(this).parent(),n=s.parents("ul").parent("li");"click"==t.type&&(this.href.match(/#/gi)?t.preventDefault():(u.find(".menu-title").html(i.text()),d.find("li.nav-path-selected").removeClass("nav-path-selected").find(">a").css("backgroundPositionY","-5px").css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -5px"}),s.addClass("nav-path-selected"),n.each(function(){var t=e(this);t.hasClass("nav-path-selected")||t.addClass("nav-path-selected").find(">a").css("backgroundPositionY","-54px").css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -54px"})}))),u.is(":visible")&&("click"==t.type?!i.closest("li").find(">ul").is(":visible")&&i.closest("li").find(">ul").length>0&&(t.preventDefault(),i.closest("li").find(">ul").slideDown(300,"easeInOutCubic").end().siblings().find("ul").slideUp(300,"easeInOutCubic")):"mouseenter"==t.type?(i.css("backgroundPositionY","-54px"),i.css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -54px"})):i.closest("li").hasClass("nav-path-selected")||(i.css("backgroundPositionY","-5px"),i.css("backgroundPosition",function(){var t=e(this).css("backgroundPosition").split(" ")[0];return t+" -5px"})))}),u.delegate(this,"click",function(){var t=e(this);d.is(":visible")?d.slideUp(300,"easeInOutCubic"):(t.addClass("open"),d.slideDown(300,"easeInOutCubic"))}),jQuery().lavaLamp&&setTimeout(function(){d.each(function(){e(this).children("li.").addClass("selectedLava").end().find("ul > li").addClass("noLava").end().lavaLamp({fx:"easeOutExpo",speed:500})})},100),n.find(".alert").delegate(".close","click",function(){e(this).closest(".alert").slideUp()}),n.find(".tabs").delegate("li","click",function(t){var i=e(this),s=i.closest(".tabs-wrapper").next(".tabs-content"),n=s.find("> li"),a=i.closest(".tabs").find("> li").index(i);t.preventDefault(),i.hasClass("current")?s.stop().animate({height:n.eq(a).find(".tab-content").outerHeight()},350,"jswing"):(i.addClass("current").siblings(".current").removeClass("current"),n.eq(a).siblings(".current").find(".tab-content").css("display","block").fadeTo(200,0,function(){s.stop().animate({height:n.eq(a).find(".tab-content").outerHeight()},350,"jswing",function(){n.eq(a).siblings(".current").removeClass("current").find(".tab-content").css("display","none"),n.eq(a).addClass("current").find(".tab-content").fadeTo(200,1)})}))}),e(window).resize(function(){n.find(".tabs li.current").trigger("click")}),n.find(".tabs-content").delegate(".tab-title","click",function(t){var i=e(this),s=i.closest("li"),n=i.closest(".tabs-content"),a=(n.find("> li"),n.prev(".tabs-wrapper").find(".tabs")),o=a.find("> li"),l=n.find("> li").index(s);t.preventDefault(),s.hasClass("current")||(s.addClass("current").find(".tab-content").stop().css({display:"none",opacity:1}).slideDown(500,"easeOutExpo"),s.siblings(".current").removeClass("current").find(".tab-content").stop().css("display","block").slideUp(500,"easeOutExpo",function(){n.css("height",s.find(".tab-content").outerHeight())}),o.eq(l).addClass("current").siblings().removeClass("current"))}),n.find(".toggles").delegate(".toggle-title","click",function(t){var i=e(this),s=i.closest("li");t.preventDefault(),s.hasClass("current")?s.removeClass("current").find(".toggle-content").stop().css("display","block").slideUp(500,"easeOutExpo"):(s.addClass("current").find(".toggle-content").stop().css("display","none").slideDown(500,"easeOutExpo"),s.siblings(".current").find(".toggle-title").trigger("click"))});var P=n.find(".progress-bars");P.find(".progress-label span").html("0%").end().find(".bar").css("width",0).bind("inview",function(t,i){var s,n=e(this),a=n.closest("li");n.addClass("trans-enabled"),i===!0&&(n.css("width",Math.round(parseFloat(n.data("width")))+"%").unbind("inview"),s=setInterval(function(){var e=Math.round(n.width()/a.width()*100);a.find(".progress-label span").html(e+"%"),e==Math.round(parseFloat(n.data("width")))&&clearInterval(s)},5))});var O=n.find(".portfolio-isotope"),I=O.find(".portfolio-filter"),L=O.find(".portfolio-posts");jQuery().isotope&&I.delegate("li","click",function(){var i,s=e(this);i=s.data("filter")==t?"*":'[data-filter*="'+s.data("filter")+'"]',setTimeout(function(){L.isotope({filter:i})},100)}),e(window).resize(function(){I.find("li.current").length?I.find("li.current").trigger("click"):I.find("li:first").trigger("click")}),jQuery().carouFredSel&&(n.find(".testimonials .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,auto:!1,height:"variable",width:"100%",pagination:{keys:!1,container:e(this).closest(".slider").find(".slider-pagination"),anchorBuilder:function(e){return'<li><a href="#" data-id="'+e+'"></a></li>'}},swipe:{onTouch:!0},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},10)}).trigger("resize")}})}),n.find(".post-slider .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,height:"variable",width:"100%",height:"auto",auto:!1,next:t.closest(".slider").find(".slider-control-next"),prev:t.closest(".slider").find(".slider-control-prev"),swipe:{onTouch:!0},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},10)}).trigger("resize")}})}),e(".brands .slides").each(function(){var t=e(this);t.carouFredSel({responsive:!0,auto:!1,width:"100%",next:t.closest(".slider").find(".slider-controls .next"),prev:t.closest(".slider").find(".slider-controls .prev"),scroll:1,swipe:{onTouch:!0},items:{width:300,visible:{min:1,max:4}},onCreate:function(){e(window).on("resize",function(){var e=setInterval(function(){0!=t.find("li:first").height()&&(clearInterval(e),t.parent().add(t).css("height",t.children().first().height()+"px"))},100)}).trigger("resize")}})}));var z,D=n.find(".ticker"),M=e(".ticker-controls");D.each(function(){e(this).bind("loaded clicked",function(i,s){var n=e(this),a=n.find(".ticker-list"),o=a.find("li"),l=o.length,s=s==t?"fw":"rev",r=function(e){return e=e>=l?0:e,e=0>e?l-1:e},c=function(e,i){i=i==t?"fw":i,e=e==t?"fw"==i?0:l-1:r(e);var s,c=r(e+1),d=r(e-1);e="fw"==i?c:d,s=o.eq(e).height(),o.stop().fadeTo(200,0,function(){o.css({position:"absolute",top:o.eq(e).height()}).eq(e).css("top","-="+o.eq(e).height()),a.stop().animate({height:s},250,"jswing",function(){o.stop().fadeTo(200,1)})}),"fw"==i?n.data("id",e):n.data("id",e)};"clicked"==i.type&&(clearInterval(z),c(n.data("id"),s),n.trigger("loaded")),"loaded"==i.type&&(clearInterval(z),n.data("id")==t&&(n.data("id",0),a.css("height",o.eq(n.data("id")).height())),z=setInterval(function(){c(n.data("id"))},5e3))})}),M.delegate(".arrow","click",function(t){var i=e(this),s=i.closest(".ticker-controls").prev(".ticker");t.preventDefault(),i.hasClass("next")?s.trigger("clicked"):s.trigger("clicked","rev")}),M.prev(".ticker").trigger("loaded");var H=!1;e(window).resize(function(){H&&clearTimeout(H),H=setTimeout(function(){M.prev(".ticker").trigger("loaded")},100)});var Q=n.find("#contact-form");Q.length&&Q.submit(function(){var i=e(this),s=i.find("#contact-submit"),a=i.find("input[type=text], textarea"),o=(i.find("#captcha"),i.parent().find("#contact-message")),l=s[0].innerHTML;return s.hasClass("disabled")?!1:(e.ajax({type:"POST",url:i[0].action,data:i.serialize(),dataType:"json",beforeSend:function(){o.length>0&&o.stop().slideUp(),s.css("opacity",.5).addClass("disabled")[0].innerHTML=s.data("send")}}).done(function(r){if(s.css("opacity",1).removeClass("disabled")[0].innerHTML=l,a.filter("#captcha")[0].value="",0==o.length&&(o=e("<div />",{id:"contact-message"}).css("display","none"),i.before(o)),"success"==r.result)a.val(""),o.addClass("alert alert-success1").removeClass("alert-error").html(r.message.mail_sent+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown();else if(r.message.mail_sent!=t)o.addClass("alert alert-error").removeClass("alert-success1").html(r.message.mail_sent+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown();else{var c="";jQuery.each(r.message,function(e,t){c+="<p>"+t+"</p>"}),o.addClass("alert alert-error").removeClass("alert-success1").html(c+'<button type="button" class="close"><span class="alert-icon-close"></span></button>').slideDown()}n.find(".alert").delegate(".close","click",function(){e(this).closest(".alert").slideUp()})}),!1)});var S=n.find("#header-map");if(jQuery().goMap&&google&&google.maps){S.each(function(){e(this).goMap({markers:[{address:"Leatherhead, Surrey United Kingdom 01372 818123, United Kingdom",title:"Granth",icon:{image:"assets/images/misc/pin_red.png"}}],scrollwheel:!1,zoom:13,maptype:"ROADMAP"})});var q=!1;e(window).resize(function(){q&&clearTimeout(q),q=setTimeout(function(){e.goMap.getMarkers("markers").length&&e.goMap.map.panTo(e.goMap.getMarkers("markers")[0].getPosition())},100)})}if(jQuery().revolution){var A=n.find(".rev-slider"),U=570;A.find(".fullwidthabnner").css({height:U,maxHeight:U}).revolution({delay:9e3,startheight:U,startwidth:1020,navigationType:"none",navigationArrows:"none",touchenabled:"on",onHoverStop:"on",navOffsetHorizontal:0,navOffsetVertical:20,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,hideSliderAtLimit:0,stopAtSlide:-1,stopAfterLoops:-1,shadow:0,fullWidth:"on"}),A.delegate(".slider-control-prev, .slider-control-next","click",function(t){{var i=e(this);i.closest(".rev-slider")}t.preventDefault(),i.hasClass("slider-control-prev")?A.revprev():A.revnext()})}}),jQuery(document).ready(function(){jQuery(".gallery-box").fancybox({helpers:{title:{type:"float"}},afterShow:function(){var e=$(this.element).attr("data-download");void 0!=e&&$('<a class="fancybox-download" href="'+e+'"></a>').appendTo(this.outer)},padding:0})}),jQuery(document).ready(function(){$(".member-item img").on("error",function(e){-1==e.target.src.indexOf("gravatarmissing.png")&&(e.target.src="/packages/theme_thimbus/themes/thimbus/assets/images/gravatarmissing.png")})});
\ No newline at end of file
/*!
* Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
*/
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?v=4.6.3');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.6.3') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.6.3') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.6.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.6.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.6.3#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}
.fa {
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* makes the font 33% larger relative to the icon container */
.fa-lg {
font-size: 1.33333333em;
line-height: 0.75em;
vertical-align: -15%;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-fw {
width: 1.28571429em;
text-align: center;
}
.fa-ul {
padding-left: 0;
margin-left: 2.14285714em;
list-style-type: none;
}
.fa-ul > li {
position: relative;
}
.fa-li {
position: absolute;
left: -2.14285714em;
width: 2.14285714em;
top: 0.14285714em;
text-align: center;
}
.fa-li.fa-lg {
left: -1.85714286em;
}
.fa-border {
padding: .2em .25em .15em;
border: solid 0.08em #eee;
border-radius: .1em;
}
.fa-pull-left {
float: left;
}
.fa-pull-right {
float: right;
}
.fa.fa-pull-left {
margin-right: .3em;
}
.fa.fa-pull-right {
margin-left: .3em;
}
/* Deprecated as of 4.4.0 */
.pull-right {
float: right;
}
.pull-left {
float: left;
}
.fa.pull-left {
margin-right: .3em;
}
.fa.pull-right {
margin-left: .3em;
}
.fa-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
.fa-pulse {
-webkit-animation: fa-spin 1s infinite steps(8);
animation: fa-spin 1s infinite steps(8);
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
.fa-rotate-90 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
-webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}
.fa-rotate-180 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
.fa-rotate-270 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
-webkit-transform: rotate(270deg);
-ms-transform: rotate(270deg);
transform: rotate(270deg);
}
.fa-flip-horizontal {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
-webkit-transform: scale(-1, 1);
-ms-transform: scale(-1, 1);
transform: scale(-1, 1);
}
.fa-flip-vertical {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
-webkit-transform: scale(1, -1);
-ms-transform: scale(1, -1);
transform: scale(1, -1);
}
:root .fa-rotate-90,
:root .fa-rotate-180,
:root .fa-rotate-270,
:root .fa-flip-horizontal,
:root .fa-flip-vertical {
filter: none;
}
.fa-stack {
position: relative;
display: inline-block;
width: 2em;
height: 2em;
line-height: 2em;
vertical-align: middle;
}
.fa-stack-1x,
.fa-stack-2x {
position: absolute;
left: 0;
width: 100%;
text-align: center;
}
.fa-stack-1x {
line-height: inherit;
}
.fa-stack-2x {
font-size: 2em;
}
.fa-inverse {
color: #fff;
}
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
.fa-glass:before {
content: "\f000";
}
.fa-music:before {
content: "\f001";
}
.fa-search:before {
content: "\f002";
}
.fa-envelope-o:before {
content: "\f003";
}
.fa-heart:before {
content: "\f004";
}
.fa-star:before {
content: "\f005";
}
.fa-star-o:before {
content: "\f006";
}
.fa-user:before {
content: "\f007";
}
.fa-film:before {
content: "\f008";
}
.fa-th-large:before {
content: "\f009";
}
.fa-th:before {
content: "\f00a";
}
.fa-th-list:before {
content: "\f00b";
}
.fa-check:before {
content: "\f00c";
}
.fa-remove:before,
.fa-close:before,
.fa-times:before {
content: "\f00d";
}
.fa-search-plus:before {
content: "\f00e";
}
.fa-search-minus:before {
content: "\f010";
}
.fa-power-off:before {
content: "\f011";
}
.fa-signal:before {
content: "\f012";
}
.fa-gear:before,
.fa-cog:before {
content: "\f013";
}
.fa-trash-o:before {
content: "\f014";
}
.fa-home:before {
content: "\f015";
}
.fa-file-o:before {
content: "\f016";
}
.fa-clock-o:before {
content: "\f017";
}
.fa-road:before {
content: "\f018";
}
.fa-download:before {
content: "\f019";
}
.fa-arrow-circle-o-down:before {
content: "\f01a";
}
.fa-arrow-circle-o-up:before {
content: "\f01b";
}
.fa-inbox:before {
content: "\f01c";
}
.fa-play-circle-o:before {
content: "\f01d";
}
.fa-rotate-right:before,
.fa-repeat:before {
content: "\f01e";
}
.fa-refresh:before {
content: "\f021";
}
.fa-list-alt:before {
content: "\f022";
}
.fa-lock:before {
content: "\f023";
}
.fa-flag:before {
content: "\f024";
}
.fa-headphones:before {
content: "\f025";
}
.fa-volume-off:before {
content: "\f026";
}
.fa-volume-down:before {
content: "\f027";
}
.fa-volume-up:before {
content: "\f028";
}
.fa-qrcode:before {
content: "\f029";
}
.fa-barcode:before {
content: "\f02a";
}
.fa-tag:before {
content: "\f02b";
}
.fa-tags:before {
content: "\f02c";
}
.fa-book:before {
content: "\f02d";
}
.fa-bookmark:before {
content: "\f02e";
}
.fa-print:before {
content: "\f02f";
}
.fa-camera:before {
content: "\f030";
}
.fa-font:before {
content: "\f031";
}
.fa-bold:before {
content: "\f032";
}
.fa-italic:before {
content: "\f033";
}
.fa-text-height:before {
content: "\f034";
}
.fa-text-width:before {
content: "\f035";
}
.fa-align-left:before {
content: "\f036";
}
.fa-align-center:before {
content: "\f037";
}
.fa-align-right:before {
content: "\f038";
}
.fa-align-justify:before {
content: "\f039";
}
.fa-list:before {
content: "\f03a";
}
.fa-dedent:before,
.fa-outdent:before {
content: "\f03b";
}
.fa-indent:before {
content: "\f03c";
}
.fa-video-camera:before {
content: "\f03d";
}
.fa-photo:before,
.fa-image:before,
.fa-picture-o:before {
content: "\f03e";
}
.fa-pencil:before {
content: "\f040";
}
.fa-map-marker:before {
content: "\f041";
}
.fa-adjust:before {
content: "\f042";
}
.fa-tint:before {
content: "\f043";
}
.fa-edit:before,
.fa-pencil-square-o:before {
content: "\f044";
}
.fa-share-square-o:before {
content: "\f045";
}
.fa-check-square-o:before {
content: "\f046";
}