forked from neff/neff-steindesign.de
1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
!function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=32)}([function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(4),o=e(17);t.exports=e(3)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(20)("wks"),o=e(12),i=e(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){t.exports=!e(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(9),o=e(34),i=e(35),u=Object.defineProperty;n.f=e(3)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(0),o=e(8),i=e(1),u=e(11),c=e(18),a=function(t,n,e){var s,f,l,p,v=t&a.F,h=t&a.G,d=t&a.S,y=t&a.P,g=t&a.B,x=h?r:d?r[n]||(r[n]={}):(r[n]||{}).prototype,b=h?o:o[n]||(o[n]={}),m=b.prototype||(b.prototype={});for(s in h&&(e=n),e)l=((f=!v&&x&&void 0!==x[s])?x:e)[s],p=g&&f?c(l,r):y&&"function"==typeof l?c(Function.call,l):l,x&&u(x,s,l,t&a.U),b[s]!=l&&i(b,s,p),y&&m[s]!=l&&(m[s]=l)};r.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){var e=t.exports={version:"2.6.1"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(0),o=e(1),i=e(6),u=e(12)("src"),c=Function.toString,a=(""+c).split("toString");e(8).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,c){var s="function"==typeof e;s&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(s&&(i(e,u)||o(e,u,t[n]?""+t[n]:a.join(String(n)))),t===r?t[n]=e:c?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports={}},function(t,n,e){var r=e(22),o=e(24);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(20)("keys"),o=e(12);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(5),o=e(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(36);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){for(var r=e(37),o=e(25),i=e(11),u=e(0),c=e(1),a=e(13),s=e(2),f=s("iterator"),l=s("toStringTag"),p=a.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(v),d=0;d<h.length;d++){var y,g=h[d],x=v[g],b=u[g],m=b&&b.prototype;if(m&&(m[f]||c(m,f,p),m[l]||c(m,l,g),a[g]=p,x))for(y in r)m[y]||i(m,y,r[y],!0)}},function(t,n,e){var r=e(8),o=e(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports=!1},function(t,n,e){var r=e(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(44),o=e(28);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(27),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(4).f,o=e(6),i=e(2)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(24);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r=e(7),o=e(49)(0),i=e(53)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,n,e){t.exports=e(54)},function(t,n,e){var r=e(7);r(r.S+r.F*!e(3),"Object",{defineProperty:e(4).f})},function(t,n,e){t.exports=!e(3)&&!e(10)(function(){return 7!=Object.defineProperty(e(16)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(5);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){"use strict";var r=e(38),o=e(39),i=e(13),u=e(14);t.exports=e(40)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(2)("unscopables"),o=Array.prototype;null==o[r]&&e(1)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";var r=e(21),o=e(7),i=e(11),u=e(1),c=e(13),a=e(41),s=e(29),f=e(48),l=e(2)("iterator"),p=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,e,h,d,y,g){a(e,n,h);var x,b,m,S=function(t){if(!p&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},L=n+" Iterator",O="values"==d,w=!1,T=t.prototype,_=T[l]||T["@@iterator"]||d&&T[d],j=_||S(d),E=d?O?S("entries"):j:void 0,M="Array"==n&&T.entries||_;if(M&&(m=f(M.call(new t)))!==Object.prototype&&m.next&&(s(m,L,!0),r||"function"==typeof m[l]||u(m,l,v)),O&&_&&"values"!==_.name&&(w=!0,j=function(){return _.call(this)}),r&&!g||!p&&!w&&T[l]||u(T,l,j),c[n]=j,c[L]=v,d)if(x={values:O?j:S("values"),keys:y?j:S("keys"),entries:E},g)for(b in x)b in T||i(T,b,x[b]);else o(o.P+o.F*(p||w),n,x);return x}},function(t,n,e){"use strict";var r=e(42),o=e(17),i=e(29),u={};e(1)(u,e(2)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(9),o=e(43),i=e(28),u=e(15)("IE_PROTO"),c=function(){},a=function(){var t,n=e(16)("iframe"),r=i.length;for(n.style.display="none",e(47).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(c.prototype=r(t),e=new c,c.prototype=null,e[u]=t):e=a(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(4),o=e(9),i=e(25);t.exports=e(3)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),c=u.length,a=0;c>a;)r.f(t,e=u[a++],n[e]);return t}},function(t,n,e){var r=e(6),o=e(14),i=e(45)(!1),u=e(15)("IE_PROTO");t.exports=function(t,n){var e,c=o(t),a=0,s=[];for(e in c)e!=u&&r(c,e)&&s.push(e);for(;n.length>a;)r(c,e=n[a++])&&(~i(s,e)||s.push(e));return s}},function(t,n,e){var r=e(14),o=e(26),i=e(46);t.exports=function(t){return function(n,e,u){var c,a=r(n),s=o(a.length),f=i(u,s);if(t&&e!=e){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){var r=e(27),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=r(t))<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(0).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(6),o=e(30),i=e(15)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(18),o=e(22),i=e(30),u=e(26),c=e(50);t.exports=function(t,n){var e=1==t,a=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,v=n||c;return function(n,c,h){for(var d,y,g=i(n),x=o(g),b=r(c,h,3),m=u(x.length),S=0,L=e?v(n,m):a?v(n,0):void 0;m>S;S++)if((p||S in x)&&(y=b(d=x[S],S,g),t))if(e)L[S]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return S;case 2:L.push(d)}else if(f)return!1;return l?-1:s||f?f:L}}},function(t,n,e){var r=e(51);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(5),o=e(52),i=e(2)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){var r=e(23);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){"use strict";var r=e(10);t.exports=function(t,n){return!!t&&r(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,e){"use strict";e.r(n);e(33),e(19),e(31);function r(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=document.querySelector("#lightbox-section"),i=document.querySelector("#lightbox-template"),u=document.querySelectorAll("a[data-lightbox]"),c=[],a=function(){function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.idx=n,this.element=u[n],this.href=this.element.getAttribute("href"),this.alt=this.element.getAttribute("data-alt"),this.title=this.element.getAttribute("data-title"),this.template=i.cloneNode(!0)}var n,e,a;return n=t,(e=[{key:"update",value:function(){this.calcSurrounding(),this.updateTemplate(),this.addEventListeners()}},{key:"calcSurrounding",value:function(){u.length>1&&(this.prev=this.idx-1,this.next=this.idx+1,-1===this.prev&&(this.prev=u.length-1),this.next===u.length&&(this.next=0))}},{key:"updateTemplate",value:function(){o.innerHTML=this.template.innerHTML;var t=o.querySelector("#lightbox"),n=t.querySelector("img");n.setAttribute("src",this.href),n.setAttribute("alt",this.alt);var e=t.querySelector(".lightbox-title"),r=t.querySelector(".lightbox-footer");e.innerHTML=this.title,r.innerHTML=this.alt}},{key:"addEventListeners",value:function(){var t=this,n=lightbox.querySelector("div.lightbox-container");lightbox.addEventListener("click",function(t){n.contains(t.target)||(o.innerHTML="")}),lightbox.querySelector("a.lightbox-close").addEventListener("click",function(){o.innerHTML=""});lightbox.querySelectorAll("a.lightbox-prev").forEach(function(n){n.addEventListener("click",function(){c[t.prev].update()})}),lightbox.querySelectorAll("a.lightbox-next").forEach(function(n){n.addEventListener("click",function(){c[t.next].update()})})}}])&&r(n.prototype,e),a&&r(n,a),t}();!function(){for(var t=function(t){c.push(new a(t)),u[t].addEventListener("click",function(n){n.preventDefault(),c[t].update()})},n=0;n<u.length;n++)t(n)}();var s=document.querySelector("#header"),f=document.querySelectorAll(".menu-list li a"),l=document.querySelector("#top-navigation-checkbox"),p=document.querySelector("#banner"),v=0;window.addEventListener("scroll",function(t){var n=window.pageYOffset||document.documentElement.scrollTop;n>v&&n>50?(s.classList.add("small"),s.classList.remove("large"),s.classList.add("hidden"),p.classList.add("hidden"),l.checked=!1):(n<50&&(s.classList.add("large"),s.classList.remove("small"),p.classList.remove("hidden")),n<v&&setTimeout(function(){s.classList.remove("hidden")},500),n>v&&n>50&&s.classList.add("hidden")),v=window.pageYOffset||document.documentElement.scrollTop}),f.forEach(function(t){t.addEventListener("click",function(){console.log("hello"),l.checked=!1})})}]); |