summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-16 14:39:04 +0800
committerEltrac <hi@guhub.cn>2025-09-16 14:39:04 +0800
commit958c8bbcbf6e9e1934fee674d4ef3a9e8798e16e (patch)
tree215a1efbd5eed7a0ec9957e854280d1da5c1ca05 /test
parent3bdec0b4db099c69defe3fda9426ec63a54ba108 (diff)
refactor: select images directly instead of container
Diffstat (limited to 'test')
-rw-r--r--test/index.html4
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>