carhop__dynamiques-theme__P.../resources/js/singles/singles.ts
Nonimart 54b671d902
All checks were successful
continuous-integration/drone/push Build is passing
REFACTOR optimizing injecting id to h2 by injecting in php instead of javascript
2025-08-21 15:08:10 +02:00

16 lines
601 B
TypeScript

import handleIndexPanel from './index-panel';
import handleFootnoteFormat from './footnote-format';
import handleCiteButton from './cite-button';
import { handleArticleToolbar } from './article-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();
}