"Mockup"
Bootstrap 3.3.0 Snippet by andrewhillman

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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="container"> <div class="row"> <div class="col-lg-5 col-md-5 col-sm-8 col-xs-9 treasure-tab-container"> <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 treasure-tab-menu"> <div class="list-group"> <a href="#" class="list-group-item active text-center"> <h4 class="glyphicon glyphicon-tags"></h4><br/>Pick Shirt Style </a> <a href="#" class="list-group-item text-center"> <h4 class="glyphicon glyphicon-cloud-upload"></h4><br/>Upload Art File </a> <a href="#" class="list-group-item text-center"> <h4 class="glyphicon glyphicon-font"></h4><br/>Add Text </a> <a href="#" class="list-group-item text-center"> <h4 class="glyphicon glyphicon-th"></h4><br/>Select An Icon </a> <a href="#" class="list-group-item text-center"> <h4 class="glyphicon glyphicon-pencil"></h4><br/>Add Notes </a> <a href="#" class="list-group-item text-center"> <h4 class="glyphicon glyphicon-send"></h4><br/>Send </a> <a href="#" class="list-group-item text-center"> <h4 class="glyphicon glyphicon-cloud-download"></h4><br/>Download </a> </div> </div> <div class="col-lg-9 col-md-9 col-sm-9 col-xs-9 treasure-tab"> <!-- Pick shirt style section --> <div class="treasure-tab-content active"> <center> <h1 class="glyphicon glyphicon" style="font-size:12em;color:#EC088F"></h1> <h2 style="margin-top: 0;color:#EC088F"></h2> <h3 style="margin-top: 0;color:#EC088F"></h3> </center> </div> <!-- upload section --> <div class="treasure-tab-content"> <center> <h1 class="glyphicon glyphicon-cloud-upload" style="font-size:12em;color:#EC088F"></h1> <h2 style="margin-top: 0;color:#EC088F">Ajax upload browse button goes here</h2> <h3 style="margin-top: 0;color:#EC088F">Once uploaded you can drag to place into postion.</h3> </center> </div> <!-- font section --> <div class="treasure-tab-content"> <center> <h1 class="glyphicon glyphicon-font" style="font-size:12em;color:#EC088F"></h1> <h2 style="margin-top: 0;color:#EC088F">Style with font</h2> <h3 style="margin-top: 0;color:#EC088F">Font is cool</h3> </center> </div> <!-- glyph icons section --> <div class="treasure-tab-content"> <center> <h1 class="glyphicon glyphicon-th" style="font-size:12em;color:#EC088F"></h1> <h2 style="margin-top: 0;color:#EC088F">Pick from hundreds</h2> <h3 style="margin-top: 0;color:#EC088F">Simple Designs</h3> </center> </div> <div class="treasure-tab-content"> <center> <h1 class="glyphicon glyphicon-pencil" style="font-size:12em;color:#EC088F"></h1> <h2 style="margin-top: 0;color:#EC088F"></h2> <h3 style="margin-top: 0;color:#EC088F">Make a note so you don't forget.</h3> </center> </div> <!--send share link section --> <div class="treasure-tab-content"> <center> <h1 class="glyphicon glyphicon-send" style="font-size:12em;color:#EC088F"></h1> <h2 style="margin-top: 0;color:#EC088F"></h2> <h3 style="margin-top: 0;color:#EC088F">Send and share'</h3> </center> </div> <!--download section --> <div class="treasure-tab-content"> <center> <h1 class="glyphicon glyphicon-cloud-download" style="font-size:12em;color:#EC088F"></h1> <h2 style="margin-top: 0;color:#EC088F"></h2> <h3 style="margin-top: 0;color:#EC088F">Download as .eps or .png file'</h3> </center> </div> </div> </div> </div> </div>
/* treasure tab */ div.treasure-tab-container{ z-index: 10; background-color: #ffffff; padding: 0 !important; border-radius: 4px; -moz-border-radius: 4px; border:1px solid #ccc; margin-top: 20px; margin-left: 50px; -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175); box-shadow: 0 6px 12px rgba(0,0,0,.175); -moz-box-shadow: 0 6px 12px rgba(0,0,0,.175); background-clip: padding-box; opacity: 0.97; filter: alpha(opacity=97); } div.treasure-tab-menu{ padding-right: 0; padding-left: 0; padding-bottom: 0; } div.treasure-tab-menu div.list-group{ margin-bottom: 0; } div.treasure-tab-menu div.list-group>a{ margin-bottom: 0; } div.treasure-tab-menu div.list-group>a .glyphicon, div.treasure-tab-menu div.list-group>a .fa { color: #EC008C; } div.treasure-tab-menu div.list-group>a:first-child{ border-top-right-radius: 0; -moz-border-top-right-radius: 0; } div.treasure-tab-menu div.list-group>a:last-child{ border-bottom-right-radius: 0; -moz-border-bottom-right-radius: 0; } div.treasure-tab-menu div.list-group>a.active, div.treasure-tab-menu div.list-group>a.active .glyphicon, div.treasure-tab-menu div.list-group>a.active .fa{ background-color: #EC008C; background-image: #EC008C; color: #ffffff; } div.treasure-tab-menu div.list-group>a.active:after{ content: ''; position: absolute; left: 100%; top: 50%; margin-top: -13px; border-left: 0; border-bottom: 13px solid transparent; border-top: 13px solid transparent; border-left: 10px solid #EC008C; } div.treasure-tab-content{ background-color: #ffffff; /* border: 1px solid #eeeeee; */ padding-left: 20px; padding-top: 10px; } div.treasure-tab div.treasure-tab-content:not(.active){ display: none; }
$(document).ready(function() { $("div.treasure-tab-menu>div.list-group>a").click(function(e) { e.preventDefault(); $(this).siblings('a.active').removeClass("active"); $(this).addClass("active"); var index = $(this).index(); $("div.treasure-tab>div.treasuere-tab-content").removeClass("active"); $("div.treasure-tab>div.treasure-tab-content").eq(index).addClass("active"); }); });

Related: See More


Questions / Comments:

$(document).ready(function() {
$("div.treasure-tab-menu>div.list-group>a").click(function(e) {
e.preventDefault();
$(this).siblings('a.active').removeClass("active");
$(this).addClass("active");
var index = $(this).index();
$("div.treasure-tab>div.treasuere-tab-content").removeClass("active");
$("div.treasure-tab>div.treasure-tab-content").eq(index).addClass("active");
});
});

// Faute a corriger.

$("div.treasure-tab>div.treasure-tab-content").removeClass("active");
$("div.treasure-tab>div.treasure-tab-content").eq(index).addClass("active");

Shane Djafaraly () - 7 years ago - Reply 0