@@ -33,42 +33,40 @@ <h3 class="muted">Intro.js</h3>
33
33
< hr >
34
34
35
35
< 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 >
38
38
< a class ="btn btn-large btn-success " href ="javascript:void(0); " onclick ="startIntro(); "> Show me how</ a >
39
39
</ div >
40
40
41
41
< hr >
42
42
43
43
< div class ="row-fluid marketing ">
44
44
< 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 >
47
47
48
- < h4 > Fast & 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 >
50
50
51
- < h4 > Free & 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 >
53
53
</ div >
54
54
55
55
< 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 >
58
58
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 <3</ h4 >
62
- < p > With <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 >
63
65
</ div >
64
66
</ div >
65
67
66
68
< hr >
67
69
68
- < div class ="footer ">
69
- < p > © < 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
-
72
70
</ div >
73
71
< script type ="text/javascript " src ="../../intro.js "> </ script >
74
72
< script type ="text/javascript ">
@@ -77,26 +75,26 @@ <h4>Developed with <3</h4>
77
75
intro . setOptions ( {
78
76
steps : [
79
77
{
80
- element : document . getElementById ( ' step1') ,
81
- intro : "Hello all! :) This project's called Intro.js ."
78
+ element : '# step1',
79
+ intro : "This is a tooltip ."
82
80
} ,
83
81
{
84
- element : document . getElementById ( ' step2') ,
82
+ element : '# step2',
85
83
intro : "Ok, wasn't that fun?" ,
86
84
position : 'right'
87
85
} ,
88
86
{
89
- element : document . getElementById ( ' step3') ,
87
+ element : '# step3',
90
88
intro : 'More features, more fun.' ,
91
89
position : 'left'
92
90
} ,
93
91
{
94
- element : document . getElementById ( ' step4') ,
95
- intro : "Let's try it. It's free and open-source ." ,
92
+ element : '# step4',
93
+ intro : "Another step ." ,
96
94
position : 'bottom'
97
95
} ,
98
96
{
99
- element : document . getElementById ( ' step5') ,
97
+ element : '# step5',
100
98
intro : 'Get it, use it.'
101
99
}
102
100
]
0 commit comments