-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tubingbing
committed
Jul 31, 2021
1 parent
4185391
commit 993f5c7
Showing
4 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,8 @@ npm i h5-imageviewer | |
``` | ||
|
||
Or get it from CDN: | ||
[https://unpkg.com/[email protected]/umd/pobi-imageviewer.js](https://unpkg.com/[email protected]/umd/pobi-imageviewer.js) | ||
|
||
[https://unpkg.com/[email protected]/umd/h5-imageviewer.js](https://unpkg.com/[email protected]/umd/h5-imageviewer.js) | ||
|
||
# Usage | ||
Show single image viewer | ||
|
@@ -47,7 +48,7 @@ viewer.showImgListViewer(imgObjList, options) | |
viewer.hideImgListViewer() | ||
``` | ||
|
||
Please check [EXAMPLE](https://github.com/TUBB/h5-imageviewer/blob/master/src/example/example.js) for detail. | ||
Please check [EXAMPLE1](https://github.com/TUBB/h5-imageviewer/blob/master/src/example/example.js) or [EXAMPLE2](https://github.com/TUBB/h5-imageviewer/tree/master/public/cdn-test.html) for detail. | ||
|
||
# Apis | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"> | ||
<meta name="format-detection" content="telephone=no"> | ||
<title>H5 mobile image viewer</title> | ||
<script src="https://unpkg.com/[email protected].4/umd/pobi-imageviewer.js"></script> | ||
<script src="https://unpkg.com/[email protected].5/umd/h5-imageviewer.js"></script> | ||
<script src="./vconsole.min.js"></script> | ||
<script> | ||
// init vConsole | ||
var vConsole = new VConsole(); | ||
function showImage() { | ||
PobiImageViewer.showViewer( | ||
H5ImageViewer.showViewer( | ||
{src: 'http://localhost:8080/737a71084999bb9ee329f7afead08564.jpg'}, | ||
{ | ||
onPageChanged: pageIndex => { | ||
|
@@ -21,7 +21,7 @@ | |
) | ||
} | ||
function showImageList() { | ||
PobiImageViewer.showImgListViewer( | ||
H5ImageViewer.showImgListViewer( | ||
[ | ||
{src: 'http://localhost:8080/737a71084999bb9ee329f7afead08564.jpg'}, | ||
{src: 'http://localhost:8080/2e0036ab635f5b7dbcef2ca82b1cdca5.jpg'} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters