Permalink
Browse files

Add multi-page example

  • Loading branch information...
1 parent 2226be0 commit 489af0cab1c531b7c2b0974455d72ad3d08f4b35 @afshinm afshinm committed May 10, 2013
Showing with 148 additions and 0 deletions.
  1. +73 −0 example/multi-page/index.html
  2. +75 −0 example/multi-page/second.html
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Multi-page introduction, Page 1</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 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 data-step="1" data-intro="This is a tooltip!">Multi-Page</span></h1>
+ <p class="lead">Multi-page introduction, you will see three steps of introduction in this page.</p>
+ <a id="startButton" class="btn btn-large btn-success" href="javascript:void(0);">Show me how</a>
+ </div>
+
+ <hr>
+
+ <div class="row-fluid marketing">
+ <div class="span6" data-step="2" data-intro="Ok, wasn't that fun?" data-position='right'>
+ <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 class="span6" data-step="3" data-intro="More features, more fun." data-position='left'>
+ <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>
+
+ </div>
+ <script type="text/javascript" src="../../intro.js"></script>
+ <script type="text/javascript">
+ document.getElementById('startButton').onclick = function() {
+ introJs().setOption('doneLabel', 'Next page').start().oncomplete(function() {
+ window.location.href = 'second.html?multipage=true';
+ });
+ };
+ </script>
+ </body>
+</html>
@@ -0,0 +1,75 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Multi-page introduction, Page 2</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 class="nav nav-pills pull-right" data-step="5" data-intro="Get it, use it.">
+ <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>Second Page</span></h1>
+ <p class="lead" data-step="4" data-intro="Another step.">Next page of introduction!</p>
+ </div>
+
+ <hr>
+
+ <div class="row-fluid marketing">
+ <div 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 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>
+
+
+ </div>
+ <script type="text/javascript" src="../../intro.js"></script>
+ <script type="text/javascript">
+ if (RegExp('multipage', 'gi').test(window.location.search)) {
+ introJs().start();
+ }
+ </script>
+ </body>
+</html>

0 comments on commit 489af0c

Please sign in to comment.