{const s=n+i,u=[];let l,c,h,d,p,f,m;e:for(l=0;l<=s;l++){if(l>50)return null;for(m=l-1,p=l?u[l-1]:[0,0],f=u[l]=[],c=-l;c<=l;c+=2){for(h=(d=c===-l||c!==l&&p[m+c-1]=0;l--){for(;d>0&&h>0&&a(o[r+d-1],e[t+h-1]);)g[y--]=0,d--,h--;if(!l)break;m=l-1,p=l?u[l-1]:[0,0],(c=d-h)===-l||c!==l&&p[m+c-1]
{let u=0,l=oa;)--u;l=s+o-u;const p=Array(l);let f=c[u];for(--n;f;){const{newi:e,oldi:t}=f;for(;n>e;)p[--l]=1,--n;for(;a>t;)p[--l]=-1,--a;p[--l]=0,--n,--a,f=f.prev}for(;n>=t;)p[--l]=1,--n;for(;a>=i;)p[--l]=-1,--a;return p})(n,o,r,i,a,s,u,l),e,t,n,o,a,s,c,d)};function T(e){return null==e}function M(e){return!T(e.content)}const S=Object.seal({childrenMap:null,node:null,root:null,condition:null,evaluate:null,template:null,isTemplateTag:!1,nodes:[],getKey:null,indexName:null,itemName:null,afterPlaceholder:null,placeholder:null,mount(e,t){return this.update(e,t)},update(e,t){const{placeholder:n}=this,o=this.evaluate(e),r=o?Array.from(o):[],i=n.parentNode,{newChildrenMap:a,batches:s,futureNodes:u}=function(e,t,n,o){const{condition:r,template:i,childrenMap:a,itemName:s,getKey:u,indexName:l,root:c,isTemplateTag:h}=o,d=new Map,p=[],f=[];return e.forEach((e,o)=>{const m=function(e,t){let{itemName:n,indexName:o,index:r,item:i}=t;e[n]=i,o&&(e[o]=r);return e}(Object.create(t),{itemName:s,indexName:l,index:o,item:e}),g=u?u(m):o,y=a.get(g);if(function(e,t){return!!e&&!1===Boolean(e(t))}(r,m))return;const b=y?y.template:i.clone(),v=y?b.el:c.cloneNode(),O=!y,w=h&&O?function(e){const t=e.dom.cloneNode(!0);return{avoidDOMInjection:!0,fragment:t,children:Array.from(t.childNodes)}}(b):{};O?p.push(()=>b.mount(v,m,n,w)):b.update(m,n),h?f.push(...w.children||b.children):f.push(v),a.delete(g),d.set(g,{template:b,context:m,index:o})}),{newChildrenMap:d,batches:p,futureNodes:f}}(r,e,t,this);return u.length?((e,t,n,o)=>{o||(o={});const r=o.compare||g,i=o.node||y,a=null==o.before?null:i(o.before,0),s=t.length;let u=s,l=0,c=n.length,h=0;for(;l{for(;oe()),this.childrenMap=a,this.nodes=u,this},unmount(e,t){return A(this.childrenMap,t),this.childrenMap=new Map,this.nodes=[],this}});function C(e,t){return(n,o)=>{if(o<0){const{template:n,context:o}=e.pop();n.unmount(o,t,null)}return n}}function A(e,t){return Array.from(e.values()).map(e=>{let{template:n,context:o}=e;return n.unmount(o,t,!0)})}const x=Object.seal({node:null,evaluate:null,parent:null,isTemplateTag:!1,placeholder:null,template:null,mount(e,t){return this.parent.insertBefore(this.placeholder,this.node),this.parent.removeChild(this.node),this.update(e,t)},update(e,t){const n=!!this.evaluate(e),o=!this.value&&n,r=this.value&&!n,i=()=>{const n=this.node.cloneNode();this.parent.insertBefore(n,this.placeholder),this.template=this.template.clone(),this.template.mount(n,e,t)};switch(!0){case o:i();break;case r:this.unmount(e);break;default:n&&this.template.update(e,t)}return this.value=n,this},unmount(e,t){return this.template.unmount(e,t,!0),this}});const N=0;var j={ATTRIBUTE:N,EVENT:1,TEXT:2,VALUE:3};function _(e){return"object"==typeof e}const I="removeAttribute",L="setAttribute";function P(e,t,n,o){let{name:r}=t;r?((function(e){return"boolean"==typeof e}(n)||_(n))&&(e[r]=n),e[function(e){return T(e)||!1===e||""===e||_(e)?I:L}(n)](r,function(e,t){return!0===t?e:t}(r,n))):n?function(e,t){Object.entries(t).forEach(t=>{let[n,o]=t;return P(e,{name:n},o)})}(e,n):o&&function(e,t){Object.keys(t).forEach(t=>e.removeAttribute(t))}(e,o)}const k=/^on/;function U(e){return T(e)?"":e}var D={[N]:P,1:function(e,t,n,o){let{name:r}=t;const i=r.replace(k,"");return o&&e.removeEventListener(i,o),n&&e.addEventListener(i,n,!1),n},2:function(e,t,n){let{childNodeIndex:o}=t;const r=e.childNodes[o],i=U(n);if(r.nodeType===Node.COMMENT_NODE){const t=document.createTextNode(i);e.replaceChild(t,r)}else r.data=U(i)},3:function(e,t,n){e.value=n}};const B=Object.seal({node:null,value:null,mount(e){return this.value=this.evaluate(e),H(this,this.value),this},update(e){const t=this.evaluate(e);return this.value!==t&&(H(this,t),this.value=t),this},unmount(){return 1===this.type&&H(this,null),this}});function H(e,t){return D[e.type](e.node,e,t,e.value)}function R(e,t){return Object.assign({},B,{},t,{node:e})}const $=Object.seal({node:null,name:null,template:null,mount(e,t){const n=!!e.slots&&e.slots.find(e=>{let{id:t}=e;return t===this.name}),{parentNode:o}=this.node;return this.template=n&&G(n.html,n.bindings).createDOM(o),this.template&&(this.template.mount(this.node,t),function e(t){t.firstChild&&(t.parentNode.insertBefore(t.firstChild,t),e(t))}(this.node)),o.removeChild(this.node),this},update(e,t){return this.template&&t&&this.template.update(t),this},unmount(e,t,n){return this.template&&this.template.unmount(t,null,n),this}});function q(e){return e.reduce((e,t)=>{let{bindings:n}=t;return e.concat(n)},[])}const F=Object.seal({node:null,evaluate:null,name:null,slots:null,tag:null,attributes:null,getComponent:null,mount(e){return this.update(e)},update(e,t){const n=this.evaluate(e);return n===this.name?this.tag.update(e):(this.unmount(e,t,!0),this.name=n,this.tag=function(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n=[]),e?e({slots:t,attributes:n}):G(function(e){return e.reduce((e,t)=>e+t.html,"")}(t),[...q(t),{expressions:n.map(e=>Object.assign({type:N},e))}])}(this.getComponent(n),this.slots,this.attributes),this.tag.mount(this.node,e)),this},unmount(e,t,n){return this.tag&&this.tag.unmount(n),this}});var Y={1:function(e,t){let{evaluate:n,template:o}=t;return Object.assign({},x,{node:e,evaluate:n,parent:e.parentNode,placeholder:document.createTextNode(""),template:o.createDOM(e)})},[d]:function(e,t){let{expressions:n}=t;return Object.assign({},(o=n.map(t=>R(e,t)),["mount","update","unmount"].reduce((e,t)=>Object.assign({},e,{[t]:e=>o.map(n=>n[t](e))&&r}),{})));var o,r},0:function(e,t){let{evaluate:n,condition:o,itemName:r,indexName:i,getKey:a,template:s}=t;const u=document.createTextNode(""),l=e.parentNode,c=e.cloneNode();return l.insertBefore(u,e),l.removeChild(e),Object.assign({},S,{childrenMap:new Map,node:e,root:c,condition:o,evaluate:n,isTemplateTag:M(c),template:s.createDOM(e),getKey:a,indexName:i,itemName:r,placeholder:u})},3:function(e,t){let{evaluate:n,getComponent:o,slots:r,attributes:i}=t;return Object.assign({},F,{node:e,evaluate:n,slots:r,attributes:i,getComponent:o})},4:function(e,t){let{name:n}=t;return Object.assign({},$,{node:e,name:n})}};function K(e){const t=e.ownerSVGElement;return!!t||null===t}function Q(e,t){return K(e)?function(e,t){return t.ownerDocument.importNode((new window.DOMParser).parseFromString(``,"application/xml").documentElement,!0)}(t,e):function(e,t){const n=M(t)?t:document.createElement("template");return n.innerHTML=e,n.content}(t,e)}function z(e,t){switch(!0){case K(e):!function e(t,n){t.firstChild&&(n.appendChild(t.firstChild),e(t,n))}(t,e);break;case M(e):e.parentNode.replaceChild(t,e);break;default:e.appendChild(t)}}const V=Object.freeze({bindings:null,bindingsData:null,html:null,isTemplateTag:!1,fragment:null,children:null,dom:null,el:null,createDOM(e){return this.dom=this.dom||function(e,t){return t&&("string"==typeof t?Q(e,t):t)}(e,this.html),this},mount(e,t,n,o){if(void 0===o&&(o={}),!e)throw new Error("Please provide DOM node to mount properly your template");this.el&&this.unmount(t);const{fragment:r,children:i,avoidDOMInjection:a}=o,{parentNode:s}=i?i[0]:e;return this.isTemplateTag=M(e),this.createDOM(e),this.dom&&(this.fragment=r||this.dom.cloneNode(!0)),this.el=this.isTemplateTag?s:e,this.children=this.isTemplateTag?i||Array.from(this.fragment.childNodes):null,!a&&this.fragment&&z(e,this.fragment),this.bindings=this.bindingsData.map(e=>(function(e,t){const{selector:n,type:o,redundantAttribute:r,expressions:i}=t,a=n?e.querySelector(n):e;return r&&a.removeAttribute(r),(Y[o]||Y[d])(a,Object.assign({},t,{expressions:i||[]}))})(this.el,e)),this.bindings.forEach(e=>e.mount(t,n)),this},update(e,t){return this.bindings.forEach(n=>n.update(e,t)),this},unmount(e,t,n){if(this.el){switch(this.bindings.forEach(o=>o.unmount(e,t,n)),!0){case!0===this.isTemplateTag&&null!==n:h(this.children);break;case!0===n&&null!==this.el.parentNode:this.el.parentNode.removeChild(this.el);break;case null!==n:h(this.el.childNodes)}this.el=null}return this},clone(){return Object.assign({},this,{el:null})}});function G(e,t){return void 0===t&&(t=[]),Object.assign({},V,{html:e,bindingsData:t})}function J(e){return typeof e==="function"}function X(e){throw new Error(e)}function Z(e){return J(e)?e.prototype&&e.prototype.constructor?new e:e():e}function W(e){return e.replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function ee(){return this}function te(e,t,n,o){return void 0===o&&(o={}),Object.defineProperty(e,t,Object.assign({value:n,enumerable:!1,writable:!1,configurable:!0},o)),e}function ne(e,t,n){return Object.entries(t).forEach(t=>{let[o,r]=t;te(e,o,r,n)}),e}function oe(e){return Array.isArray(e)?e:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&"number"==typeof e.length?Array.from(e):[e]}const re=e=>1===e.length?e[0]:e;function ie(e,t,n){const o="object"==typeof t?t:{[t]:n},r=Object.keys(o);return oe(e).forEach(e=>{r.forEach(t=>e.setAttribute(t,o[t]))}),e}function ae(e,t){return function(e,t,n){const o="string"==typeof t?[t]:t;return re(oe(e).map(e=>re(o.map(t=>e[n](t)))))}(e,t,"getAttribute")}function se(e){return ae(e,a)||e.tagName.toLowerCase()}function ue(e,t){return oe("string"==typeof e?(t||document).querySelectorAll(e):e)}const le=new Map,ce=(e=>()=>e||(ie(e=ue("style[riot]")[0]||document.createElement("style"),"type","text/css"),e.parentNode||document.head.appendChild(e),e))();var he={CSS_BY_NAME:le,add(e,t){return le.has(e)||(le.set(e,t),this.inject()),this},inject(){return ce().innerHTML=[...le.values()].join("\n"),this},remove(e){return le.has(e)&&(le.delete(e),this.inject()),this}};const de=Object.freeze({$(e){return ue(e,this.root)[0]},$$(e){return ue(e,this.root)}}),pe=Object.freeze({shouldUpdate:ee,onBeforeMount:ee,onMounted:ee,onBeforeUpdate:ee,onUpdated:ee,onBeforeUnmount:ee,onUnmounted:ee}),fe={update:ee,mount:ee,unmount:ee,clone:ee,createDOM:ee};function me(e){let{css:t,template:n,exports:r,name:i}=e;const a=n?function(e,t){return e(G,j,p,e=>t[e]||o.get(e))}(n,r?function(e){void 0===e&&(e={});return Object.entries(Z(e)).reduce((e,t)=>{let[n,o]=t;return e[function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}(n)]=me(o),e},{})}(r.components):{}):fe;return e=>{let{slots:n,attributes:o,props:s}=e;const u=Z(r)||{},l=ge({css:t,template:a,componentAPI:u,name:i})({slots:n,attributes:o,props:s});return{mount:(e,t,n)=>l.mount(e,n,t),update:(e,t)=>l.update(t,e),unmount:e=>l.unmount(e)}}}function ge(e){let{css:t,template:n,componentAPI:o,name:r}=e;return t&&r&&he.add(r,t),function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r{let[t,n]=e;i[t]||(i[t]=n)}),i),Object.assign({slots:null,root:null},de,{name:r,css:t,template:n})));var i,a}function ye(e,t){return void 0===t&&(t=[]),Object.assign({},function(e){return Array.from(e.attributes).reduce((e,t)=>(e[W(t.name)]=t.value,e),{})}(e),{},t.reduce((e,t)=>{const{value:n,type:o}=t;switch(!0){case!t.name&&o===j.ATTRIBUTE:return Object.assign({},e,{},n);case o===j.VALUE:e[s]=t.value;break;default:e[W(t.name)]=t.value}return e},{}))}function be(e,t){return Object.assign({},e,{},Z(t))}function ve(e,t){let{slots:n,attributes:o,props:a}=t;const s=Z(a);return c=function(e){return[...i].reduce((e,t)=>t(e)||e,e)}(ne(Object.create(e),{mount(t,i,a){return void 0===i&&(i={}),this[u]=function(e,t){void 0===t&&(t=[]);const n=t.map(t=>R(e,t)),o={},r=e=>t=>(n.forEach(n=>n[e](t)),o);return Object.assign(o,{expressions:n,mount:r("mount"),update:r("update"),unmount:r("unmount")})}(t,o).mount(a),this.props=Object.freeze(Object.assign({},s,{},ye(t,this[u].expressions))),this.state=be(this.state,i),this[l]=this.template.createDOM(t).clone(),t[r]=this,e.name&&function(e,t){se(e)!==t&&ie(e,"is",t)}(t,e.name),te(this,"root",t),te(this,"slots",n),this.onBeforeMount(this.props,this.state),this[l].mount(t,this,a),this.onMounted(this.props,this.state),this},update(e,t){void 0===e&&(e={}),t&&this[u].update(t);const n=ye(this.root,this[u].expressions);if(!1!==this.shouldUpdate(n,this.props))return this.props=Object.freeze(Object.assign({},s,{},n)),this.state=be(this.state,e),this.onBeforeUpdate(this.props,this.state),this[l].update(this,t),this.onUpdated(this.props,this.state),this},unmount(e){return this.onBeforeUnmount(this.props,this.state),this[u].unmount(),this[l].unmount(this,{},null===e?null:!e),this.onUnmounted(this.props,this.state),this}})),Object.keys(e).filter(t=>J(e[t])).forEach(e=>{c[e]=c[e].bind(c)}),c;var c}const{DOM_COMPONENT_INSTANCE_PROPERTY:Oe,COMPONENTS_IMPLEMENTATION_MAP:we,PLUGINS_SET:Ee}=c;var Te=n(0),Me=n.n(Te);function Se(e,t,n,o){var r,i=!1,a=0;function s(){r&&clearTimeout(r)}function u(){var u=this,l=Date.now()-a,c=arguments;function h(){a=Date.now(),n.apply(u,c)}i||(o&&!r&&h(),s(),void 0===o&&l>e?h():!0!==t&&(r=setTimeout(o?function(){r=void 0}:h,void 0===o?e-l:e)))}return"boolean"!=typeof t&&(o=n,n=t,t=void 0),u.cancel=function(){s(),i=!0},u}var Ce={css:null,exports:{state:{isOpen:!1,animate:null,namespace:"tiny-one-page"},onBeforeMount:function(){this.state.animate=this.props.animate,this.state.animate.setComponent(this),this.content=this.root.innerHTML,this.root.innerHTML=""},onBeforeUnmount:function(){document.addEventListener("click",this.handleClick.bind(this)),this.$(".tiny-one-page__inner a").removeEventListener("click",this.handleClose.bind(this))},onMounted:function(){var e=this;this.$(".tiny-one-page__inner").innerHTML=this.content,this.scroll=new Me.a('.tiny-one-page__inner a[href*="#"]'),window.addEventListener("scroll",Se(300,this.handleScroll.bind(this)),!1),window.location.hash?this.$(".tiny-one-page__inner a[href$='"+window.location.hash+"']").click():this.addClass(this.$$(".tiny-one-page__inner a")[0]),document.addEventListener("click",this.handleClick.bind(this)),this.$$(".tiny-one-page__inner a").forEach((function(t){t.addEventListener("click",e.handleClose.bind(e))}))},addClass:function(e){e.parentElement.classList.add("current")},removeClass:function(e){e.parentElement.classList.remove("current")},getStyles:function(){return this.state.animate.getStyles()},getIconClasses:function(){return this.state.isOpen?"icon icon-tiny-one-page-close":"icon icon-tiny-one-page-open"},getModalClasses:function(){return this.state.isOpen?"tiny-one-page__modal tiny-one-page__modal--open":"tiny-one-page__modal tiny-one-page__modal--closed"},handleClick:function(e){this.root.contains(e.target)||this.handleClose()},handleOpen:function(){this.state.animate.prepareOpen(),this.state.isOpen=!0,this.update()},handleClose:function(){this.state.animate.prepareClose(),this.state.isOpen=!1,this.update()},handleToggle:function(){!0===this.state.isOpen?this.handleClose():this.handleOpen()},handleScroll:function(e){var t=this.$$(".tiny-one-page__inner a"),n=void 0;t.forEach(function(e,o){var r=document.querySelector(e.hash);r.offsetTop;t[o+1]&&document.querySelector(t[o+1].hash),!n&&r.offsetTop-window.innerHeight/2<=window.pageYOffset+25&&r.offsetTop+r.offsetHeight-window.innerHeight/2>window.pageYOffset&&(n=r),this.removeClass(e)}.bind(this)),this.addClass(this.$(".tiny-one-page__inner a[href$='"+n.id+"']"))}},template:function(e,t,n,o){return e('',[{redundantAttribute:"expr0",selector:"[expr0]",expressions:[{type:t.ATTRIBUTE,name:"style",evaluate:function(e){return e.getStyles()}},{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getModalClasses()}}]},{redundantAttribute:"expr1",selector:"[expr1]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return e.handleToggle}}]},{redundantAttribute:"expr2",selector:"[expr2]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getIconClasses()}}]}])},name:"tiny-one-page"};function Ae(e,t){for(var n=0;n(function(e,t,n){const r=n||se(e);return o.has(r)||X(`The component named "${r}" was never registered`),o.get(r)({props:t}).mount(e)})(e,Pe,ke))},function(e,t){}]);
\ No newline at end of file
diff --git a/fonts/PxPlus_IBM_VGA8.eot b/fonts/PxPlus_IBM_VGA8.eot
new file mode 100644
index 0000000..d30a1f0
Binary files /dev/null and b/fonts/PxPlus_IBM_VGA8.eot differ
diff --git a/fonts/PxPlus_IBM_VGA8.svg b/fonts/PxPlus_IBM_VGA8.svg
new file mode 100644
index 0000000..38282d4
--- /dev/null
+++ b/fonts/PxPlus_IBM_VGA8.svg
@@ -0,0 +1,1625 @@
+
+
+
diff --git a/fonts/PxPlus_IBM_VGA8.ttf b/fonts/PxPlus_IBM_VGA8.ttf
new file mode 100644
index 0000000..e5d3652
Binary files /dev/null and b/fonts/PxPlus_IBM_VGA8.ttf differ
diff --git a/fonts/PxPlus_IBM_VGA8.woff b/fonts/PxPlus_IBM_VGA8.woff
new file mode 100644
index 0000000..1bf623e
Binary files /dev/null and b/fonts/PxPlus_IBM_VGA8.woff differ
diff --git a/fonts/PxPlus_IBM_VGA8.woff2 b/fonts/PxPlus_IBM_VGA8.woff2
new file mode 100644
index 0000000..70cb86c
Binary files /dev/null and b/fonts/PxPlus_IBM_VGA8.woff2 differ
diff --git a/package-lock.json b/package-lock.json
index 7c16884..a876535 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8793,6 +8793,11 @@
}
}
},
+ "throttle-debounce": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-2.1.0.tgz",
+ "integrity": "sha512-AOvyNahXQuU7NN+VVvOOX+uW6FPaWdAOdRP5HfwYxAfCzXTFKRMoIMk+n+po318+ktcChx+F1Dd91G3YHeMKyg=="
+ },
"through": {
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
diff --git a/package.json b/package.json
index 89b6956..28938c6 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,8 @@
"license": "MIT",
"dependencies": {
"riot": "^4.5.0",
- "smooth-scroll": "^16.1.0"
+ "smooth-scroll": "^16.1.0",
+ "throttle-debounce": "^2.1.0"
},
"devDependencies": {
"@riotjs/compiler": "^4.2.0",
diff --git a/src/TinyOnePage.riot b/src/TinyOnePage.riot.js
similarity index 50%
rename from src/TinyOnePage.riot
rename to src/TinyOnePage.riot.js
index bdd4f94..7afc879 100644
--- a/src/TinyOnePage.riot
+++ b/src/TinyOnePage.riot.js
@@ -1,14 +1,17 @@
diff --git a/src/TinyOnePageAnimate.js b/src/TinyOnePageAnimate.js
new file mode 100644
index 0000000..5ca516b
--- /dev/null
+++ b/src/TinyOnePageAnimate.js
@@ -0,0 +1,69 @@
+/**
+ * TinyHamburgerAnimate
+ *
+ * Class for new Animation Classes for TinyHamburger. Prepare-Functions will be called
+ * to change styles. All Prepare-Functions are called in the same function from
+ * TinyHamburger.riot
+ *
+ * @author Björn Hase
+ * @license http://opensource.org/licenses/MIT The MIT License
+ * @link https://gitlab.tentakelfabrik.de/tentakelfabrik/tiny-components/tiny-hamburger GitLab Repository
+ */
+export default class TinyOnePageAnimate
+{
+ /**
+ *
+ *
+ */
+ constructor()
+ {
+
+ }
+
+ /**
+ * setting component to interact with
+ *
+ * @param {object} component
+ */
+ setComponent(component)
+ {
+ this.component = component;
+ }
+
+ /**
+ * get Styles
+ *
+ * @return {string}
+ */
+ getStyles()
+ {
+ return null;
+ }
+
+ /**
+ *
+ *
+ */
+ prepareMounted()
+ {
+
+ }
+
+ /**
+ *
+ *
+ */
+ prepareOpen()
+ {
+
+ }
+
+ /**
+ *
+ *
+ */
+ prepareClose()
+ {
+
+ }
+}
diff --git a/src/TinyOnePageHeightAnimate.js b/src/TinyOnePageHeightAnimate.js
new file mode 100644
index 0000000..edd3737
--- /dev/null
+++ b/src/TinyOnePageHeightAnimate.js
@@ -0,0 +1,52 @@
+import TinyOnePageAnimate from './TinyOnePageAnimate';
+
+/**
+ * TinyHamburgerLeftAnimate
+ *
+ * Animation for a Panel that slides left in Screen
+ *
+ * @author Björn Hase
+ * @license http://opensource.org/licenses/MIT The MIT License
+ * @link https://gitlab.tentakelfabrik.de/tentakelfabrik/tiny-components/tiny-hamburger GitLab Repository
+ */
+export default class TinyOnePageHeightAnimate extends TinyOnePageAnimate
+{
+ /**
+ *
+ *
+ */
+ constructor()
+ {
+ super();
+ this.maxHeight = 0;
+ }
+
+ /**
+ * set max-height
+ *
+ * @return {string}
+ */
+ getStyles()
+ {
+ return 'max-height:' + this.maxHeight + 'px';
+ }
+
+ /**
+ * set height of content
+ *
+ */
+ prepareOpen()
+ {
+ this.maxHeight = this.component.$('.tiny-one-page__inner')
+ .getBoundingClientRect().height;
+ }
+
+ /**
+ * set height to 0
+ *
+ */
+ prepareClose()
+ {
+ this.maxHeight = 0;
+ }
+}
diff --git a/src/fonts/PxPlus_IBM_VGA8.eot b/src/fonts/PxPlus_IBM_VGA8.eot
new file mode 100644
index 0000000..d30a1f0
Binary files /dev/null and b/src/fonts/PxPlus_IBM_VGA8.eot differ
diff --git a/src/fonts/PxPlus_IBM_VGA8.svg b/src/fonts/PxPlus_IBM_VGA8.svg
new file mode 100644
index 0000000..38282d4
--- /dev/null
+++ b/src/fonts/PxPlus_IBM_VGA8.svg
@@ -0,0 +1,1625 @@
+
+
+
diff --git a/src/fonts/PxPlus_IBM_VGA8.ttf b/src/fonts/PxPlus_IBM_VGA8.ttf
new file mode 100644
index 0000000..e5d3652
Binary files /dev/null and b/src/fonts/PxPlus_IBM_VGA8.ttf differ
diff --git a/src/fonts/PxPlus_IBM_VGA8.woff b/src/fonts/PxPlus_IBM_VGA8.woff
new file mode 100644
index 0000000..1bf623e
Binary files /dev/null and b/src/fonts/PxPlus_IBM_VGA8.woff differ
diff --git a/src/fonts/PxPlus_IBM_VGA8.woff2 b/src/fonts/PxPlus_IBM_VGA8.woff2
new file mode 100644
index 0000000..70cb86c
Binary files /dev/null and b/src/fonts/PxPlus_IBM_VGA8.woff2 differ
diff --git a/src/fonts/stylesheet.css b/src/fonts/stylesheet.css
new file mode 100644
index 0000000..6478095
--- /dev/null
+++ b/src/fonts/stylesheet.css
@@ -0,0 +1,11 @@
+@font-face {
+ font-family: 'PxPlus IBM VGA8';
+ src: url('PxPlus_IBM_VGA8.eot');
+ src: url('PxPlus_IBM_VGA8.eot?#iefix') format('embedded-opentype'),
+ url('PxPlus_IBM_VGA8.woff2') format('woff2'),
+ url('PxPlus_IBM_VGA8.woff') format('woff'),
+ url('PxPlus_IBM_VGA8.ttf') format('truetype'),
+ url('PxPlus_IBM_VGA8.svg#PxPlus_IBM_VGA8') format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
diff --git a/webpack.mix.js b/webpack.mix.js
index 175c718..76fe4eb 100644
--- a/webpack.mix.js
+++ b/webpack.mix.js
@@ -1,3 +1,4 @@
+const ReplaceInFileWebpackPlugin = require('replace-in-file-webpack-plugin');
const mix = require('laravel-mix');
/*
@@ -14,7 +15,7 @@ const mix = require('laravel-mix');
mix.webpackConfig({
module: {
rules: [{
- test: /\.riot$/,
+ test: /\.riot.js$/,
exclude: /node_modules/,
use: [{
loader: '@riotjs/webpack-loader',
@@ -26,5 +27,6 @@ mix.webpackConfig({
]}
});
-mix.js('demo-386.js', 'dist/js')
+mix.js('demo-386.js', 'dist/js');
mix.sass('demo-386.scss', 'dist/css');
+mix.copy('src/fonts', 'dist/fonts');