Skip to content

Commit

Permalink
[docs] add example
Browse files Browse the repository at this point in the history
  • Loading branch information
jwchan1996 committed Jun 7, 2020
1 parent cd04ada commit a6c90c4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<title>lightimage.js</title>
<style>
html, body {
padding: 0;
margin: 0;
}
</style>
</head>
<body>
<div id="app">
<img src="https://catbox.moe/pictures/qts/1512072270390.png" alt="">
<div class="content">
<img src="https://files.catbox.moe/jmai6s.png" style="width: 300px;" alt="">
<img src="https://files.catbox.moe/uh4owu.jpg" style="width: 300px;" alt="">
<img src="https://files.catbox.moe/bdo5nr.jpg" style="height: 300px;" alt="">
</div>
</div>
</body>
<script src="lightimage.min.js"></script>
<script type="text/javascript">
new Lightimage('#app').init({
cursor: 'zoom-in'
})
</script>
</html>
1 change: 1 addition & 0 deletions docs/lightimage.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a6c90c4

Please sign in to comment.