javascript - How to have a multipage-multiple tour site using intro.js?
问题描述
I'm currently new to intro js and I have this big project up
I need to start a tour on page 1, that will continue on page 2, then it needs to go back to page 1 and start another tour that will continue on page 3
I hope someone can help me :(
解决方案
examples/
文件夹中有一个多页演示。
克隆项目,
examples/index.html
用浏览器打开文件。单击
Multi-Page introduction
并查看源代码。
在底部你会发现
<script type="text/javascript">
document.getElementById('startButton').onclick = function() {
introJs().setOption('doneLabel', 'Next page').start().oncomplete(function() {
window.location.href = 'second.html?multipage=true';
});
};
</script>
使用它开始。
将示例代码发布到 github 或其他地方。
当您遇到困难时更新您的问题。
推荐阅读
- javascript - magnific popup:以编程方式将内容从弹出表单更改为模态微调器,然后返回表单
- cmd - mcopy、mformat、mattrib 命令在 Windows 中对应?
- python - 在 pandas 中执行 concat 而不包括两次公共列
- postgresql - postgresql 中的重启点是什么?
- objective-c - 如何在 Swift 包管理器 Package.swift 中包含 MTL_HEADER_SEARCH_PATHS?
- haskell - 在 Haskell 中创建我自己的图形数据结构
- javascript - 如何在渲染 ReactJS 之前获取数据
- javascript - 在 CKEditor 中查找和替换后将光标移动到行尾
- python-3.x - pyppeteer headless 会导致 bot 检测,而不是 headless 是可以的
- python - 枕头改变图片的RGB值不起作用