Commit 26ce1fb3 authored by Jon Phillips's avatar Jon Phillips
Browse files

get rid of the examples from the widget

parent 8f92dea9
<!DOCTYPE html>
<html>
<head>
<title>Basic Custom Example</title>
<!-- Bootstrap -->
<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- custom styles -->
<link href="custom.css" rel="stylesheet">
<link href="../prettify.css" rel="stylesheet">
</head>
<body>
<div class='container'>
<div class="span12">
<section id="wizard">
<div class="page-header">
<h1>Basic Custom Wizard</h1>
</div>
<div id="rootwizard">
<ul>
<li><a href="#tab1" data-toggle="tab"><span class="label">1</span> First</a></li>
<li><a href="#tab2" data-toggle="tab"><span class="label">2</span> Second</a></li>
<li><a href="#tab3" data-toggle="tab"><span class="label">3</span> Third</a></li>
<li><a href="#tab4" data-toggle="tab"><span class="label">4</span> Forth</a></li>
<li><a href="#tab5" data-toggle="tab"><span class="label">5</span> Fifth</a></li>
<li><a href="#tab6" data-toggle="tab"><span class="label">6</span> Sixth</a></li>
<li><a href="#tab7" data-toggle="tab"><span class="label">7</span> Seventh</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane" id="tab1">
1
</div>
<div class="tab-pane" id="tab2">
2
</div>
<div class="tab-pane" id="tab3">
3
</div>
<div class="tab-pane" id="tab4">
4
</div>
<div class="tab-pane" id="tab5">
5
</div>
<div class="tab-pane" id="tab6">
6
</div>
<div class="tab-pane" id="tab7">
7
</div>
<ul class="pager wizard">
<li class="previous first" style="display:none;"><a href="#">First</a></li>
<li class="previous"><a href="#">Previous</a></li>
<li class="next last" style="display:none;"><a href="#">Last</a></li>
<li class="next"><a href="#">Next</a></li>
</ul>
</div>
</div>
<h3>HTML</h3>
<pre class="prettyprint linenums">
&lt;div id="rootwizard">
&lt;ul>
&lt;li>&lt;a href="#tab1" data-toggle="tab">&lt;span class="label">1&lt;/span> First&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab2" data-toggle="tab">&lt;span class="label">2&lt;/span> Second&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab3" data-toggle="tab">&lt;span class="label">3&lt;/span> Third&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab4" data-toggle="tab">&lt;span class="label">4&lt;/span> Forth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab5" data-toggle="tab">&lt;span class="label">5&lt;/span> Fifth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab6" data-toggle="tab">&lt;span class="label">6&lt;/span> Sixth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab7" data-toggle="tab">&lt;span class="label">7&lt;/span> Seventh&lt;/a>&lt;/li>
&lt;/ul>
&lt;div class="tab-content">
&lt;div class="tab-pane" id="tab1">
1
&lt;/div>
&lt;div class="tab-pane" id="tab2">
2
&lt;/div>
&lt;div class="tab-pane" id="tab3">
3
&lt;/div>
&lt;div class="tab-pane" id="tab4">
4
&lt;/div>
&lt;div class="tab-pane" id="tab5">
5
&lt;/div>
&lt;div class="tab-pane" id="tab6">
6
&lt;/div>
&lt;div class="tab-pane" id="tab7">
7
&lt;/div>
&lt;ul class="pager wizard">
&lt;li class="previous first" style="display:none;">&lt;a href="#">First&lt;/a>&lt;/li>
&lt;li class="previous">&lt;a href="#">Previous&lt;/a>&lt;/li>
&lt;li class="next last" style="display:none;">&lt;a href="#">Last&lt;/a>&lt;/li>
&lt;li class="next">&lt;a href="#">Next&lt;/a>&lt;/li>
&lt;/ul>
&lt;/div>
&lt;/div>
</pre>
<h3>JS</h3>
<pre class="prettyprint linenums">
$(document).ready(function() {
$('#rootwizard').bootstrapWizard({'tabClass': 'bwizard-steps'});
});
</pre>
<h3>CSS</h3>
<pre class="prettyprint linenums">
.bwizard-steps {
display: inline-block;
margin: 0; padding: 0;
background: #fff }
.bwizard-steps .active {
color: #fff;
background: #007ACC }
.bwizard-steps .active:after {
border-left-color: #007ACC }
.bwizard-steps .active a {
color: #fff;
cursor: default }
.bwizard-steps .label {
position: relative;
top: -1px;
margin: 0 5px 0 0; padding: 1px 5px 2px }
.bwizard-steps .active .label {
background-color: #333;}
.bwizard-steps li {
display: inline-block; position: relative;
margin-right: 5px;
padding: 12px 17px 10px 30px;
*display: inline;
*padding-left: 17px;
background: #efefef;
line-height: 18px;
list-style: none;
zoom: 1; }
.bwizard-steps li:first-child {
padding-left: 12px;
-moz-border-radius: 4px 0 0 4px;
-webkit-border-radius: 4px 0 0 4px;
border-radius: 4px 0 0 4px; }
.bwizard-steps li:first-child:before {
border: none }
.bwizard-steps li:last-child {
margin-right: 0;
-moz-border-radius: 0 4px 4px 0;
-webkit-border-radius: 0 4px 4px 0;
border-radius: 0 4px 4px 0; }
.bwizard-steps li:last-child:after {
border: none }
.bwizard-steps li:before {
position: absolute;
left: 0; top: 0;
height: 0; width: 0;
border-bottom: 20px inset transparent;
border-left: 20px solid #fff;
border-top: 20px inset transparent;
content: "" }
.bwizard-steps li:after {
position: absolute;
right: -20px; top: 0;
height: 0; width: 0;
border-bottom: 20px inset transparent;
border-left: 20px solid #efefef;
border-top: 20px inset transparent;
content: "";
z-index: 2; }
.bwizard-steps a {
color: #333 }
.bwizard-steps a:hover {
text-decoration: none }
.bwizard-steps.clickable li:not(.active) {
cursor: pointer }
.bwizard-steps.clickable li:hover:not(.active) {
background: #ccc }
.bwizard-steps.clickable li:hover:not(.active):after {
border-left-color: #ccc }
.bwizard-steps.clickable li:hover:not(.active) a {
color: #08c }
@media (max-width: 480px) {
/* badges only on small screens */
.bwizard-steps li:after,
.bwizard-steps li:before {
border: none }
.bwizard-steps li,
.bwizard-steps li.active,
.bwizard-steps li:first-child,
.bwizard-steps li:last-child {
margin-right: 0;
padding: 0;
background-color: transparent }
}
</pre>
</section>
</div>
</div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="../bootstrap/js/bootstrap.min.js"></script>
<script src="../jquery.bootstrap.wizard.js"></script>
<script src="../prettify.js"></script>
<script>
$(document).ready(function() {
$('#rootwizard').bootstrapWizard({'tabClass': 'bwizard-steps'});
window.prettyPrint && prettyPrint()
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Wizard With Custom Tabs Example</title>
<!-- Bootstrap -->
<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../prettify.css" rel="stylesheet">
</head>
<body>
<div class='container'>
<div class="span12">
<section id="wizard">
<div class="page-header">
<h1>Wizard With Custom Tabs Example</h1>
</div>
<div id="rootwizard">
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<ul>
<li><a href="#tab1" data-toggle="tab">First</a></li>
<li><a href="#tab2" data-toggle="tab">Second</a></li>
<li><a href="#tab3" data-toggle="tab">Third</a></li>
<li><a href="#tab4" data-toggle="tab">Forth</a></li>
<li><a href="#tab5" data-toggle="tab">Fifth</a></li>
<li><a href="#tab6" data-toggle="tab">Sixth</a></li>
<li><a href="#tab7" data-toggle="tab">Seventh</a></li>
</ul>
</div>
</div>
</div>
<div class="tab-content">
<div class="tab-pane" id="tab1">
1
</div>
<div class="tab-pane" id="tab2">
2
</div>
<div class="tab-pane" id="tab3">
3
</div>
<div class="tab-pane" id="tab4">
4
</div>
<div class="tab-pane" id="tab5">
5
</div>
<div class="tab-pane" id="tab6">
6
</div>
<div class="tab-pane" id="tab7">
7
</div>
<div style="float:right">
<input type='button' class='btn button-next' name='next' value='Next' />
</div>
<div style="float:left">
<input type='button' class='btn button-previous' name='previous' value='Previous' />
</div>
</div>
</div>
<h3>HTML</h3>
<pre class="prettyprint linenums">
&lt;div id="rootwizard">
&lt;div class="navbar">
&lt;div class="navbar-inner">
&lt;div class="container">
&lt;ul>
&lt;li>&lt;a href="#tab1" data-toggle="tab">First&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab2" data-toggle="tab">Second&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab3" data-toggle="tab">Third&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab4" data-toggle="tab">Forth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab5" data-toggle="tab">Fifth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab6" data-toggle="tab">Sixth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab7" data-toggle="tab">Seventh&lt;/a>&lt;/li>
&lt;/ul>
&lt;/div>
&lt;/div>
&lt;/div>
&lt;div class="tab-content">
&lt;div class="tab-pane" id="tab1">
1
&lt;/div>
&lt;div class="tab-pane" id="tab2">
2
&lt;/div>
&lt;div class="tab-pane" id="tab3">
3
&lt;/div>
&lt;div class="tab-pane" id="tab4">
4
&lt;/div>
&lt;div class="tab-pane" id="tab5">
5
&lt;/div>
&lt;div class="tab-pane" id="tab6">
6
&lt;/div>
&lt;div class="tab-pane" id="tab7">
7
&lt;/div>
&lt;div style="float:right">
&lt;input type='button' class='btn button-next' name='next' value='Next' />
&lt;/div>
&lt;div style="float:left">
&lt;input type='button' class='btn button-previous' name='previous' value='Previous' />
&lt;/div>
&lt;/div>
&lt;/div>
</pre>
<h3>JS</h3>
<pre class="prettyprint linenums">
$(document).ready(function() {
$('#rootwizard').bootstrapWizard({'nextSelector': '.button-next', 'previousSelector': '.button-previous'});
});
</pre>
</section>
</div>
</div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="../bootstrap/js/bootstrap.min.js"></script>
<script src="../jquery.bootstrap.wizard.js"></script>
<script src="../prettify.js"></script>
<script>
$(document).ready(function() {
$('#rootwizard').bootstrapWizard({'nextSelector': '.button-next', 'previousSelector': '.button-previous'});
window.prettyPrint && prettyPrint()
});
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Wizard With Custom Next/Previous Buttons & First and Last buttons</title>
<!-- Bootstrap -->
<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../prettify.css" rel="stylesheet">
</head>
<body>
<div class='container'>
<div class="span12">
<section id="wizard">
<div class="page-header">
<h1>Wizard With Custom Next/Previous Buttons & First and Last buttons</h1>
</div>
<div id="rootwizard">
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<ul>
<li><a href="#tab1" data-toggle="tab">First</a></li>
<li><a href="#tab2" data-toggle="tab">Second</a></li>
<li><a href="#tab3" data-toggle="tab">Third</a></li>
<li><a href="#tab4" data-toggle="tab">Forth</a></li>
<li><a href="#tab5" data-toggle="tab">Fifth</a></li>
<li><a href="#tab6" data-toggle="tab">Sixth</a></li>
<li><a href="#tab7" data-toggle="tab">Seventh</a></li>
</ul>
</div>
</div>
</div>
<div class="tab-content">
<div class="tab-pane" id="tab1">
1
</div>
<div class="tab-pane" id="tab2">
2
</div>
<div class="tab-pane" id="tab3">
3
</div>
<div class="tab-pane" id="tab4">
4
</div>
<div class="tab-pane" id="tab5">
5
</div>
<div class="tab-pane" id="tab6">
6
</div>
<div class="tab-pane" id="tab7">
7
</div>
<div style="float:right">
<input type='button' class='btn button-next' name='next' value='Next' />
<input type='button' class='btn button-last' name='last' value='Last' />
</div>
<div style="float:left">
<input type='button' class='btn button-first' name='first' value='First' />
<input type='button' class='btn button-previous' name='previous' value='Previous' />
</div>
</div>
</div>
<h3>HTML</h3>
<pre class="prettyprint linenums">
&lt;div id="rootwizard">
&lt;div class="navbar">
&lt;div class="navbar-inner">
&lt;div class="container">
&lt;ul>
&lt;li>&lt;a href="#tab1" data-toggle="tab">First&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab2" data-toggle="tab">Second&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab3" data-toggle="tab">Third&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab4" data-toggle="tab">Forth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab5" data-toggle="tab">Fifth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab6" data-toggle="tab">Sixth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab7" data-toggle="tab">Seventh&lt;/a>&lt;/li>
&lt;/ul>
&lt;/div>
&lt;/div>
&lt;/div>
&lt;div class="tab-content">
&lt;div class="tab-pane" id="tab1">
1
&lt;/div>
&lt;div class="tab-pane" id="tab2">
2
&lt;/div>
&lt;div class="tab-pane" id="tab3">
3
&lt;/div>
&lt;div class="tab-pane" id="tab4">
4
&lt;/div>
&lt;div class="tab-pane" id="tab5">
5
&lt;/div>
&lt;div class="tab-pane" id="tab6">
6
&lt;/div>
&lt;div class="tab-pane" id="tab7">
7
&lt;/div>
&lt;div style="float:right">
&lt;input type='button' class='btn button-next' name='next' value='Next' />
&lt;input type='button' class='btn button-last' name='last' value='Last' />
&lt;/div>
&lt;div style="float:left">
&lt;input type='button' class='btn button-first' name='first' value='First' />
&lt;input type='button' class='btn button-previous' name='previous' value='Previous' />
&lt;/div>
&lt;/div>
&lt;/div>
</pre>
<h3>JS</h3>
<pre class="prettyprint linenums">
$(document).ready(function() {
$('#rootwizard').bootstrapWizard({'nextSelector': '.button-next', 'previousSelector': '.button-previous', 'firstSelector': '.button-first', 'lastSelector': '.button-last'});
});
</pre>
</section>
</div>
</div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="../bootstrap/js/bootstrap.min.js"></script>
<script src="../jquery.bootstrap.wizard.js"></script>
<script src="../prettify.js"></script>
<script>
$(document).ready(function() {
$('#rootwizard').bootstrapWizard({'nextSelector': '.button-next', 'previousSelector': '.button-previous', 'firstSelector': '.button-first', 'lastSelector': '.button-last'});
window.prettyPrint && prettyPrint()
});
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Wizard With Disabled Tab Click</title>
<!-- Bootstrap -->
<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../prettify.css" rel="stylesheet">
</head>
<body>
<div class='container'>
<div class="span12">
<section id="wizard">
<div class="page-header">
<h1>Wizard With Disabled Tab Click</h1>
</div>
<div id="rootwizard">
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<ul>
<li><a href="#tab1" data-toggle="tab">First</a></li>
<li><a href="#tab2" data-toggle="tab">Second</a></li>
<li><a href="#tab3" data-toggle="tab">Third</a></li>
<li><a href="#tab4" data-toggle="tab">Forth</a></li>
<li><a href="#tab5" data-toggle="tab">Fifth</a></li>
<li><a href="#tab6" data-toggle="tab">Sixth</a></li>
<li><a href="#tab7" data-toggle="tab">Seventh</a></li>
</ul>
</div>
</div>
</div>
<div class="tab-content">
<div class="tab-pane" id="tab1">
1
</div>
<div class="tab-pane" id="tab2">
2
</div>
<div class="tab-pane" id="tab3">
3
</div>
<div class="tab-pane" id="tab4">
4
</div>
<div class="tab-pane" id="tab5">
5
</div>
<div class="tab-pane" id="tab6">
6
</div>
<div class="tab-pane" id="tab7">
7
</div>
<ul class="pager wizard">
<li class="previous first" style="display:none;"><a href="#">First</a></li>
<li class="previous"><a href="#">Previous</a></li>
<li class="next last" style="display:none;"><a href="#">Last</a></li>
<li class="next"><a href="#">Next</a></li>
</ul>
</div>
</div>
<h3>HTML</h3>
<pre class="prettyprint linenums">
&lt;div id="rootwizard">
&lt;div class="navbar">
&lt;div class="navbar-inner">
&lt;div class="container">
&lt;ul>
&lt;li>&lt;a href="#tab1" data-toggle="tab">First&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab2" data-toggle="tab">Second&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab3" data-toggle="tab">Third&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab4" data-toggle="tab">Forth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab5" data-toggle="tab">Fifth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab6" data-toggle="tab">Sixth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab7" data-toggle="tab">Seventh&lt;/a>&lt;/li>
&lt;/ul>
&lt;/div>
&lt;/div>
&lt;/div>
&lt;div class="tab-content">
&lt;div class="tab-pane" id="tab1">
1
&lt;/div>
&lt;div class="tab-pane" id="tab2">
2
&lt;/div>
&lt;div class="tab-pane" id="tab3">
3
&lt;/div>
&lt;div class="tab-pane" id="tab4">
4
&lt;/div>
&lt;div class="tab-pane" id="tab5">
5
&lt;/div>
&lt;div class="tab-pane" id="tab6">
6
&lt;/div>
&lt;div class="tab-pane" id="tab7">
7
&lt;/div>
&lt;ul class="pager wizard">
&lt;li class="previous first" style="display:none;">&lt;a href="#">First&lt;/a>&lt;/li>
&lt;li class="previous">&lt;a href="#">Previous&lt;/a>&lt;/li>
&lt;li class="next last" style="display:none;">&lt;a href="#">Last&lt;/a>&lt;/li>
&lt;li class="next">&lt;a href="#">Next&lt;/a>&lt;/li>
&lt;/ul>
&lt;/div>
&lt;/div>
</pre>
<h3>JS</h3>
<pre class="prettyprint linenums">
$(document).ready(function() {
$('#rootwizard').bootstrapWizard({onTabClick: function(tab, navigation, index) {
alert('on tab click disabled');
return false;
}});
});
</pre>
</section>
</div>
</div>