ViewImage
Gzip compressed to just 2K, small and superb raw JavaScript lightbox plugin
Install / Use
/learn @Tokinx/ViewImageREADME
ViewImage.js
Gzip后仅 2kb,小巧卓越的原生JavaScript灯箱插件
获取
你可以直接访问ViewImage的 GitHub 来获取最新版插件,当然你也可以通过下面的链接下载ViewImage:
view-image.js or view-image.min.js
引用
<script src="//tokinx.github.io/ViewImage/view-image.min.js"></script>
启用
我们为您提供了非常简便的初始化方法,方便您对程序进行一些个性化设置并正确启用
<script>
window.ViewImage && ViewImage.init('.content img');
</script>
使用 view-image 属性控制灯箱范围
使用 no-view 属性排除一些图片
独立使用
<script>
ViewImage.display([图片URL数组], '当前展示的图片URL')
</script>
详细文档请阅读:https://tokinx.github.io/ViewImage
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
