carhop__dynamiques-theme__P.../resources/js/singles/singles.ts
Nonimart 965a98e807
All checks were successful
continuous-integration/drone/push Build is passing
FEATURE HAndling the share button
2025-09-17 17:34:30 +02:00

22 lines
833 B
TypeScript

import handleIndexPanel from './index-panel';
import handleFootnoteFormat from './footnote-format';
import handleCiteButton from './cite-button';
import handleLikeButton from './like-button.ts';
import handleShareButton from './share-button.ts';
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();
handleLikeButton();
handleArticleToolbar();
handleRevueToolbar();
handleShareButton();
}