PageSourceSearch

https://www.immenreuth.de/wp-content/themes/ragnarok/assets/scripts/default.js?ver=6.9

js immenreuth.de collected 2026-10-02 18:03:54 UTC 73,847 bytes, 837 lines download raw bytes

vendor: 19,541 bytes, lines 1-40
1
2/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
3(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.5",defaults:{padding:15,margin:20,
4width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},
5keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+
6(I?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,
7openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,
8isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,
9c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&
10k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||
11b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=
12setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({"onCancel.player beforeClose.player":c,"onUpdate.player":e,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},prev:function(a){var d=b.current;
13d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=
14a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),
15b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),
16y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;
17if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&"hidden"===h[0].style.overflow)&&
18(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,
19{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,
20mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=
21!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");
22"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=
23this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);
24f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,
25e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,
26outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",
27g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":
28"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?
29h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||
30h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&
31"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();
32y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&
33!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&(d.preventDefault(),
34b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=
35a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):
36(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===
37f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,
38{duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=w(l(e[g])-200),c[g]="+=200px"):(e[g]=w(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=
39b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f("html"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=
40f('<div class="fancybox-overlay"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());
40a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?
41b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),
42p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===
43f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=
44b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,
45e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.o
45pen(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+
46":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e=20===
47d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:"+(d-a)+"px;}</style>").appendTo("head")})})(window,document,jQuery);
48/*!
49 * jquery-confirm v3.3.0 (http://craftpip.github.io/jquery-confirm/)
50 * Author: Boniface Pereira
51 * Website: www.craftpip.com
52 * Contact: [email protected]
53 *
54 * Copyright 2013-2017 jquery-confirm
55 * Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
56 */
57if(typeof jQuery==="undefined"){throw new Error("jquery-confirm requires jQuery");}var jconfirm,Jconfirm;(function($,window){$.fn.confirm=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}$(this).each(function(){var $this=$(this);if($this.attr("jc-attached")){console.warn("jConfirm has already been attached to this element ",$this[0]);return;}$this.on("click",function(e){e.preventDefault();var jcOption=$.extend({},options);if($this.attr("data-title")){jcOption.title=$this.attr("data-title");}if($this.attr("data-content")){jcOption.content=$this.attr("data-content");}if(typeof jcOption.buttons=="undefined"){jcOption.buttons={};}jcOption["$target"]=$this;if($this.attr("href")&&Object.keys(jcOption.buttons).length==0){var buttons=$.extend(true,{},jconfirm.pluginDefaults.defaultButtons,(jconfirm.defaults||{}).defaultButtons||{});var firstBtn=Object.keys(buttons)[0];jcOption.buttons=buttons;jcOption.buttons[firstBtn].action=function(){location.href=$this.attr("href");};}jcOption.closeIcon=false;var instance=$.confirm(jcOption);});$this.attr("jc-attached",true);});return $(this);};$.confirm=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}if(typeof options.buttons!="object"){options.buttons={};}if(Object.keys(options.buttons).length==0){var buttons=$.extend(true,{},jconfirm.pluginDefaults.defaultButtons,(jconfirm.defaults||{}).defaultButtons||{});options.buttons=buttons;}return jconfirm(options);};$.alert=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}if(typeof options.buttons!="object"){options.buttons={};}if(Object.keys(options.buttons).length==0){var buttons=$.extend(true,{},jconfirm.pluginDefaults.defaultButtons,(jconfirm.defaults||{}).defaultButtons||{});var firstBtn=Object.keys(buttons)[0];options.buttons[firstBtn]=buttons[firstBtn];}return jconfirm(options);};$.dialog=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false,closeIcon:function(){}};}options.buttons={};if(typeof options.closeIcon=="undefined"){options.closeIcon=function(){};}options.confirmKeys=[13];return jconfirm(options);};jconfirm=function(options){if(typeof options==="undefined"){options={};}var pluginOptions=$.extend(true,{},jconfirm.pluginDefaults);if(jconfirm.defaults){pluginOptions=$.extend(true,pluginOptions,jconfirm.defaults);}pluginOptions=$.extend(true,{},pluginOptions,options);var instance=new Jconfirm(pluginOptions);jconfirm.instances.push(instance);return instance;};Jconfirm=function(options){$.extend(this,options);this._init();};Jconfirm.prototype={_init:function(){var that=this;if(!jconfirm.instances.length){jconfirm.lastFocused=$("body").find(":focus");}this._id=Math.round(Math.random()*99999);this.contentParsed=$(document.createElement("div"));if(!this.lazyOpen){setTimeout(function(){that.open();},0);}},_buildHTML:function(){var that=this;this._parseAnimation(this.animation,"o");this._parseAnimation(this.closeAnimation,"c");this._parseBgDismissAnimation(this.backgroundDismissAnimation);this._parseColumnClass(this.columnClass);this._parseTheme(this.theme);this._parseType(this.type);var template=$(this.template);template.find(".jconfirm-box").addClass(this.animationParsed).addClass(this.backgroundDismissAnimationParsed).addClass(this.typeParsed);
vendor: 20,824 bytes, line 57
57if(this.typeAnimated){template.find(".jconfirm-box").addClass("jconfirm-type-animated");}if(this.useBootstrap){template.find(".jc-bs3-row").addClass(this.bootstrapClasses.row);template.find(".jc-bs3-row").addClass("justify-content-md-center justify-content-sm-center justify-content-xs-center justify-content-lg-center");template.find(".jconfirm-box-container").addClass(this.columnClassParsed);if(this.containerFluid){template.find(".jc-bs3-container").addClass(this.bootstrapClasses.containerFluid);}else{template.find(".jc-bs3-container").addClass(this.bootstrapClasses.container);}}else{template.find(".jconfirm-box").css("width",this.boxWidth);}if(this.titleClass){template.find(".jconfirm-title-c").addClass(this.titleClass);}template.addClass(this.themeParsed);var ariaLabel="jconfirm-box"+this._id;template.find(".jconfirm-box").attr("aria-labelledby",ariaLabel).attr("tabindex",-1);template.find(".jconfirm-content").attr("id",ariaLabel);if(this.bgOpacity!==null){template.find(".jconfirm-bg").css("opacity",this.bgOpacity);}if(this.rtl){template.addClass("jconfirm-rtl");}this.$el=template.appendTo(this.container);this.$jconfirmBoxContainer=this.$el.find(".jconfirm-box-container");this.$jconfirmBox=this.$body=this.$el.find(".jconfirm-box");this.$jconfirmBg=this.$el.find(".jconfirm-bg");this.$title=this.$el.find(".jconfirm-title");this.$titleContainer=this.$el.find(".jconfirm-title-c");this.$content=this.$el.find("div.jconfirm-content");this.$contentPane=this.$el.find(".jconfirm-content-pane");this.$icon=this.$el.find(".jconfirm-icon-c");this.$closeIcon=this.$el.find(".jconfirm-closeIcon");this.$holder=this.$el.find(".jconfirm-holder");this.$btnc=this.$el.find(".jconfirm-buttons");this.$scrollPane=this.$el.find(".jconfirm-scrollpane");that.setStartingPoint();this._contentReady=$.Deferred();this._modalReady=$.Deferred();this.$holder.css({"padding-top":this.offsetTop,"padding-bottom":this.offsetBottom,});this.setTitle();this.setIcon();this._setButtons();this._parseContent();this.initDraggable();if(this.isAjax){this.showLoading(false);}$.when(this._contentReady,this._modalReady).then(function(){if(that.isAjaxLoading){setTimeout(function(){that.isAjaxLoading=false;that.setContent();that.setTitle();that.setIcon();setTimeout(function(){that.hideLoading(false);that._updateContentMaxHeight();},100);if(typeof that.onContentReady==="function"){that.onContentReady();}},50);}else{that._updateContentMaxHeight();that.setTitle();that.setIcon();if(typeof that.onContentReady==="function"){that.onContentReady();}}if(that.autoClose){that._startCountDown();}});this._watchContent();if(this.animation==="none"){this.animationSpeed=1;this.animationBounce=1;}this.$body.css(this._getCSS(this.animationSpeed,this.animationBounce));this.$contentPane.css(this._getCSS(this.animationSpeed,1));this.$jconfirmBg.css(this._getCSS(this.animationSpeed,1));this.$jconfirmBoxContainer.css(this._getCSS(this.animationSpeed,1));},_typePrefix:"jconfirm-type-",typeParsed:"",_parseType:function(type){this.typeParsed=this._typePrefix+type;},setType:function(type){var oldClass=this.typeParsed;this._parseType(type);this.$jconfirmBox.removeClass(oldClass).addClass(this.typeParsed);},themeParsed:"",_themePrefix:"jconfirm-",setTheme:function(theme){var previous=this.theme;this.theme=theme||this.theme;this._parseTheme(this.theme);if(previous){this.$el.removeClass(previous);}this.$el.addClass(this.themeParsed);this.theme=theme;},_parseTheme:function(theme){var that=this;theme=theme.split(",");$.each(theme,function(k,a){if(a.indexOf(that._themePrefix)===-1){theme[k]=that._themePrefix+$.trim(a);}});this.themeParsed=theme.join(" ").toLowerCase();},backgroundDismissAnimationParsed:"",_bgDismissPrefix:"jconfirm-hilight-",_parseBgDismissAnimation:function(bgDismissAnimation){var animation=bgDismissAnimation.split(",");var that=this;$.each(animation,function(k,a){if(a.indexOf(that._bgDismissPrefix)===-1){animation[k]=that._bgDismissPrefix+$.trim(a);}});this.backgroundDismissAnimationParsed=animation.join(" ").toLowerCase();},animationParsed:"",closeAnimationParsed:"",_animationPrefix:"jconfirm-animation-",setAnimation:function(animation){this.animation=animation||this.animation;this._parseAnimation(this.animation,"o");},_parseAnimation:function(animation,which){which=which||"o";var animations=animation.split(",");var that=this;$.each(animations,function(k,a){if(a.indexOf(that._animationPrefix)===-1){animations[k]=that._animationPrefix+$.trim(a);}});var a_string=animations.join(" ").toLowerCase();if(which==="o"){this.animationParsed=a_string;}else{this.closeAnimationParsed=a_string;}return a_string;},setCloseAnimation:function(closeAnimation){this.closeAnimation=closeAnimation||this.closeAnimation;this._parseAnimation(this.closeAnimation,"c");},setAnimationSpeed:function(speed){this.animationSpeed=speed||this.animationSpeed;},columnClassParsed:"",setColumnClass:function(colClass){if(!this.useBootstrap){console.warn("cannot set columnClass, useBootstrap is set to false");return;}this.columnClass=colClass||this.columnClass;this._parseColumnClass(this.columnClass);this.$jconfirmBoxContainer.addClass(this.columnClassParsed);},_updateContentMaxHeight:function(){var height=$(window).height()-(this.$jconfirmBox.outerHeight()-this.$contentPane.outerHeight())-(this.offsetTop+this.offsetBottom);this.$contentPane.css({"max-height":height+"px"});},setBoxWidth:function(width){if(this.useBootstrap){console.warn("cannot set boxWidth, useBootstrap is set to true");return;}this.boxWidth=width;this.$jconfirmBox.css("width",width);},_parseColumnClass:function(colClass){colClass=colClass.toLowerCase();var p;switch(colClass){case"xl":case"xlarge":p="col-md-12";break;case"l":case"large":p="col-md-8 col-md-offset-2";break;case"m":case"medium":p="col-md-6 col-md-offset-3";break;case"s":case"small":p="col-md-4 col-md-offset-4";break;case"xs":case"xsmall":p="col-md-2 col-md-offset-5";break;default:p=colClass;}this.columnClassParsed=p;},initDraggable:function(){var that=this;var $t=this.$titleContainer;this.resetDrag();if(this.draggable){$t.on("mousedown",function(e){$t.addClass("jconfirm-hand");that.mouseX=e.clientX;that.mouseY=e.clientY;that.isDrag=true;});$(window).on("mousemove."+this._id,function(e){if(that.isDrag){that.movingX=e.clientX-that.mouseX+that.initialX;that.movingY=e.clientY-that.mouseY+that.initialY;that.setDrag();}});$(window).on("mouseup."+this._id,function(){$t.removeClass("jconfirm-hand");if(that.isDrag){that.isDrag=false;that.initialX=that.movingX;that.initialY=that.movingY;}});}},resetDrag:function(){this.isDrag=false;this.initialX=0;this.initialY=0;this.movingX=0;this.movingY=0;this.mouseX=0;this.mouseY=0;this.$jconfirmBoxContainer.css("transform","translate("+0+"px, "+0+"px)");},setDrag:function(){if(!this.draggable){return;}this.alignMiddle=false;var boxWidth=this.$jconfirmBox.outerWidth();var boxHeight=this.$jconfirmBox.outerHeight();var windowWidth=$(window).width();var windowHeight=$(window).height();var that=this;var dragUpdate=1;if(that.movingX%dragUpdate===0||that.movingY%dragUpdate===0){if(that.dragWindowBorder){var leftDistance=(windowWidth/2)-boxWidth/2;var topDistance=(windowHeight/2)-boxHeight/2;topDistance-=that.dragWindowGap;leftDistance-=that.dragWindowGap;if(leftDistance+that.movingX<0){that.movingX=-leftDistance;}else{if(leftDistance-that.movingX<0){that.movingX=leftDistance;}}if(topDistance+that.movingY<0){that.movingY=-topDistance;}else{if(topDistance-that.movingY<0){that.movingY=topDistance;}}}that.$jconfirmBoxContainer.css("transform","translate("+that.movingX+"px, "+that.movingY+"px)");}},_scrollTop:function(){if(typeof pageYOffset!=="undefined"){return pageYOffset;}else{var B=document.body;var D=document.documentElement;D=(D.clientHeight)?D:B;return D.scrollTop;}},_watchContent:function(){var that=this;if(this._timer){clearInterval(this._timer);}var prevContentHeight=0;this._timer=setInterval(function(){if(that.smoothContent){var contentHeight=that.$content.outerHeight()||0;if(contentHeight!==prevContentHeight){that.$contentPane.css({height:contentHeight}).scrollTop(0);prevContentHeight=contentHeight;}var wh=$(window).height();var total=that.offsetTop+that.offsetBottom+that.$jconfirmBox.height()-that.$contentPane.height()+that.$content.height();if(total<wh){that.$contentPane.addClass("no-scroll");}else{that.$contentPane.removeClass("no-scroll");}}},this.watchInterval);},_overflowClass:"jconfirm-overflow",_hilightAnimating:false,highlight:function(){this.hiLightModal();},hiLightModal:function(){var that=this;if(this._hilightAnimating){return;}that.$body.addClass("hilight");var duration=parseFloat(that.$body.css("animation-duration"))||2;this._hilightAnimating=true;setTimeout(function(){that._hilightAnimating=false;that.$body.removeClass("hilight");},duration*1000);},_bindEvents:function(){var that=this;this.boxClicked=false;this.$scrollPane.click(function(e){if(!that.boxClicked){var buttonName=false;var shouldClose=false;var str;if(typeof that.backgroundDismiss=="function"){str=that.backgroundDismiss();}else{str=that.backgroundDismiss;}if(typeof str=="string"&&typeof that.buttons[str]!="undefined"){buttonName=str;shouldClose=false;}else{if(typeof str=="undefined"||!!(str)==true){shouldClose=true;}else{shouldClose=false;}}if(buttonName){var btnResponse=that.buttons[buttonName].action.apply(that);shouldClose=(typeof btnResponse=="undefined")||!!(btnResponse);}if(shouldClose){that.close();}else{that.hiLightModal();}}that.boxClicked=false;});this.$jconfirmBox.click(function(e){that.boxClicked=true;});var isKeyDown=false;$(window).on("jcKeyDown."+that._id,function(e){if(!isKeyDown){isKeyDown=true;}});$(window).on("keyup."+that._id,function(e){if(isKeyDown){that.reactOnKey(e);isKeyDown=false;}});$(window).on("resize."+this._id,function(){that._updateContentMaxHeight();setTimeout(function(){that.resetDrag();},100);});},_cubic_bezier:"0.36, 0.55, 0.19",_getCSS:function(speed,bounce){return{"-webkit-transition-duration":speed/1000+"s","transition-duration":speed/1000+"s","-webkit-transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+bounce+")","transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+bounce+")"};},_setButtons:function(){var that=this;var total_buttons=0;if(typeof this.buttons!=="object"){this.buttons={};}$.each(this.buttons,function(key,button){total_buttons+=1;if(typeof button==="function"){that.buttons[key]=button={action:button};}that.buttons[key].text=button.text||key;that.buttons[key].btnClass=button.btnClass||"btn-default";that.buttons[key].action=button.action||function(){};that.buttons[key].keys=button.keys||[];that.buttons[key].isHidden=button.isHidden||false;that.buttons[key].isDisabled=button.isDisabled||false;$.each(that.buttons[key].keys,function(i,a){that.buttons[key].keys[i]=a.toLowerCase();});var button_element=$('<button type="button" class="btn"></button>').html(that.buttons[key].text).addClass(that.buttons[key].btnClass).prop("disabled",that.buttons[key].isDisabled).css("display",that.buttons[key].isHidden?"none":"").click(function(e){e.preventDefault();var res=that.buttons[key].action.apply(that,[that.buttons[key]]);that.onAction.apply(that,[key,that.buttons[key]]);that._stopCountDown();if(typeof res==="undefined"||res){that.close();}});that.buttons[key].el=button_element;that.buttons[key].setText=function(text){button_element.html(text);};that.buttons[key].addClass=function(className){button_element.addClass(className);};that.buttons[key].removeClass=function(className){button_element.removeClass(className);};that.buttons[key].disable=function(){that.buttons[key].isDisabled=true;button_element.prop("disabled",true);};that.buttons[key].enable=function(){that.buttons[key].isDisabled=false;button_element.prop("disabled",false);};that.buttons[key].show=function(){that.buttons[key].isHidden=false;button_element.css("display","");};that.buttons[key].hide=function(){that.buttons[key].isHidden=true;button_element.css("display","none");};that["$_"+key]=that["$$"+key]=button_element;that.$btnc.append(button_element);});if(total_buttons===0){this.$btnc.hide();}if(this.closeIcon===null&&total_buttons===0){this.closeIcon=true;}if(this.closeIcon){if(this.closeIconClass){var closeHtml='<i class="'+this.closeIconClass+'"></i>';this.$closeIcon.html(closeHtml);}this.$closeIcon.click(function(e){e.preventDefault();var buttonName=false;var shouldClose=false;var str;if(typeof that.closeIcon=="function"){str=that.closeIcon();}else{str=that.closeIcon;}if(typeof str=="string"&&typeof that.buttons[str]!="undefined"){buttonName=str;shouldClose=false;}else{if(typeof str=="undefined"||!!(str)==true){shouldClose=true;}else{shouldClose=false;}}if(buttonName){var btnResponse=that.buttons[buttonName].action.apply(that);shouldClose=(typeof btnResponse=="undefined")||!!(btnResponse);}if(shouldClose){that.close();}});this.$closeIcon.show();}else{this.$closeIcon.hide();}},setTitle:function(string,force){force=force||false;if(typeof string!=="undefined"){if(typeof string=="string"){this.title=string;}else{if(typeof string=="function"){if(typeof string.promise=="function"){console.error("Promise was returned from title function, this is not supported.");}var response=string();if(typeof response=="string"){this.title=response;}else{this.title=false;}}else{this.title=false;}}}if(this.isAjaxLoading&&!force){return;}this.$title.html(this.title||"");this.updateTitleContainer();},setIcon:function(iconClass,force){force=force||false;if(typeof iconClass!=="undefined"){if(typeof iconClass=="string"){this.icon=iconClass;}else{if(typeof iconClass==="function"){var response=iconClass();if(typeof response=="string"){this.icon=response;}else{this.icon=false;}}else{this.icon=false;}}}if(this.isAjaxLoading&&!force){return;}this.$icon.html(this.icon?'<i class="'+this.icon+'"></i>':"");this.updateTitleContainer();},updateTitleContainer:function(){if(!this.title&&!this.icon){this.$titleContainer.hide();}else{this.$titleContainer.show();}},setContentPrepend:function(content,force){if(!content){return;}this.contentParsed.prepend(content);},setContentAppend:function(content){if(!content){return;}this.contentParsed.append(content);},setContent:function(content,force){force=!!force;var that=this;if(content){this.contentParsed.html("").append(content);}if(this.isAjaxLoading&&!force){return;}this.$content.html("");this.$content.append(this.contentParsed);setTimeout(function(){that.$body.find("input[autofocus]:visible:first").focus();},100);},loadingSpinner:false,showLoading:function(disableButtons){this.loadingSpinner=true;this.$jconfirmBox.addClass("loading");if(disableButtons){this.$btnc.find("button").prop("disabled",true);}},hideLoading:function(enableButtons){this.loadingSpinner=false;this.$jconfirmBox.removeClass("loading");if(enableButtons){this.$btnc.find("button").prop("disabled",false);}},ajaxResponse:false,contentParsed:"",isAjax:false,isAjaxLoading:false,_parseContent:function(){var that=this;var e="&nbsp;";if(typeof this.content=="function"){var res=this.content.apply(this);if(typeof res=="string"){this.content=res;}else{if(typeof res=="object"&&typeof res.always=="function"){this.isAjax=true;this.isAjaxLoading=true;res.always(function(data,status,xhr){that.ajaxResponse={data:data,status:status,xhr:xhr};that._contentReady.resolve(data,status,xhr);if(typeof that.contentLoaded=="function"){that.contentLoaded(data,status,xhr);}});this.content=e;}else{this.content=e;}}}if(typeof this.content=="string"&&this.content.substr(0,4).toLowerCase()==="url:"){this.isAjax=true;this.isAjaxLoading=true;var u=this.content.substring(4,this.content.length);$.get(u).done(function(html){that.contentParsed.html(html);}).always(function(data,status,xhr){that.ajaxResponse={data:data,status:status,xhr:xhr};that._contentReady.resolve(data,status,xhr);if(typeof that.contentLoaded=="function"){that.contentLoaded(data,status,xhr);}});}if(!this.content){this.content=e;}if(!this.isAjax){this.contentParsed.html(this.content);this.setContent();that._contentReady.resolve();}},_stopCountDown:function(){clearInterval(this.autoCloseInterval);if(this.$cd){this.$cd.remove();}},_startCountDown:function(){var that=this;var opt=this.autoClose.split("|");if(opt.length!==2){console.error("Invalid option for autoClose. example 'close|10000'");return false;}var button_key=opt[0];var time=parseInt(opt[1]);if(typeof this.buttons[button_key]==="undefined"){console.error("Invalid button key '"+button_key+"' for autoClose");return false;}var seconds=Math.ceil(time/1000);this.$cd=$('<span class="countdown"> ('+seconds+")</span>").appendTo(this["$_"+button_key]);this.autoCloseInterval=setInterval(function(){that.$cd.html(" ("+(seconds-=1)+") ");if(seconds<=0){that["$$"+button_key].trigger("click");that._stopCountDown();}},1000);},_getKey:function(key){switch(key){case 192:return"tilde";case 13:return"enter";case 16:return"shift";case 9:return"tab";case 20:return"capslock";case 17:return"ctrl";case 91:return"win";case 18:return"alt";case 27:return"esc";case 32:return"space";}var initial=String.fromCharCode(key);if(/^[A-z0-9]+$/.test(initial)){return initial.toLowerCase();}else{return false;}},reactOnKey:function(e){var that=this;var a=$(".jconfirm");if(a.eq(a.length-1)[0]!==this.$el[0]){return false;}var key=e.which;if(this.$content.find(":input").is(":focus")&&/13|32/.test(key)){return false;}var keyChar=this._getKey(key);if(keyChar==="esc"&&this.escapeKey){if(this.escapeKey===true){this.$scrollPane.trigger("click");}else{if(typeof this.escapeKey==="string"||typeof this.escapeKey==="function"){var buttonKey;if(typeof this.escapeKey==="function"){buttonKey=this.escapeKey();}else{buttonKey=this.escapeKey;}if(buttonKey){if(typeof this.buttons[buttonKey]==="undefined"){console.warn("Invalid escapeKey, no buttons found with key "+buttonKey);}else{this["$_"+buttonKey].trigger("click");}}}}}$.each(this.buttons,function(key,button){if(button.keys.indexOf(keyChar)!=-1){that["$_"+key].trigger("click");}});},setDialogCenter:function(){console.info("setDialogCenter is deprecated, dialogs are centered with CSS3 tables");},_unwatchContent:function(){clearInterval(this._timer);},close:function(){var that=this;if(typeof this.onClose==="function"){this.onClose();}this._unwatchContent();$(window).unbind("resize."+this._id);$(window).unbind("keyup."+this._id);$(window).unbind("jcKeyDown."+this._id);if(this.draggable){$(window).unbind("mousemove."+this._id);$(window).unbind("mouseup."+this._id);this.$titleContainer.unbind("mousedown");}that.$el.removeClass(that.loadedClass);$("body").removeClass("jconfirm-no-scroll-"+that._id);that.$jconfirmBoxContainer.removeClass("jconfirm-no-transition");setTimeout(function(){that.$body.addClass(that.closeAnimationParsed);that.$jconfirmBg.addClass("jconfirm-bg-h");var closeTimer=(that.closeAnimation==="none")?1:that.animationSpeed;setTimeout(function(){that.$el.remove();var l=jconfirm.instances;var i=jconfirm.instances.length-1;for(i;i>=0;i--){if(jconfirm.instances[i]._id===that._id){jconfirm.instances.splice(i,1);}}if(!jconfirm.instances.length){if(that.scrollToPreviousElement&&jconfirm.lastFocused&&jconfirm.lastFocused.length&&$.contains(document,jconfirm.lastFocused[0])){var $lf=jconfirm.lastFocused;if(that.scrollToPreviousElementAnimate){var st=$(window).scrollTop();var ot=jconfirm.lastFocused.offset().top;var wh=$(window).height();if(!(ot>st&&ot<(st+wh))){var scrollTo=(ot-Math.round((wh/3)));$("html, body").animate({scrollTop:scrollTo},that.animationSpeed,"swing",function(){$lf.focus();});}else{$lf.focus();}}else{$lf.focus();}jconfirm.lastFocused=false;}}if(typeof that.onDestroy==="function"){that.onDestroy();}},closeTimer*0.4);},50);return true;},open:function(){if(this.isOpen()){return false;}this._buildHTML();this._bindEvents();this._open();return true;},setStartingPoint:function(){var el=false;if(this.animateFromElement!==true&&this.animateFromElement){el=this.animateFromElement;jconfirm.lastClicked=false;}else{if(jconfirm.lastClicked&&this.animateFromElement===true){el=jconfirm.lastClicked;jconfirm.lastClicked=false;}else{return false;}}if(!el){return false;}var offset=el.offset();var iTop=el.outerHeight()/2;var iLeft=el.outerWidth()/2;iTop-=this.$jconfirmBox.outerHeight()/2;iLeft-=this.$jconfirmBox.outerWidth()/2;var sourceTop=offset.top+iTop;sourceTop=sourceTop-this._scrollTop();var sourceLeft=offset.left+iLeft;var wh=$(window).height()/2;var ww=$(window).width()/2;var targetH=wh-this.$jconfirmBox.outerHeight()/2;var targetW=ww-this.$jconfirmBox.outerWidth()/2;sourceTop-=targetH;sourceLeft-=targetW;if(Math.abs(sourceTop)>wh||Math.abs(sourceLeft)>ww){return false;}this.$jconfirmBoxContainer.css("transform","translate("+sourceLeft+"px, "+sourceTop+"px)");},_open:function(){var that=this;if(typeof that.onOpenBefore==="function"){that.onOpenBefore();}this.$body.removeClass(this.animationParsed);
57this.$jconfirmBg.removeClass("jconfirm-bg-h");this.$body.focus();that.$jconfirmBoxContainer.css("transform","translate("+0+"px, "+0+"px)");setTimeout(function(){that.$body.css(that._getCSS(that.animationSpeed,1));that.$body.css({"transition-property":that.$body.css("transition-property")+", margin"});that.$jconfirmBoxContainer.addClass("jconfirm-no-transition");that._modalReady.resolve();if(typeof that.onOpen==="function"){that.onOpen();}that.$el.addClass(that.loadedClass);},this.animationSpeed);},loadedClass:"jconfirm-open",isClosed:function(){return !this.$el||this.$el.css("display")==="";},isOpen:function(){return !this.isClosed();},toggle:function(){if(!this.isOpen()){this.open();}else{this.close();}}};jconfirm.instances=[];jconfirm.lastFocused=false;jconfirm.pluginDefaults={template:'<div class="jconfirm"><div class="jconfirm-bg jconfirm-bg-h"></div><div class="jconfirm-scrollpane"><div class="jconfirm-row"><div class="jconfirm-cell"><div class="jconfirm-holder"><div class="jc-bs3-container"><div class="jc-bs3-row"><div class="jconfirm-box-container jconfirm-animated"><div class="jconfirm-box" role="dialog" aria-labelledby="labelled" tabindex="-1"><div class="jconfirm-closeIcon">&times;</div><div class="jconfirm-title-c"><span class="jconfirm-icon-c"></span><span class="jconfirm-title"></span></div><div class="jconfirm-content-pane"><div class="jconfirm-content"></div></div><div class="jconfirm-buttons"></div><div class="jconfirm-clear"></div></div></div></div></div></div></div></div></div></div>',title:"Hello",titleClass:"",type:"default",typeAnimated:true,draggable:true,dragWindowGap:15,dragWindowBorder:true,animateFromElement:true,alignMiddle:true,smoothContent:true,content:"Are you sure to continue?",buttons:{},defaultButtons:{ok:{action:function(){}},close:{action:function(){}}},contentLoaded:function(){},icon:"",lazyOpen:false,bgOpacity:null,theme:"light",animation:"scale",closeAnimation:"scale",animationSpeed:400,animationBounce:1,escapeKey:true,rtl:false,container:"body",containerFluid:false,backgroundDismiss:false,backgroundDismissAnimation:"shake",autoClose:false,closeIcon:null,closeIconClass:false,watchInterval:100,columnClass:"col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1",boxWidth:"50%",scrollToPreviousElement:true,scrollToPreviousElementAnimate:true,useBootstrap:true,offsetTop:40,offsetBottom:40,bootstrapClasses:{container:"container",containerFluid:"container-fluid",row:"row"},onContentReady:function(){},onOpenBefore:function(){},onOpen:function(){},onClose:function(){},onDestroy:function(){},onAction:function(){}};var keyDown=false;$(window).on("keydown",function(e){if(!keyDown){var $target=$(e.target);var pass=false;if($target.closest(".jconfirm-box").length){pass=true;}if(pass){$(window).trigger("jcKeyDown");}keyDown=true;}});$(window).on("keyup",function(){keyDown=false;});jconfirm.lastClicked=false;$(document).on("mousedown","button, a",function(){jconfirm.lastClicked=$(this);});})(jQuery,window);
58if( typeof document.documentElement.classList != 'undefined' ) {
59	document.documentElement.classList.remove( 'no-js' );
60	document.documentElement.classList.add( 'js' );
61}
62
63Number.prototype.formatMoney = function(c, d, t){
64    var n = this,
65    i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "",
66    j = ( (j = i.length) > 3 ? (j % 3) : 0 ),
67    s = (n < 0 ? "-" : "");
68
69    c = (isNaN(c = Math.abs(c)) ? 2 : c);
70    d = (d === undefined ? "." : d);
71    t = (t === undefined ? "," : t);
72
73    return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
74};
75
76var w = jQuery(window);
77
78jQuery(function($) {
79
80	function scrollTo ( target ) {
81		var top = jQuery( target ).offset().top;
82		jQuery('html,body').animate( { 'scrollTop': top + 'px' }, (top/100 * 250) );
83	}
84
85	function callAjax( event ) {
86		event.preventDefault();
87
88		var that = jQuery( this ),
89			target = that.data( 'target' ) || '.content',
90			source = that.attr( 'href' ),
91			containerSource = that.data( 'source' ) || '.content',
92			append = that.data( 'append' ) || false,
93			move = that.data('moveafter') || false;
94
95		var ajaxObject = {
96		    type: 'GET',
97		    url: source,
98		    beforeSend: function() {
99
100		    	target = jQuery( target );
101				target.show();
102
103		      	target
104		        .css({
105		         'height': jQuery(target).outerHeight() + 'px'   // set same height
106		        })
107		        .removeClass('is-hidden')
108		        .addClass( 'is-reloading' );  // add reloading class
109		        if( ! append )
110		        	target.html( '' ); // remove inner content
111		    },
112		    success: function( data ) {
113		    	if( data !== "" ) {
114
115					var newSource = jQuery( containerSource, data );
116
117					if( newSource.length === 0 ) newSource = data;
118			    	if( append ) {
119						target.append( newSource ).removeClass( 'is-reloading' );
120					}
121					else {
122						target.html( newSource ).removeClass( 'is-reloading' );
123					}
124
125					target.css( 'height', '' );
126
127					jQuery( '.js-ajax', target ).off( 'click', callAjax).on( 'click', callAjax);
128					jQuery( '.portfolio-link.js-ajax' ).on( 'click', function() {
129						portfolioLinkActions( this );
130					});
131
132					target.trigger('ajax:success', that );
133				}
134				else {
135					target.removeClass( 'is-reloading' );
136				}
137		    },
138		    error: function( error ) {
139		      console.log( error );
140		    }
141		};
142
143		if( typeof that.data('post') !== "undefined" ) {
144			ajaxObject.data = that.data('post');
145		}
146
147		jQuery.ajax( ajaxObject );
148
149		return false;
150	}
151	jQuery( document ).on( 'click', '.js-ajax', callAjax);
152
153/*	jQuery( document ).on( 'click', '.portfolio-link.js-ajax', function() {
154		portfolioLinkActions( this );
155	});
156
157	jQuery( '#portfolioPreview' ).on( 'ajax:success', function( evt, srcLink ) {
158		var target = jQuery( this ),
159			nextArrow = jQuery( '<span></span>' ).addClass('portfolio-preview-next'),
160			prevArrow = jQuery( '<span></span>' ).addClass('portfolio-preview-prev'),
161			sourceLink = jQuery( srcLink ),
162			linkSelector = '.' + sourceLink.attr('class').split(' ').join('.'),
163			previousLink = sourceLink.parent().prev().find( linkSelector ),
164			nextLink = sourceLink.parent().next().find( linkSelector );
165
166		// nextLink not found because the next element is the preview
167		if( nextLink.length === 0 && sourceLink.parent().next()[0] === target[0] ) {
168			// find first in all next that are not preview
169			nextLink = sourceLink.parent().nextAll().not( target[0] ).first().find( linkSelector );
170		}
171
172		// next link found
173		if( nextLink.length > 0 ) {
174			nextArrow.on( 'click', function(){
175				nextLink.click();
176			});
177			nextArrow.appendTo( target );
178		}
179
180		// previous link found
181		if( previousLink.length > 0 ) {
182			prevArrow.on( 'click', function(){
183				previousLink.click();
184			});
185			prevArrow.appendTo( target );
186		}
187
188	} );
189
190	function portfolioLinkActions( el ) {
191		var that = jQuery( el ),
192			targetSelector = that.data( 'target' ) || '.content',
193			target = jQuery( targetSelector ).detach();
194
195		var thatWrap = that.parent();
196		var elAfter;
197
198		if( jQuery( window ).checkMediaQuery( 'sm', 'max' ) ) {
199			elAfter = thatWrap;
200		}
201		else if( jQuery( window ).checkMediaQuery( 'lg', 'max' ) ) {
202			elAfter = thatWrap.nextAll( 'div:nth-child(2n+2)' ).first();
203
204			if( elAfter.length && thatWrap.is(':nth-child(2n+2)') ) {
205				elAfter = thatWrap;
206			}
207		}
208		else if( jQuery( window ).checkMediaQuery( 'xl', 'max' ) ){
209			elAfter = thatWrap.nextAll( 'div:nth-child(3n+3)' ).first();
210
211			if( ! elAfter.length || thatWrap.is(':nth-child(3n+3)') ) {
212				elAfter = thatWrap;
213			}
214		}
215		else {
216			elAfter = thatWrap.nextAll( 'div:nth-child(4n+4)' ).first();
217
218			if( ! elAfter.length || thatWrap.is(':nth-child(4n+4)') ) {
219				elAfter = thatWrap;
220			}
221		}
222
223		target.insertAfter( elAfter );
224
225		// scroll to link
226		jQuery( 'body, html' ).animate({'scrollTop': thatWrap.offset().top - 50 }, 150);
227
228		thatWrap.siblings().removeClass( 'is-active' );
229		thatWrap.addClass('is-active');
230	}
231
232	jQuery( '.js-portfolioLoadMore' ).ajaxComplete(function(event, xhr, settings) {
233		// if portfolio loaded
234		if( settings.url.indexOf( 'portfolio_load' ) > 0 ) {
235			// raise offset on button
236			var postData = jQuery( this ).data( 'post' );
237			postData.offset = postData.offset + postData.ppp;
238			jQuery( this ).data( 'post', postData );
239		}
240	});*/
241
242console.log('equalHeight');
243    jQuery.fn.equalHeight = function( params ) {
244        var defaults = {
245                minHeight : 0,
246                viewportWidth : 0,
247                viewportWidthMax : 0
248            },
249            settings = jQuery.extend({}, defaults, params),
250            el = jQuery(this);
251            // reset height
252            el.css( 'height', '' );
253
254        if( settings.viewportWidth <= jQuery(window).innerWidth() && ( settings.viewportWidthMax === 0 || settings.viewportWidthMax >= jQuery(window).innerWidth() ) ) {
255            var mh = settings.minHeight;
256
257            el.each( function() {
258            	mh = Math.max( mh, jQuery(this).outerHeight() );
259            })
260              .each( function() {
261                jQuery(this).css( 'height', mh + 'px' );
262            });
263        }
264
265        return this;
266    };
267
268    jQuery.fn.doubleTapToGo = function(action) {
269
270		if (!('ontouchstart' in window) &&
271			!navigator.msMaxTouchPoints &&
272			!navigator.userAgent.toLowerCase().match( /windows phone os 7/i )) return false;
273
274		var curItem = false;
275
276		if (action === 'unbind') {
277			this.each(function() {
278				jQuery(this).off();
279				jQuery(document).off('click touchstart MSPointerDown', handleTouch);
280			});
281
282		} else {
283			this.each(function() {
284
285				jQuery( this ).on( 'click', function(e) {
286					var item = jQuery(this);
287					if (item[0] != curItem[0]) {
288						e.preventDefault();
289						curItem = item;
290					}
291				});
292
293				jQuery(document).on('click touchstart MSPointerDown', handleTouch);
294
295			});
296		}
297
298		function handleTouch(e) {
299			var resetItem = true,
300				parents = jQuery(e.target).parents();
301
302			for (var i = 0; i < parents.length; i++)
303				if (parents[i] == curItem[0])
304					resetItem = false;
305
306			if(resetItem)
307				curItem = false;
308		}
309
310		return this;
311	};
312
313	jQuery.fn.checkMediaQuery = function( viewport, view ) {
314		if( typeof window.matchMedia == 'undefined' )
315			return false;
316
317		if( typeof view === "undefined" )
318			view = 'min';
319
320		var portsizes = {
321			xs: 0,
322			sm: 480,
323			md: 780,
324			lg: 1024,
325			xl: 1280,
326			xxl: 1600,
327		};
328
329		var mediaQuery = 'screen and ';
330
331		switch( view ) {
332			case 'max':
333				mediaQuery = mediaQuery + '(max-width: ' + ( portsizes[viewport] - 1 ) + 'px)';
334				break;
335			case 'only':
336				var keys = Object.keys( portsizes ),
337					idx = keys.indexOf( viewport );
338				mediaQuery = mediaQuery + '(min-width: ' + ( portsizes[viewport]  ) + 'px) and (max-width: '+ ( portsizes[ keys[idx+1] ] - 1 ) + 'px)';
339				break;
340
341			default :
342				mediaQuery = mediaQuery + '(min-width: ' + portsizes[viewport] + 'px)';
343		}
344
345		res = window.matchMedia( mediaQuery );
346		return res.matches;
347	};
348
349	// if( typeof Modernizr != 'undefined' ) {
350	// 	if( !Modernizr.inputtypes.date ) {
351
352	// 		if( jQuery('input[type="date"]').length > 0 ) {
353	// 			jQuery('input[type="date"]').datepicker({
354	// 				// altFormat : 'yy-mm-dd',
355	// 				dateFormat: "dd.mm.yy",
356	// 				buttonImage: "/wp-content/themes/wp-jb-theme/assets/images/icon-calendar.png"
357	// 			});
358	// 		}
359	// 	}
360	// }
361
362	/**
363	 * Offcanvas Controller
364	 */
365	var offcanvasPage = jQuery( '.page[class*="page--offcanvas"]' );
366
367	if( offcanvasPage.length > 0 ) {
368
369		jQuery( '.offcanvas-switch' ).on( 'click tap', function(){
370			offcanvasPage.toggleClass( 'offcanvas-open' );
371		});
372	}
373
374	// Closable (Hidable) Divs
375	jQuery('[data-closable]').each( function(){
376		addCloseButton( this );
377
378		// TODO
379		// observerMutation
380		jQuery( this ).on( 'DOMSubtreeModified', function(){
381			if( jQuery( 'span.icon-cancel' ).length === 0 ) {
382				addCloseButton( this );
383			}
384		});
385	});
386
387	function addCloseButton( el ) {
388		var closeButton = jQuery( '<span class="icon-cancel"></span>' );
389		jQuery( el ).prepend( closeButton );
390		closeButton.on( 'click', function(){
391			jQuery(this).parent().hide();
392		});
393	}
394
395
396
397    jQuery( '.iw' ).each( function(){
398    	var that = jQuery( this );
399    	if( jQuery( '.linkbox', that ).length > 0 )
400    		jQuery( '.linkbox-description', that ).equalHeight();
401    } );
402
403	// Hero Slider
404	if( jQuery('.hero--slider').length ) {
405	    var sliderWrap = jQuery('.hero--slider');
406	    sliderWrap.each( function() {
407	    	var slider =  jQuery('.js-slider', this ),
408	    		settings = {
409		        'speed': slider.data('sliderspeed') || 1500,
410		        'pause': slider.data('sliderpause') || 4000,
411		        'infiniteLoop': true,
412		        'auto': slider.data('sliderautoplay') || false,
413		        'controls': slider.data('slidercontrols') || true,
414		        'pager' : slider.data('sliderpager') || false,
415		    };
416		    // console.log( settings );
417		   slider.bxSlider( settings );
418	    });
419	}
420
421	if( jQuery('.js-slider').length ) {
422
423	    var slider = jQuery('.js-slider');
424	    slider.filter( function(){ return jQuery( this ).closest( '.hero--slider, .hero-slider' ).length === 0; }).each( function() {
425	    	console.log( this );
426
427	    	var slideCntMin = 1,
428	    		slideCntMax = 1,
429	    		slideWidth = 0;
430
431	    	if( jQuery(window).checkMediaQuery( 'md' ) ) {
432		    	slideCntMin = jQuery(this).data('minslides') || 1;
433		    	slideCntMax = jQuery(this).data('maxslides') || 1;
434
435
436		    	slideWidth = ( jQuery(this).width() / Math.max( slideCntMin, slideCntMax ) );
437	    	}
438
439	    	settings = {
440	    		'pause' : jQuery(this).data( 'sliderpause' ) || 2500,
441				'speed' : jQuery(this).data('sliderspeed') || 3000,
442				'infiniteLoop' : true,
443				'controls' : jQuery(this).data('slidercontrols') ,
444				'auto' : jQuery(this).data('sliderautoplay'),
445				'autoControls' : jQuery(this).data('sliderautoplay') && jQuery(this).data('slidercontrols'),
446				'pager' : jQuery(this).data('sliderpager') || false,
447				'minSlides' : slideCntMin,
448				'maxSlides' : slideCntMax,
449				// 'mode' : 'vertical',
450				'slideWidth' : slideWidth,
451				'slideMargin' : 0,
452				'oneToOneTouch' : false
453				// 'preventDefaultSwipeY' : true
454	    	};
455
456
457			jQuery( this ).bxSlider( settings );
458		});
459	}
460	/* JS Slider end */
461
462    jQuery('.js-fancybox').fancybox({
463        helpers: {
464        	carousel : {
465        		offset : 33
466        	},
467            title: {
468                position: 'bottom',
469                type: 'inside'
470            }
471        }
472    });
473if( jQuery(document).checkMediaQuery('md','max') ) {
474	jQuery('button', 'nav').on('click tap', function () {
475		var btn = jQuery(this),
476			expanded = btn.attr('aria-expanded') == 'true',
477			menu = btn.siblings('ul, nav');
478
479		btn.attr('aria-expanded', !expanded);
480		menu.attr('aria-expanded', !expanded);
481		// menu.attr( 'hidden', !menu.attr('hidden') );
482
483		btn.find('i').toggleClass('icon-right-open icon-down-open');
484	});
485
486	// on document ready, find button in active page and show submenu
487	if ( jQuery('button', '.menu-item.is-current').next('ul[hidden]') ) {
488		jQuery('button', '.menu-item.is-current').click();
489	}
490
491	nav = jQuery('.header-nav');
492	button = jQuery('.menu-switch', '.header');
493	menu = jQuery('nav > .menu');
494
495
496	(function () {
497
498		if ( !nav || !button ) return;
499
500		// Hide button if menu is missing or empty.
501		if ( !menu || !menu.children().length ) {
502			button.hide();
503			return;
504		}
505
506		button.bind('click', function () {
507			nav.toggleClass('toggled-on');
508
509			if ( nav.hasClass('toggled-on') ) {
510				jQuery(this).attr('aria-expanded', 'true'); // .removeClass('icon-menu').addClass('icon-cancel');
511				jQuery('html, body').css({'overflow': 'hidden', 'position': 'relative'});
512				jQuery('body').addClass('has-overlay');
513				menu.attr('aria-expanded', 'true');
514
515				jQuery('> i', this).toggleClass('icon-menu icon-cancel');
516			}
517			else {
518				jQuery('html, body').css({'overflow': '', 'position': 'relative'});
519				jQuery('body').removeClass('has-overlay');
520				jQuery(this).attr('aria-expanded', 'false'); // .removeClass('icon-cancel').addClass('icon-menu');
521				menu.attr('aria-expanded', 'false');
522				jQuery('> i', this).toggleClass('icon-cancel icon-menu');
523			}
524		});
525
526	})();
527
528}
529	// var footer = jQuery( '.footer' ),
530	//     content = jQuery( '.content' );
531
532	// // jQuery( content).off( 'scroll', function( scrollEvent ){ showFooter( scrollEvent );} );
533	// jQuery( content ).on( 'scroll', function( scrollEvent ){ showFooter( scrollEvent );} );
534
535	// function showFooter( scrollEvent ) {
536	//   if( scrollEvent.target.scrollTop === scrollEvent.target.scrollTopMax ) {
537
538	//      content.css('margin-top', '-' + footer.outerHeight() + 'px' );
539
540	//   }
541	//   else {
542	//     content.css( 'margin-top', 0 );
543	//   }
544	// }
545
546
547
548	jQuery(window).bind( 'resize load', function( evt ){
549	    jQuery( '.js-eqHeight', '.offer' ).equalHeight( {'viewportWidth': 480} );
550	    jQuery( '.js-eqHeight' ).equalHeight( {'viewportWidth': 480 } );
551	    jQuery( '.linkbox:not(.linkbox--persona)' ).equalHeight( {'viewportWidth': 480 } );
552
553	});
554	function onYouTubePlayerAPIReady() {
555		jQuery( '.video-player--youtube' ).each(function(){
556
557			var playerID = jQuery(this).attr('id'),
558				ID = playerID.split(/-(.+)$/).filter(Boolean).pop(),
559				settings = jQuery(this).data('playersettings');
560
561			// console.log( playerID, ID, settings );
562			var player = new YT.Player( jQuery(this).attr('id'), {
563				host: 'https://www.youtube-nocookie.com',
564				width: '640',
565				videoId: ID,
566				playerVars: settings
567			});
568			jQuery(this).removeClass('video-player--loading');
569		});
570	}
571
572	function initializeVimeo() {
573			jQuery('.video-player--vimeo' ).each( function(){
574				var video = jQuery(this);
575				var player = new Vimeo.Player( video.attr('id'),  video.data('playersettings') );
576				video.removeClass( 'video-player--loading' );
577			});
578		}
579
580		function waitForVimeo() {
581			window.setTimeout( function(){
582				if( typeof Vimeo == 'undefined' ) {
583					waitForVimeo( );
584				}
585				else {
586					initializeVimeo( );
587				}
588			}, 100 );
589		}
590
591	jQuery(document).on('ready', function(){
592
593		jQuery('.video-player--youtube.video-player--locked').confirm({
594			'title' : 'Datenschutz Hinweis',
595			'content' : function( ){
596
597				var videoID = jQuery( this.$target ).attr( 'id' ),
598					ID = videoID.split(/-(.+)$/).filter(Boolean).pop();
599
600				return '<p>Dieses Video wird von YouTube eingebettet.</p>' +
601					'<p>Wenn Sie eingebettete Videos auf dieser Seite sehen möchten, werden personenbezogene Daten (IP-Adresse) an den Betreiber des Videoportals (YouTube) gesendet. Daher ist es möglich, dass der Videoanbieter Ihre Zugriffe speichert und Ihr Verhalten analysieren kann.</p>'	+
602					'<p>Alternativ könen Sie auch diesen Link benutzen, der Sie direkt zum Video auf die Website des Videoanbieters bringt: <a href="https://youtu.be/' + ID + '" target="_blank" rel="noreferrer">https://youtu.be/' + ID + '</a></p>';
603			},
604			onAction: function (btnName) {
605		        if( btnName == 'ok' || btnName == 'okPermanent' ) {
606		        	if( typeof YT == 'undefined' ) {
607						var tag = document.createElement('script');
608						tag.src = "https://www.youtube.com/player_api";
609						var firstScriptTag = document.getElementsByTagName('script')[0];
610						firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
611					}
612					jQuery( '.video-player--youtube.video-player--locked' ).removeClass('video-player--locked').addClass('video-player--loading');
613		        }
614
615		        if( btnName == 'okPermanent' ) {
616		        // save cookie YT Permanent enabled
617		        	var expireDate = new Date();
618		        	expireDate.setMonth( expireDate.getMonth() + 1 );
619		        	document.cookie = "enable_youtube_load=true; expires=" + expireDate.toUTCString() + ";";
620		        }
621
622		        this.close();
623		    },
624		    'boxWidth' : '500px',
625		    'useBootstrap' : false,
626		    buttons : {
627		    	'cancel' : {
628		    		text : 'nicht Laden',
629		    		action : function( cancelButton ) {
630		    			return false;
631		    		}
632		    	},
633		    	'ok' : {
634		    		text : 'Laden',
635		    		btnClass: 'button-primary',
636		    	},
637		    	'okPermanent' : {
638		    		text : 'immer Laden',
639		    		btnClass: 'button-primary',
640		    	},
641		    },
642		});
643
644
645
646		jQuery( '.video-player--vimeo.video-player--locked' ).confirm({
647			'title' : 'Datenschutz Hinweis',
648			'content' : function( ){
649
650				var videoID = jQuery( this.$target ).attr( 'id' ),
651					ID = videoID.split(/-(.+)$/).filter(Boolean).pop();
652
653				return '<p>Dieses Video wird von YouTube eingebettet.</p>' +
654					'<p>Wenn Sie eingebettete Videos auf dieser Seite sehen möchten, werden personenbezogene Daten (IP-Adresse) an den Betreiber des Videoportals (YouTube) gesendet. Daher ist es möglich, dass der Videoanbieter Ihre Zugriffe speichert und Ihr Verhalten analysieren kann.</p>'	+
655					'<p>Alternativ könen Sie auch diesen Link benutzen, der Sie direkt zum Video auf die Website des Videoanbieters bringt: <a href="https://youtu.be/' + ID + '" target="_blank" rel="noreferrer">https://youtu.be/' + ID + '</a></p>';
656			},
657			onAction: function (btnName) {
658		        if( btnName == 'ok' || btnName == 'okPermanent' ) {
659		        	if( typeof YT == 'undefined' ) {
660						var tag = document.createElement('script');
661						tag.src = "https://player.vimeo.com/api/player.js";
662						var firstScriptTag = document.getElementsByTagName('script')[0];
663						firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
664
665						// var video = jQuery(this);
666						waitForVimeo();
667					}
668					jQuery( '.video-player--vimeo.video-player--locked' ).removeClass('video-player--locked').addClass('video-player--loading');
669		        }
670
671		        if( btnName == 'okPermanent' ) {
672		        // save cookie YT Permanent enabled
673		        	var expireDate = new Date();
674		        	expireDate.setMonth( expireDate.getMonth() + 1 );
675		        	document.cookie = "enable_vimeo_load=true; expires=" + expireDate.toUTCString() + ";";
676		        }
677
678		        this.close();
679		    },
680			'boxWidth' : '500px',
681		    'useBootstrap' : false,
682		    buttons : {
683		    	'cancel' : {
684		    		text : 'nicht Laden',
685		    		action : function( cancelButton ) {
686		    			return false;
687		    		}
688		    	},
689		    	'ok' : {
690		    		text : 'Laden',
691		    		btnClass: 'button-primary',
692		    	},
693		    	'okPermanent' : {
694		    		text : 'immer Laden',
695		    		btnClass: 'button-primary',
696		    	},
697		    },
698		});
699
700		if( jQuery( '.js-scroll-top' ).length > 0 ) {
701			jQuery( '.js-scroll-top' ).on( 'click tap', function(){
702				jQuery( 'html, body' ).animate({
703					'scrollTop' : '0px'
704				});
705			});
706		}
707
708		if( jQuery( '.js-scroll-down', '.hero' ).length > 0 ) {
709			jQuery( '.js-scroll-down', '.hero' ).on( 'click tap', function(){
710				var hero = jQuery(this).closest('.hero'),
711					top = (hero.offset().top + hero.outerHeight() );
712
713				if( parseInt( hero.css('margin-bottom') ) < 0 )
714					top = top + parseInt( hero.css('margin-bottom') );
715
716				if( jQuery( 'body' ).hasClass( 'has-fixed-header' ) )
717					top -= parseInt( jQuery('.header').outerHeight() );
718
719				jQuery( 'html, body' ).animate({
720					'scrollTop' : top + 'px'
721				});
722			});
723		}
724
725		if( jQuery( '.gallery-show_more').length > 0 ) {
726			jQuery('.gallery-show_more').on( 'click tap', function(){
727				var gal = jQuery(this).closest( '.gallery' );
728				jQuery( '.gallery-item.is-hidden', gal ).each(
729					function( idx ){
730						var img = jQuery( 'img', this );
731						img.prop({
732							src: img.data('src')
733						});
734						jQuery( this ).removeClass('is-hidden');
735					}
736				);
737				jQuery( this).remove();
738			});
739		}
740
741		if( jQuery( '.gallery').length > 0 && jQuery(window).checkMediaQuery('sm','max') ) {
742			jQuery( '.gallery-item.is-hidden' ).each(
743				function( idx ){
744					var img = jQuery( 'img', this );
745					img.prop({
746						src: img.data('src')
747					});
748					jQuery( this ).removeClass('is-hidden');
749				}
750			);
751			jQuery('.gallery').addClass( 'gallery--slider' );
752			jQuery( '.gallery-list' ).bxSlider({
753				'pager' : false,
754				'controls' : true
755			});
756		}
757
758	});
759
760	if( jQuery( 'body' ).hasClass( 'has-fixed-header-on-scroll' ) /*&& jQuery( window ).checkMediaQuery( 'lg', 'min' )*/ ) {
761
762		jQuery(window).bind( 'scroll load', function( evt ){
763
764			var header = jQuery('.header'),
765				page = jQuery( '.page' ),
766				scrollHeight = 0;
767
768			scrollHeight = ( jQuery(window).scrollTop() + header.outerHeight() );
769			breakTop = parseInt( page.css( 'padding-top') );
770
771			if( jQuery('.hero:first-child', '.content' ).length === 1 ) {
772				breakTop += Math.ceil( parseInt( jQuery('.hero:first-child', '.content' ).outerHeight() ) / 2 );
773			}
774
775			if( scrollHeight > breakTop  ) {
776				header.addClass( 'header--small' );
777			}
778			else if( scrollHeight <= breakTop  ) {
779				header.removeClass( 'header--small' );
780			}
781		});
782	}
783
784
785	jQuery( '[data-target],[href]', '.tabs-nav' ).bind( 'click tap', function( evt ) {
786
787		var tabCtrl = jQuery(this),
788			target = tabCtrl.data( 'target' ) || tabCtrl.attr('href');
789
790
791		jQuery('.tab', tabCtrl.closest( '.tabs' ) ).hide();
792
793		if( false === tabCtrl.hasClass( 'is-active' ) ) {
794			tabCtrl.removeClass( 'is-active' );
795			tabCtrl.closest( '.tabs' ).find('[data-target],[href]').removeClass( 'is-active' );
796			tabCtrl.addClass( 'is-active' );
797		}
798		else {
799			tabCtrl.siblings().removeClass( 'is-active' );
800		}
801
802		jQuery( target ).show();
803		if( jQuery(this).prop('tagName') == 'A' ) {
804			evt.preventDefault();
805		}
806
807	});
808
809
810	// jQuery(window).bind( 'scroll load', function( evt ){
811
812	// 	var header = jQuery('.header'),
813	// 		page = jQuery( '.page' ),
814	// 		scrollHeight = 0;
815
816	// 	scrollHeight = ( jQuery(window).scrollTop() + header.outerHeight() );
817	// 	breakTop = parseInt( jQuery(' > .hero:first-child', '.content' ).outerHeight( ) );
818	// 	breakTop = breakTop - header.height();
819
820	// 	if( scrollHeight > breakTop  ) {
821	// 		header.addClass( 'header--small' );
822	// 	}
823	// 	else if( scrollHeight <= breakTop  ) {
824	// 		header.removeClass( 'header--small' );
825	// 	}
826	// });
827
828
829});
830
831
832if( typeof delayedJquery === 'undefined' )
833    var delayedJquery = [];
834
835for( var dj = 0; dj < delayedJquery.length; dj++ ) {
836	// delayedJquery[ dj ]();
837}

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.