Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Ostravak's steps"
Bootstrap 3.0.0 Snippet by
xrozix
3.0.0
jQuery
Preview
HTML
CSS
JS
View Full Screen
Forked from
Fork
Fork this
Parent
71
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="page-header text-center"> <h1>Ostravak's steps!!!<small> 1.0</small></h1> </div> <div class="container"> <div class="row form-group"> <div class="col-xs-12"> <ul class="nav nav-pills nav-justified thumbnail setup-panel"> <li class="active"><a href="#step-1"> <h4 class="list-group-item-heading">Step 1</h4> <!-- <p class="list-group-item-text">Anglicky psát na FB</p> --> </a></li> <li class="active"><a href="#step-2"> <h4 class="list-group-item-heading">Step 2</h4> <!--<p class="list-group-item-text">Být bez papírů</p> --> </a></li> <li class="active"><a href="#step-3"> <h4 class="list-group-item-heading">Step 3</h4> <!-- <p class="list-group-item-text">Oči opravit</p> --> </a></li> <li class="active"><a href="#step-4"> <h4 class="list-group-item-heading">Step 4</h4> <!-- <p class="list-group-item-text">??</p> --> </a></li> <li class="disabled"><a href="#step-5"> <h4 class="list-group-item-heading">Step 5</h4> <!-- <p class="list-group-item-text">??</p> --> </a></li> </ul> </div> </div> <div class="row setup-content" id="step-1"> <div class="col-xs-12"> <div class="col-md-12 well text-center"> <h1> Anglicky psát na FB</h1> </div> </div> </div> <div class="row setup-content" id="step-2"> <div class="col-xs-12"> <div class="col-md-12 well text-center"> <h1 class="text-center"> Být bez papírů</h1> </div> </div> </div> <div class="row setup-content" id="step-3"> <div class="col-xs-12"> <div class="col-md-12 well"> <h1> Oči napravit</h1> </div> </div> </div> <div class="row setup-content" id="step-4"> <div class="col-xs-12"> <div class="col-md-12 well text-center"> <h1 class="text-center"> Tetovačka</h1> <button id="activate-step-5" class="btn btn-primary btn-xd">Activate Step 4</button> </div> </div> </div> <div class="row setup-content" id="step-5"> <div class="col-xs-12"> <div class="col-md-12 well text-center"> <h1 class="text-center"> Čert ví ...</h1> </div> </div> </div> </div>
body{ margin-top:20px; }
$(document).ready(function() { var navListItems = $('ul.setup-panel li a'), allWells = $('.setup-content'); allWells.hide(); navListItems.click(function(e) { e.preventDefault(); var $target = $($(this).attr('href')), $item = $(this).closest('li'); if (!$item.hasClass('disabled')) { navListItems.closest('li').removeClass('active'); $item.addClass('active'); allWells.hide(); $target.show(); } }); $('ul.setup-panel li.active a').trigger('click'); // DEMO ONLY // $('#activate-step-5').on('click', function(e) { $('ul.setup-panel li:eq(4)').removeClass('disabled'); $('ul.setup-panel li a[href="#step-5"]').trigger('click'); $(this).remove(); }) });
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76