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