carhop__dynamiques-theme__P.../resources/js/singles/singles.ts
2025-06-24 15:23:20 +02:00

19 lines
686 B
TypeScript

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