Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 2226be0

Browse files
committed
Change programmatic example content
1 parent 11c3afc commit 2226be0

File tree

1 file changed

+23
-25
lines changed

1 file changed

+23
-25
lines changed

example/programmatic/index.html

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,42 +33,40 @@ <h3 class="muted">Intro.js</h3>
3333
<hr>
3434

3535
<div class="jumbotron">
36-
<h1 id="step1">Intro<span style="font-weight: normal;">.js</span></h1>
37-
<p id="step4" class="lead">Better introductions for websites and features with a step-by-step guide for your projects.</p>
36+
<h1 id="step1">Programmatic</h1>
37+
<p id="step4" class="lead">In this example we are going to define steps with JSON configuration.</p>
3838
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="startIntro();">Show me how</a>
3939
</div>
4040

4141
<hr>
4242

4343
<div class="row-fluid marketing">
4444
<div id="step2" class="span6">
45-
<h4>Easy to Use</h4>
46-
<p>Just include the js and css files and add <code>data-step</code> and <code>data-intro</code> to your code.</p>
45+
<h4>Section One</h4>
46+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p>
4747

48-
<h4>Fast &amp; Small</h4>
49-
<p><strong>7 KB</strong> JavaScript and <strong>3 KB</strong> CSS. That's all.</p>
48+
<h4>Section Two</h4>
49+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p>
5050

51-
<h4>Free &amp; Open-Source</h4>
52-
<p>Free and open-source (including commercial use). Published under MIT license.</p>
51+
<h4>Section Three</h4>
52+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p>
5353
</div>
5454

5555
<div id="step3" class="span6">
56-
<h4>Keyboard + Mouse navigation</h4>
57-
<p>Ability to navigate with the mouse, or the keyboard - <code></code>, <code></code>, <code>ENTER</code> and <code>ESC</code> to exit.</p>
56+
<h4>Section Four</h4>
57+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p>
5858

59-
<h4>Browser Compatibllity</h4>
60-
<p>Better compatibility is on the roadmap, but currently it should work in recent versions of Firefox, Chrome and IE8 also.</p>
61-
<h4>Developed with &lt;3</h4>
62-
<p>With &lt;3 in <a href='http://usabli.ca/' target="_blank" title="usabli.ca group">usabli.ca</a>, Tehran.</p>
59+
60+
<h4>Section Five</h4>
61+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p>
62+
63+
<h4>Section Six</h4>
64+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p>
6365
</div>
6466
</div>
6567

6668
<hr>
6769

68-
<div class="footer">
69-
<p>&copy; <a href='http://usabli.ca/' target="_blank" title="usabli.ca group">usabli.ca</a> 2013 - A weekend project by <a href="http://afshinm.name/" target="_blank">Afshin Mehrabani</a></p>
70-
</div>
71-
7270
</div>
7371
<script type="text/javascript" src="../../intro.js"></script>
7472
<script type="text/javascript">
@@ -77,26 +75,26 @@ <h4>Developed with &lt;3</h4>
7775
intro.setOptions({
7876
steps: [
7977
{
80-
element: document.getElementById('step1'),
81-
intro: "Hello all! :) This project's called Intro.js."
78+
element: '#step1',
79+
intro: "This is a tooltip."
8280
},
8381
{
84-
element: document.getElementById('step2'),
82+
element: '#step2',
8583
intro: "Ok, wasn't that fun?",
8684
position: 'right'
8785
},
8886
{
89-
element: document.getElementById('step3'),
87+
element: '#step3',
9088
intro: 'More features, more fun.',
9189
position: 'left'
9290
},
9391
{
94-
element: document.getElementById('step4'),
95-
intro: "Let's try it. It's free and open-source.",
92+
element: '#step4',
93+
intro: "Another step.",
9694
position: 'bottom'
9795
},
9896
{
99-
element: document.getElementById('step5'),
97+
element: '#step5',
10098
intro: 'Get it, use it.'
10199
}
102100
]

0 commit comments

Comments
 (0)