diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-16 14:39:04 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-16 14:39:04 +0800 |
| commit | 958c8bbcbf6e9e1934fee674d4ef3a9e8798e16e (patch) | |
| tree | 215a1efbd5eed7a0ec9957e854280d1da5c1ca05 /test | |
| parent | 3bdec0b4db099c69defe3fda9426ec63a54ba108 (diff) | |
refactor: select images directly instead of container
Diffstat (limited to 'test')
| -rw-r--r-- | test/index.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/index.html b/test/index.html index 8c1eea7..4c306b2 100644 --- a/test/index.html +++ b/test/index.html @@ -24,9 +24,7 @@ </div> <script type="module"> import LightBox from '/dist/libra.min.js'; - const lightbox = new LightBox({ - container: '.libra' - }); + new LightBox({ selector: 'img[data-libra]' }); </script> </body> </html> |
