diff --git a/index.3772ccbd.js b/index.3772ccbd.js index aaa1446..a766262 100644 --- a/index.3772ccbd.js +++ b/index.3772ccbd.js @@ -4,4 +4,4 @@ * Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 -----------------------------------------------------------------------------*/ -function t(...t){const e=new Set,a=new Set(["pop","tooltip",...t]);function n(){e.forEach((t=>{a.has(t.dataset.toggle)&&t.removeDataAttr("state")}))}function o(t){const e=t.closestDataAttr("dropbox"),a=t.hasDataAttr("state");e||a||n(),t.toggleDataAttr("state","active")}return document.addEventListener("click",(t=>{const a=t.target.closestDataAttr("toggle");if(a){if(e.has(a))return;e.add(a),a.addEventListener("click",(t=>{o(a),t.stopPropagation()}),!0),o(a)}else n();t.stopPropagation()})),this}class e{constructor(){e.#t(),this.toggle=t}static#t(){Element.prototype.setDataAttr=function(t,e=""){return this.setAttribute(`data-${t}`,e)},Element.prototype.removeDataAttr=function(t){return this.removeAttribute(`data-${t}`)},Element.prototype.getDataAttr=function(t,e){return e?this.getAttribute(`data-${t}="${e}"`):this.getAttribute(`data-${t}`)},Element.prototype.hasDataAttr=function(t,e){return e?this.hasAttribute(`data-${t}="${e}"`):this.hasAttribute(`data-${t}`)},Element.prototype.closestDataAttr=function(t,e){return e?this.closest(`[data-${t}="${e}"]`):this.closest(`[data-${t}]`)},Element.prototype.matchDataAttr=function(t,e){return e?this.matches(`[data-${t}="${e}"]`):this.matches(`[data-${t}]`)},Element.prototype.toggleDataAttr=function(t,e){return this.hasDataAttr(t)?this.removeDataAttr(t):this.setDataAttr(t,e)}}toggle}const a=new e;""===meta.title?meta.title="

Rams

":meta.title=`

${meta.title}

`;let n=`\n \n `,o='\n
\n \n
\n
\n ';"fullPage"===meta.type&&(o='\n
\n ');let i;i="localhost"===location.hostname||"127.0.0.1"===location.hostname?window.location.origin+"/templates/a.4650d11e.html":window.location.origin+"/atkinson-hyperlegible-pro/templates/a.7b1ee141.html";let r=`\n \n \n \n
\n ${n}\n
\n
\n ${o}\n
\n \n \n \n `;template.fromString(r,"body").setTemplate("#headerTemplate","#header").setTemplate("#contentTemplate","#content",(()=>{const t=document.getElementById("aside"),e=document.getElementById("content");if("post"===meta.type){const a=e.querySelectorAll("h1, h2, h3, h4, h5, h6"),n='\n \n \n ';t.insertAdjacentHTML("beforeend",n),a.forEach(((t,e)=>{t.setAttribute("id",`${e}`);const a=t.innerText,n=`
  • ${a}
  • `;document.getElementById("contents").insertAdjacentHTML("beforeend",n);const o=`
  • ${a}
  • `;document.getElementById("contentsDropdown").insertAdjacentHTML("beforeend",o)}))}})).fetchTemplate(i,"#nav").fetchTemplate(i,"#footer"),a.toggle(); \ No newline at end of file +function t(...t){const e=new Set,a=new Set(["pop","tooltip",...t]);function n(){e.forEach((t=>{a.has(t.dataset.toggle)&&t.removeDataAttr("state")}))}function o(t){const e=t.closestDataAttr("dropbox"),a=t.hasDataAttr("state");e||a||n(),t.toggleDataAttr("state","active")}return document.addEventListener("click",(t=>{const a=t.target.closestDataAttr("toggle");if(a){if(e.has(a))return;e.add(a),a.addEventListener("click",(t=>{o(a),t.stopPropagation()}),!0),o(a)}else n();t.stopPropagation()})),this}class e{constructor(){e.#t(),this.toggle=t}static#t(){Element.prototype.setDataAttr=function(t,e=""){return this.setAttribute(`data-${t}`,e)},Element.prototype.removeDataAttr=function(t){return this.removeAttribute(`data-${t}`)},Element.prototype.getDataAttr=function(t,e){return e?this.getAttribute(`data-${t}="${e}"`):this.getAttribute(`data-${t}`)},Element.prototype.hasDataAttr=function(t,e){return e?this.hasAttribute(`data-${t}="${e}"`):this.hasAttribute(`data-${t}`)},Element.prototype.closestDataAttr=function(t,e){return e?this.closest(`[data-${t}="${e}"]`):this.closest(`[data-${t}]`)},Element.prototype.matchDataAttr=function(t,e){return e?this.matches(`[data-${t}="${e}"]`):this.matches(`[data-${t}]`)},Element.prototype.toggleDataAttr=function(t,e){return this.hasDataAttr(t)?this.removeDataAttr(t):this.setDataAttr(t,e)}}toggle}const a=new e;""===meta.title?meta.title="

    Rams

    ":meta.title=`

    ${meta.title}

    `;let n=`\n \n `,o='\n
    \n \n
    \n
    \n ';"fullPage"===meta.type&&(o='\n
    \n
    \n
    \n ');let i;i="localhost"===location.hostname||"127.0.0.1"===location.hostname?window.location.origin+"/templates/a.4650d11e.html":window.location.origin+"/atkinson-hyperlegible-pro/templates/a.7b1ee141.html";let r=`\n \n \n \n
    \n ${n}\n
    \n
    \n ${o}\n
    \n \n \n \n `;template.fromString(r,"body").setTemplate("#headerTemplate","#header").setTemplate("#contentTemplate","#content",(()=>{const t=document.getElementById("aside"),e=document.getElementById("content");if("post"===meta.type){const a=e.querySelectorAll("h1, h2, h3, h4, h5, h6"),n='\n \n \n ';t.insertAdjacentHTML("beforeend",n),a.forEach(((t,e)=>{t.setAttribute("id",`${e}`);const a=t.innerText,n=`
  • ${a}
  • `;document.getElementById("contents").insertAdjacentHTML("beforeend",n);const o=`
  • ${a}
  • `;document.getElementById("contentsDropdown").insertAdjacentHTML("beforeend",o)}))}})).fetchTemplate(i,"#nav").fetchTemplate(i,"#footer"),a.toggle(); \ No newline at end of file diff --git a/index.html b/index.html index 8cd3819..f79beab 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ -Atkinson Hyperlegible Pro - With Alternative Flipped Zero \ No newline at end of file diff --git a/kerning/index.html b/kerning/index.html index d80ad0e..809a0bc 100644 --- a/kerning/index.html +++ b/kerning/index.html @@ -1 +1 @@ -Atkinson Hyperlegible Pro - With Alternative Flipped Zero \ No newline at end of file +Atkinson Hyperlegible Pro - With Alternative Flipped Zero \ No newline at end of file diff --git a/src/index.html b/src/index.html index afac245..b914930 100644 --- a/src/index.html +++ b/src/index.html @@ -33,179 +33,178 @@ diff --git a/src/js/defer.js b/src/js/defer.js index 55ef579..2cc9c70 100644 --- a/src/js/defer.js +++ b/src/js/defer.js @@ -32,7 +32,9 @@ let main = ` if (meta.type === 'fullPage') { main = ` -
    +
    +
    +
    `; } diff --git a/src/kerning/index.html b/src/kerning/index.html index 63ad662..83a7610 100644 --- a/src/kerning/index.html +++ b/src/kerning/index.html @@ -22,146 +22,135 @@