summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials/scripts')
-rw-r--r--layouts/_partials/scripts/fancybox-js.html10
-rw-r--r--layouts/_partials/scripts/libra-js.html4
2 files changed, 4 insertions, 10 deletions
diff --git a/layouts/_partials/scripts/fancybox-js.html b/layouts/_partials/scripts/fancybox-js.html
deleted file mode 100644
index d810dd29..00000000
--- a/layouts/_partials/scripts/fancybox-js.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<script src="/js/fancybox.umd.js"></script>
-<script>
-Fancybox.bind("[data-fancybox]", {
- on: {
- close: () => {
- umami.track('🖼️ Fancybox Closed');
- },
- },
-});
-</script>
diff --git a/layouts/_partials/scripts/libra-js.html b/layouts/_partials/scripts/libra-js.html
new file mode 100644
index 00000000..0eea3d07
--- /dev/null
+++ b/layouts/_partials/scripts/libra-js.html
@@ -0,0 +1,4 @@
+<script type="module">
+ import LightBox from '/js/libra.min.js';
+ const lightbox = new LightBox({ offset: { x: -8 ,y: -80 } });
+</script>