Skip to content

Commit

Permalink
Improve instructions for IFrame trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Averikhin committed Nov 10, 2023
1 parent b8f8217 commit 9a37515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guidechimp-iframe-plugin/index-trigger.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ <h1>GuideChimp Tour Example - <a href="https://github.com/Labs64/GuideChimp/wiki
element: '#iframe2-div-headline',
iFrames: ['#iframe1', '#iframe2-div'],
title: 'IFrame 2 (DIV): headline',
description: 'Click on "IFrame 2 (DIV)" to trigger event',
onAfterChange(step) {
// get el document
const { iFrames = [], element } = step;
Expand All @@ -75,7 +76,7 @@ <h1>GuideChimp Tour Example - <a href="https://github.com/Labs64/GuideChimp/wiki
const el = iFrameDoc.querySelector(element);

el.addEventListener('click', () => {
alert('Clicked');
alert('IFrame 2 (DIV) clicked');
})
}
},
Expand Down

0 comments on commit 9a37515

Please sign in to comment.