@8thwall/embed8 中文文档教程
Embed8
当嵌入页面时,此脚本会使用行为填充特制链接,以优化用户在其移动设备上查看 AR 的流程。 它使用从 8th.io/qr/xxxx 提供
的 QR 代码脚本在 //cdn.8thwall.com/web/embed8/embed8.js,或 可以通过
$ npm install
$ npm run build
Developing
运行 npm run serve
并转到 https://localhost:9000
查看显示 Embed8 链接的测试 html 来从该存储库构建。
Quick Reference:
<a class="embed8-link" data-short-name="jini"></a>
// This script is optimally put in head but otherwise can be in body
<script src="https://cdn.8thwall.com/web/embed8/embed8.js"></script>
Embed8
This script, when embedded on a page, populates specially crafted links with behaviors to optimize the flow of users to see the AR on their mobile devices. It uses QR codes served from 8th.io/qr/xxxx
The script is served at //cdn.8thwall.com/web/embed8/embed8.js, or can be built from this repository by running
$ npm install
$ npm run build
Developing
Run npm run serve
and go to https://localhost:9000
to view testing html showing Embed8 links.
Quick Reference:
<a class="embed8-link" data-short-name="jini"></a>
// This script is optimally put in head but otherwise can be in body
<script src="https://cdn.8thwall.com/web/embed8/embed8.js"></script>