tinyview.js
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "tinyview.js", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A lightweight javascript image viewer", | ||
@@ -5,0 +5,0 @@ "main": "tinyview.js", |
@@ -8,5 +8,5 @@ # TinyView.js | ||
## Features Demo | ||
<img src="https://github.com/jacksonCV1114/TinyView/blob/main/Demo1.gif" width="300"/> | ||
<img src="https://github.com/jacksonCV1114/TinyView/blob/main/Demo2.gif" width="300"/> | ||
<img src="https://github.com/jacksonCV1114/TinyView/blob/main/Demo3.gif" width="300"/> | ||
<img src="https://github.com/jacksonCV1114/TinyView/blob/main/Demo1.gif" width="150"/> | ||
<img src="https://github.com/jacksonCV1114/TinyView/blob/main/Demo2.gif" width="150"/> | ||
<img src="https://github.com/jacksonCV1114/TinyView/blob/main/Demo3.gif" width="150"/> | ||
@@ -48,2 +48,19 @@ ## Features | ||
<script src="/path/to/tinyview.js"></script> | ||
``` | ||
``` | ||
### Example | ||
``` | ||
<html> | ||
<body> | ||
<img width="200px" id="elem1" src="./image1.jpg"> | ||
<img width="200px" id="elem2" src="./image2.jpg"> | ||
</body> | ||
<script> | ||
const elem1 = document.getElementById("elem1"); | ||
const elem2 = document.getElementById("elem2"); | ||
const tinyview = new TinyView(elem1, elem2); | ||
</script> | ||
</html> | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27458
65