diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-15 14:53:55 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-15 14:53:55 +0800 |
| commit | 4868ab4549963d96b74f24d674a50eaed4303a47 (patch) | |
| tree | c484f3980955f3bbbac671a3837332562f665b41 /test/index.html | |
| parent | 600a19e769d47d3c246a180d70c8002e63de7019 (diff) | |
refactor: move test files to test folder
Diffstat (limited to 'test/index.html')
| -rw-r--r-- | test/index.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/index.html b/test/index.html new file mode 100644 index 0000000..e5812d2 --- /dev/null +++ b/test/index.html @@ -0,0 +1,32 @@ +<html> + <head> + <link rel="stylesheet" href="/src/libo.css" /> + </head> + <body> + <div class="libo" style="display: flex; justify-content: center; align-items: center;flex-wrap:wrap; + width:700px;margin:1rem auto"> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> + <img + style="max-width:100%" + data-libo + src="test.jpg" + /> + <img + style="width:50%" + data-libo + src="test-2.jpg" + /> + <img + style="width:30%" + data-libo + src="test-3.jpg" + /> + </div> + <script type="module"> + import LightBox from '/src/lightbox.js'; + const lightbox = new LightBox({ + container: '.libo' + }); + </script> + </body> +</html> |
