groton-school / knowledgebase

Knowledgebase website
https://kb.groton.org
GNU General Public License v3.0
0 stars 0 forks source link

Configurable `.ui-include` #54

Closed github-actions[bot] closed 3 months ago

github-actions[bot] commented 3 months ago

https://github.com/groton-school/knowledgebase/blob/da6360faa123af6d83f767b5b4e9099b8467a9c4/apps/ui/src/UI/HideHeaderAndFooter/index.ts#L8


  Helper.onGoogleDocEmbed<HTMLDivElement>('div', (divs) => {
    divs.forEach((div) => {
      if (div.querySelector('a[id^="ftnt"]')) {
        div.classList.add('ui-include'); // TODO Configurable `.ui-include`
      }
    });
    Helper.log('hide header/footer');
github-actions[bot] commented 3 months ago

Closed in b2e50a136065c2a9e80d342b93ab7f4d5e7b0c82