Add plausible
This commit is contained in:
parent
3193c509a7
commit
0e3067db19
5 changed files with 90 additions and 3 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue