Skip to content

Fix/deprecated properties #2102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/RTL/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h3 class="muted">Intro.js</h3>
<div class="jumbotron">
<h1 data-step="1" data-title="یک عنوان کوتاه" data-intro="ویکی‌پدیا مقاله‌های رایگانی را ارائه می‌دهد که برای توزیع بیشتر در نظر گرفته شده‌اند و می‌توان آن‌ها را در زیر مدخل‌های واژگانی (لم) و همچنین پورتال‌ها بر اساس حوزه‌های موضوعی و فهرست‌های موضوعی یافت.">RTL Style</h1>
<p class="lead" data-step="4"data-intro="یک مرحله دیگه">This is the <abbr lang="en" title="Right To Left">RTL</abbr> version of IntroJs which includes an addition CSS file to perform the RTL style.</p>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().setOptions({ 'nextLabel': 'بعد', 'prevLabel': 'قبل', 'doneLabel': 'اتمام' }).start();">Show me how</a>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().setOptions({ 'nextLabel': 'بعد', 'prevLabel': 'قبل', 'doneLabel': 'اتمام' }).start();">Show me how</a>
</div>

<hr>
Expand Down
2 changes: 1 addition & 1 deletion example/auto-position/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<link href="../assets/css/bootstrap-responsive.min.css" rel="stylesheet">
<script>
function startTour() {
var tour = introJs()
var tour = introJs.tour()
tour.setOption('tooltipPosition', 'auto');
tour.setOption('positionPrecedence', ['left', 'right', 'top', 'bottom']);
tour.start();
Expand Down
2 changes: 1 addition & 1 deletion example/bootstrap/v3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<div class="intro-text">
<div data-intro="This is the name of this site" class="intro-lead-in">Welcome To Our Studio!</div>
<div data-intro="This is the main headline" class="intro-heading">It's Nice To Meet You</div>
<a href="javascript:void(0)" onclick="introJs().start();" class="page-scroll btn btn-xl">Start Introjs</a>
<a href="javascript:void(0)" onclick="introJs.tour().start();" class="page-scroll btn btn-xl">Start Introjs</a>
</div>
</div>
</header>
Expand Down
2 changes: 1 addition & 1 deletion example/callbacks/onbeforechange.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h4>Section Six</h4>

<script type="text/javascript">
function startIntro(){
var intro = introJs();
var intro = introJs.tour();
intro.onbeforechange(function () {
if (this.currentStep() === 2) {
alert('You cannot continue! :P')
Expand Down
2 changes: 1 addition & 1 deletion example/disable-interaction/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h3 class="muted">Intro.js</h3>
<div class="jumbotron">
<h1 data-step="1" data-intro="Interaction is disabled in this step" data-disable-interaction="1">Disable Interaction</h1>
<p class="lead" data-step="4" data-intro="Another step.">This page demonstrates the usage of <code>data-disable-interaction</code> attribute.</p>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().start();">Show me how</a>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().start();">Show me how</a>
</div>

<hr>
Expand Down
2 changes: 1 addition & 1 deletion example/disable-interaction/programmatic.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h4>Section Six</h4>
<script
type="text/javascript">
function startIntro() {
var intro = introJs();
var intro = introJs.tour();

intro.setOptions({
steps: [
Expand Down
4 changes: 2 additions & 2 deletions example/groups/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ <h3 class="muted">Intro.js</h3>
<div class="jumbotron">
<h1>Groups</h1>
<p class="lead">An example of grouping, with <code>data-intro-group</code> attributes.</p>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().start('odd');">Show me odds</a>
<a class="btn btn-large btn-info" href="javascript:void(0);" onclick="javascript:introJs().start('even');">Show me evens</a>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().start('odd');">Show me odds</a>
<a class="btn btn-large btn-info" href="javascript:void(0);" onclick="javascript:introJs.tour().start('even');">Show me evens</a>
</div>

<hr>
Expand Down
2 changes: 1 addition & 1 deletion example/hello-world/exit-confirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h4>Section Six</h4>

<script type="text/javascript">
function startTour() {
introJs().start().onbeforeexit(function () {
introJs.tour().start().onbeforeexit(function () {
return confirm("Are you sure?");
});
}
Expand Down
2 changes: 1 addition & 1 deletion example/hello-world/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h3 class="muted">Intro.js</h3>
<div class="jumbotron">
<h1 data-step="1" data-intro="This is a tooltip!" data-title="A short title">Basic Usage</h1>
<p class="lead" data-step="4" data-intro="Another step." data-title="foo">This is the basic usage of IntroJs, with <code>data-step</code> and <code>data-intro</code> attributes.</p>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().start();">Show me how</a>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().start();">Show me how</a>
</div>

<hr>
Expand Down
2 changes: 1 addition & 1 deletion example/hello-world/positions.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h3 class="muted" style="margin: 0;">Intro.js</h3>
<div class="jumbotron">
<h1 data-step="1" data-intro="This is a tooltip!" style="position: relative;">Different element positions</h1>
<p class="lead" data-step="4" data-intro="Another step.">In this example you see that Intro.js works with all types of <code>position</code>.</p>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().start();">Show me how</a>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().start();">Show me how</a>
</div>

<hr>
Expand Down
2 changes: 1 addition & 1 deletion example/hello-world/withProgress.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h3 class="muted">Intro.js</h3>
<div class="jumbotron">
<h1 data-step="1" data-intro="This is a tooltip!">Progress-bar</h1>
<p class="lead" data-step="4" data-intro="Another step.">This is the basic usage of IntroJs, with <code>data-step</code> and <code>data-intro</code> attributes.</p>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().setOption('showProgress', true).start();">Show me how</a>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().setOption('showProgress', true).start();">Show me how</a>
</div>

<hr>
Expand Down
2 changes: 1 addition & 1 deletion example/hello-world/withScroll.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h3 class="muted">Intro.js</h3>
<div class="jumbotron">
<h1 data-step="3" data-intro="This is a tooltip!">Works with a Scrollable Element</h1>
<p class="lead">This is the basic usage of IntroJs, with <code>data-step</code> and <code>data-intro</code> attributes.</p>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().start();">Show me how</a>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().start();">Show me how</a>
</div>

<hr>
Expand Down
2 changes: 1 addition & 1 deletion example/hello-world/withoutBullets.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h3 class="muted">Intro.js</h3>
<div class="jumbotron">
<h1 data-step="1" data-intro="This is a tooltip!">Without Bullets</h1>
<p class="lead" data-step="4" data-intro="Another step.">This is the basic usage of IntroJs, with <code>data-step</code> and <code>data-intro</code> attributes.</p>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().setOption('showBullets', false).start();">Show me how</a>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().setOption('showBullets', false).start();">Show me how</a>
</div>

<hr>
Expand Down
2 changes: 1 addition & 1 deletion example/hello-world/withoutButtons.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h3 class="muted">Intro.js</h3>
<div class="jumbotron">
<h1 data-step="1" data-intro="This is a tooltip!">Without Buttons</h1>
<p class="lead" data-step="4" data-intro="Another step.">This is the basic usage of IntroJs, with <code>data-step</code> and <code>data-intro</code> attributes.</p>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().setOption('showButtons', false).start();">Show me how</a>
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().setOption('showButtons', false).start();">Show me how</a>
</div>

<hr>
Expand Down
2 changes: 1 addition & 1 deletion example/multi-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h4>Section Six</h4>
<script type="text/javascript" src="../../dist/intro.js"></script>
<script type="text/javascript">
document.getElementById('startButton').onclick = function() {
introJs().setOption('doneLabel', 'Next page').oncomplete(function() {
introJs.tour().setOption('doneLabel', 'Next page').oncomplete(function() {
window.location.href = 'multi-page/second.html?multipage=true';
}).start();
};
Expand Down
2 changes: 1 addition & 1 deletion example/multi-page/second.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h4>Section Six</h4>
<script type="text/javascript" src="../../dist/intro.js"></script>
<script type="text/javascript">
if (RegExp('multipage', 'gi').test(window.location.search)) {
introJs().start();
introJs.tour().start();
}
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion example/programmatic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h4>Section Six</h4>
<script type="text/javascript" src="../../dist/intro.js"></script>
<script type="text/javascript">
function startIntro(){
var intro = introJs();
var intro = introJs.tour();
intro.setOptions({
steps: [
{
Expand Down
2 changes: 1 addition & 1 deletion example/svg/d3.htm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1 data-intro="This is a tooltip!">SVG</h1>
<script type="text/javascript" src="../../dist/intro.js"></script>
<script type="text/javascript">
document.getElementById('startButton').onclick = function() {
introJs().start();
introJs.tour().start();
};
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion example/withoutElement/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h4>Section Six</h4>
<script type="text/javascript" src="../../dist/intro.js"></script>
<script type="text/javascript">
function startIntro(){
var intro = introJs();
var intro = introJs.tour();
intro.setOptions({
steps: [
{
Expand Down