carhop__dynamiques-theme__P.../resources/js/singles/singles.ts
Nonimart a6163692fe
All checks were successful
continuous-integration/drone/push Build is passing
FEATURE Introducing revue toolbar
2025-08-21 17:19:15 +02:00

18 lines
684 B
TypeScript

import handleIndexPanel from './index-panel';
import handleFootnoteFormat from './footnote-format';
import handleCiteButton from './cite-button';
import { handleArticleToolbar } from './article-toolbar.ts';
import { handleRevueToolbar } from './revue-toolbar.ts';
export default function singles(): void {
const isSingleRevue: HTMLElement | null = document.querySelector('.page--single-revue');
const isSingleArticle: HTMLElement | null = document.querySelector('.page--single-articles');
if (!isSingleRevue && !isSingleArticle) return;
handleIndexPanel();
handleFootnoteFormat();
handleCiteButton();
handleArticleToolbar();
handleRevueToolbar();
}