Skip to content

Commit db2df99

Browse files
authored
Merge pull request #2102 from Parvinmh/fix/deprecated
Fix/deprecated properties
2 parents 2139b02 + 73c8100 commit db2df99

File tree

19 files changed

+20
-20
lines changed

19 files changed

+20
-20
lines changed

example/RTL/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h3 class="muted">Intro.js</h3>
4444
<div class="jumbotron">
4545
<h1 data-step="1" data-title="یک عنوان کوتاه" data-intro="ویکی‌پدیا مقاله‌های رایگانی را ارائه می‌دهد که برای توزیع بیشتر در نظر گرفته شده‌اند و می‌توان آن‌ها را در زیر مدخل‌های واژگانی (لم) و همچنین پورتال‌ها بر اساس حوزه‌های موضوعی و فهرست‌های موضوعی یافت.">RTL Style</h1>
4646
<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>
47-
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().setOptions({ 'nextLabel': 'بعد', 'prevLabel': 'قبل', 'doneLabel': 'اتمام' }).start();">Show me how</a>
47+
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().setOptions({ 'nextLabel': 'بعد', 'prevLabel': 'قبل', 'doneLabel': 'اتمام' }).start();">Show me how</a>
4848
</div>
4949

5050
<hr>

example/auto-position/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<link href="../assets/css/bootstrap-responsive.min.css" rel="stylesheet">
1818
<script>
1919
function startTour() {
20-
var tour = introJs()
20+
var tour = introJs.tour()
2121
tour.setOption('tooltipPosition', 'auto');
2222
tour.setOption('positionPrecedence', ['left', 'right', 'top', 'bottom']);
2323
tour.start();

example/bootstrap/v3/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<div class="intro-text">
8484
<div data-intro="This is the name of this site" class="intro-lead-in">Welcome To Our Studio!</div>
8585
<div data-intro="This is the main headline" class="intro-heading">It's Nice To Meet You</div>
86-
<a href="javascript:void(0)" onclick="introJs().start();" class="page-scroll btn btn-xl">Start Introjs</a>
86+
<a href="javascript:void(0)" onclick="introJs.tour().start();" class="page-scroll btn btn-xl">Start Introjs</a>
8787
</div>
8888
</div>
8989
</header>

example/callbacks/onbeforechange.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ <h4>Section Six</h4>
7070

7171
<script type="text/javascript">
7272
function startIntro(){
73-
var intro = introJs();
73+
var intro = introJs.tour();
7474
intro.onbeforechange(function () {
7575
if (this.currentStep() === 2) {
7676
alert('You cannot continue! :P')

example/disable-interaction/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h3 class="muted">Intro.js</h3>
3535
<div class="jumbotron">
3636
<h1 data-step="1" data-intro="Interaction is disabled in this step" data-disable-interaction="1">Disable Interaction</h1>
3737
<p class="lead" data-step="4" data-intro="Another step.">This page demonstrates the usage of <code>data-disable-interaction</code> attribute.</p>
38-
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().start();">Show me how</a>
38+
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().start();">Show me how</a>
3939
</div>
4040

4141
<hr>

example/disable-interaction/programmatic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h4>Section Six</h4>
7272
<script
7373
type="text/javascript">
7474
function startIntro() {
75-
var intro = introJs();
75+
var intro = introJs.tour();
7676

7777
intro.setOptions({
7878
steps: [

example/groups/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ <h3 class="muted">Intro.js</h3>
3535
<div class="jumbotron">
3636
<h1>Groups</h1>
3737
<p class="lead">An example of grouping, with <code>data-intro-group</code> attributes.</p>
38-
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().start('odd');">Show me odds</a>
39-
<a class="btn btn-large btn-info" href="javascript:void(0);" onclick="javascript:introJs().start('even');">Show me evens</a>
38+
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().start('odd');">Show me odds</a>
39+
<a class="btn btn-large btn-info" href="javascript:void(0);" onclick="javascript:introJs.tour().start('even');">Show me evens</a>
4040
</div>
4141

4242
<hr>

example/hello-world/exit-confirm.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h4>Section Six</h4>
7171

7272
<script type="text/javascript">
7373
function startTour() {
74-
introJs().start().onbeforeexit(function () {
74+
introJs.tour().start().onbeforeexit(function () {
7575
return confirm("Are you sure?");
7676
});
7777
}

example/hello-world/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h3 class="muted">Intro.js</h3>
3535
<div class="jumbotron">
3636
<h1 data-step="1" data-intro="This is a tooltip!" data-title="A short title">Basic Usage</h1>
3737
<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>
38-
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().start();">Show me how</a>
38+
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().start();">Show me how</a>
3939
</div>
4040

4141
<hr>

example/hello-world/positions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h3 class="muted" style="margin: 0;">Intro.js</h3>
4848
<div class="jumbotron">
4949
<h1 data-step="1" data-intro="This is a tooltip!" style="position: relative;">Different element positions</h1>
5050
<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>
51-
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs().start();">Show me how</a>
51+
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="javascript:introJs.tour().start();">Show me how</a>
5252
</div>
5353

5454
<hr>

0 commit comments

Comments
 (0)