Add plausible

This commit is contained in:
Andras Schmelczer 2026-06-01 07:33:05 +01:00
commit 0e3067db19
5 changed files with 90 additions and 3 deletions

View file

@ -1,8 +1,11 @@
import './index.scss';
import { initAnalytics, trackPhotoView } from './analytics';
import { PhotoGallery, requiredElement } from './photos';
document.documentElement.classList.add('js');
initAnalytics();
const gallery = requiredElement<HTMLElement>('#gallery', HTMLElement);
const frame = requiredElement<HTMLElement>('#frame-content', HTMLElement);
const toggle = requiredElement<HTMLButtonElement>(
@ -14,4 +17,5 @@ new PhotoGallery({
gallery,
frame,
toggle,
onSelect: trackPhotoView,
});