1
私はHopscotchを使用してツアーを作成しています。ユーザーが一度ヒットした後、ツアーを終了することができます。Hopscotch on closeツアー機能
私はonClose関数を作成しようとしていますが、私は立ち往生しています。
var tour = {
id: "businesstour-hopscotch",
steps: [
{
title: "Welcome",
content: "This is the new business profile page, click next to have a quick tour.",
target: document.querySelector('#companyname'),
placement: "right",
xOffset: -380,
yOffset: 52,
onClose: function() {
window.location = '/';
}
},
などなどです。動作しません。ツアーを終了するボタンも表示されません。 アイデアがあれば助かります!