forked from usablica/intro.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to define introductions without focusing on elements + fi…
…x IE8 issue in programmatic version
- Loading branch information
Showing
7 changed files
with
234 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Intro without focusing on elements</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="description" content="Intro.js - Better introductions for websites and features with a step-by-step guide for your projects."> | ||
<meta name="author" content="Afshin Mehrabani (@afshinmeh) in usabli.ca group"> | ||
|
||
<!-- styles --> | ||
<link href="../assets/css/bootstrap.min.css" rel="stylesheet"> | ||
<link href="../assets/css/demo.css" rel="stylesheet"> | ||
|
||
<!-- Add IntroJs styles --> | ||
<link href="../../introjs.css" rel="stylesheet"> | ||
|
||
<link href="../assets/css/bootstrap-responsive.min.css" rel="stylesheet"> | ||
</head> | ||
|
||
<body> | ||
|
||
<div class="container-narrow"> | ||
|
||
<div class="masthead"> | ||
<ul id="step5" class="nav nav-pills pull-right"> | ||
<li><a href="https://github.com/usablica/intro.js/tags"><i class='icon-black icon-download-alt'></i> Download</a></li> | ||
<li><a href="https://github.com/usablica/intro.js">Github</a></li> | ||
<li><a href="https://twitter.com/usablica">@usablica</a></li> | ||
</ul> | ||
<h3 class="muted">Intro.js</h3> | ||
</div> | ||
|
||
<hr> | ||
|
||
<div class="jumbotron"> | ||
<h1 id="step1">Without Element</h1> | ||
<p id="step4" class="lead">This example shows the introductions without focusing on elements.</p> | ||
<a class="btn btn-large btn-success" href="javascript:void(0);" onclick="startIntro();">Show me how</a> | ||
</div> | ||
|
||
<hr> | ||
|
||
<div class="row-fluid marketing"> | ||
<div id="step2" class="span6"> | ||
<h4>Section One</h4> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p> | ||
|
||
<h4>Section Two</h4> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p> | ||
|
||
<h4>Section Three</h4> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p> | ||
</div> | ||
|
||
<div id="step3" class="span6"> | ||
<h4>Section Four</h4> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p> | ||
|
||
|
||
<h4>Section Five</h4> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p> | ||
|
||
<h4>Section Six</h4> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mollis augue a neque cursus ac blandit orci faucibus. Phasellus nec metus purus.</p> | ||
</div> | ||
</div> | ||
|
||
<hr> | ||
|
||
</div> | ||
<script type="text/javascript" src="../../intro.js"></script> | ||
<script type="text/javascript"> | ||
function startIntro(){ | ||
var intro = introJs(); | ||
intro.setOptions({ | ||
steps: [ | ||
{ | ||
intro: "Hello world!" | ||
}, | ||
{ | ||
intro: "You <b>don't need</b> to define element to focus, this is a floating tooltip." | ||
}, | ||
{ | ||
element: document.querySelector('#step1'), | ||
intro: "This is a tooltip." | ||
}, | ||
{ | ||
element: document.querySelectorAll('#step2')[0], | ||
intro: "Ok, wasn't that fun?", | ||
position: 'right' | ||
}, | ||
{ | ||
element: '#step3', | ||
intro: 'More features, more fun.', | ||
position: 'left' | ||
}, | ||
{ | ||
element: '#step4', | ||
intro: "Another step.", | ||
position: 'bottom' | ||
}, | ||
{ | ||
element: '#step5', | ||
intro: 'Get it, use it.' | ||
} | ||
] | ||
}); | ||
|
||
intro.start(); | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.