diff options
| author | Eltrac <hi@guhub.cn> | 2025-10-30 18:45:58 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-10-30 18:45:58 +0800 |
| commit | 568fb376c1cdac5d7fabbea17c2cae09f14b63d2 (patch) | |
| tree | eb2d34912b09e735fdcb919f4ab976053cf4007b /layouts/_partials/scripts | |
| parent | 3b01037abeb50abe8373375c39f36c406dc46341 (diff) | |
| parent | 25d8c5a8aada7eba865a0332599c0704254a42c7 (diff) | |
Merge branch 'master' of https://github.com/BigCoke233/geek-death-project
Former-commit-id: fe52d97fa87aca7996802744f330a7a2a40dc62a
Diffstat (limited to 'layouts/_partials/scripts')
| -rw-r--r-- | layouts/_partials/scripts/libra-js.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_partials/scripts/libra-js.html b/layouts/_partials/scripts/libra-js.html index 0eea3d07..95e121ed 100644 --- a/layouts/_partials/scripts/libra-js.html +++ b/layouts/_partials/scripts/libra-js.html @@ -1,4 +1,6 @@ <script type="module"> - import LightBox from '/js/libra.min.js'; - const lightbox = new LightBox({ offset: { x: -8 ,y: -80 } }); +document.addEventListener('DOMContentLoaded', async () => { + const { default: LightBox } = await import('/js/libra.min.js'); + const lightbox = new LightBox({ offset: { x: -8, y: -80 } }); +}); </script> |
