Skip to content

Commit

Permalink
poc iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
wingy3181 committed Nov 19, 2021
1 parent 453b5b1 commit f5ed9dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h3 class="p-2 text-2xl text-center uppercase w-full">
</div>
</div>
</header>

<iframe id="test" src="http://localhost:9002/test.html" width="500" height="500"></iframe>
<main>
<div class="font-heading mt-8 text-6xl text-center uppercase w-full">
<img
Expand Down
4 changes: 3 additions & 1 deletion landing/js/welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
text: '\n <p>\n Shepherd is a JavaScript library for guiding users through your app.\n It uses <a href="https://popper.js.org/" data-test-popper-link>Popper.js</a>,\n another open source library, to render dialogs for each tour "step".\n </p>\n \n <p>\n Among many things, Popper makes sure your steps never end up off screen or cropped by an overflow.\n (Try resizing your browser to see what we mean.)\n </p>\n',
attachTo: {
element: '.hero-welcome',
// element: document.getElementById('test').contentWindow.document.querySelector('h1'),
on: 'bottom'
},
buttons: [
Expand Down Expand Up @@ -58,7 +59,8 @@
title: 'Including',
text: element,
attachTo: {
element: '.hero-including',
// element: '.hero-including',
element: document.getElementById('test').contentWindow.document.querySelector('h1'),
on: 'bottom'
},
buttons: [
Expand Down
1 change: 1 addition & 0 deletions test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>Heading 1</h1>

0 comments on commit f5ed9dc

Please sign in to comment.