summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-15 14:53:55 +0800
committerEltrac <hi@guhub.cn>2025-09-15 14:53:55 +0800
commit4868ab4549963d96b74f24d674a50eaed4303a47 (patch)
treec484f3980955f3bbbac671a3837332562f665b41
parent600a19e769d47d3c246a180d70c8002e63de7019 (diff)
refactor: move test files to test folder
-rw-r--r--index.html20
-rw-r--r--test/index.html32
-rw-r--r--test/test-2.jpgbin0 -> 1184229 bytes
-rw-r--r--test/test-3.jpgbin0 -> 9558418 bytes
-rw-r--r--test/test.jpg (renamed from test.jpg)bin3236769 -> 3236769 bytes
5 files changed, 32 insertions, 20 deletions
diff --git a/index.html b/index.html
deleted file mode 100644
index 59aa061..0000000
--- a/index.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<html>
- <head>
- <link rel="stylesheet" href="/src/libo.css" />
- </head>
- <body>
- <div class="libo">
- <img
- style="width:20%"
- data-libo
- src="test.jpg"
- />
- </div>
- <script type="module">
- import LightBox from './src/lightbox.js';
- const lightbox = new LightBox({
- container: '.libo'
- });
- </script>
- </body>
-</html>
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>
diff --git a/test/test-2.jpg b/test/test-2.jpg
new file mode 100644
index 0000000..6e681e6
--- /dev/null
+++ b/test/test-2.jpg
Binary files differ
diff --git a/test/test-3.jpg b/test/test-3.jpg
new file mode 100644
index 0000000..fb774d5
--- /dev/null
+++ b/test/test-3.jpg
Binary files differ
diff --git a/test.jpg b/test/test.jpg
index 99de989..99de989 100644
--- a/test.jpg
+++ b/test/test.jpg
Binary files differ