"Simple Slide Vertical Tab"
Bootstrap 3.1.0 Snippet by dprim

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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 ----------> <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet"> <div id="fb-root"></div> <script> (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="container"> <div class="row"> <div class="col-lg-5 col-md-5 col-sm-8 col-xs-9 bhoechie-tab-container"> <div class="col-lg-9 col-md-9 col-sm-9 col-xs-9 bhoechie-tab"> <!-- flight section --> <div class="bhoechie-tab-content"> <center data-fbinit='true' data-tabcontent='<![CDATA[ <div class="fb-page" data-href="https://www.facebook.com/letitrollcz" data-width="400" data-height="580" data-hide-cover="false" data-show-facepile="true" data-show-posts="true"> <div class="fb-xfbml-parse-ignore"> <blockquote cite="https://www.facebook.com/letitrollcz"> <a href="https://www.facebook.com/letitrollcz">Let It Roll</a> </blockquote> </div> </div> ]]>'></center> </div> <!-- train section --> <div class="bhoechie-tab-content"> <center data-tabcontent='<![CDATA[<a class="twitter-timeline" href="https://twitter.com/letitroll_fest" data-widget-id="599876244734418944">Tweets by @letitroll_fest</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>]]>'></center> </div> <!-- hotel search --> <div class="bhoechie-tab-content"> <center data-tabcontent='<![CDATA[<iframe src="http://widget.websta.me/in/let_it_roll/?s=173&w=2&h=3&b=1&p=1" allowtransparency="true" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:372px; height: 558px" ></iframe> <!-- websta - web.stagram.com --> ]]>'></center> </div> <div class="bhoechie-tab-content"> <center data-tabcontent='<![CDATA[<script src="https://apis.google.com/js/platform.js" async defer> {lang: "cs"} </script> <div class="g-page" data-width="350" data-href="https://plus.google.com/113282341963993307426" data-theme="dark" data-showtagline="true" data-rel="publisher"></div>]]>'></center> </div> <div class="bhoechie-tab-content"> <center data-tabcontent='<![CDATA[<iframe width="400" height="225" src="https://www.youtube.com/embed/g50g4C-HnSo?showinfo=0" frameborder="0" allowfullscreen></iframe>]]>'></center> </div> </div> <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 bhoechie-tab-menu"> <div class="list-group"> <a href="#" class="list-group-item text-center" > <i class="icon-facebook-sign"></i><br/>Facebook </a> <a href="#" class="list-group-item text-center"> <h4 class="glyphicon glyphicon-road"></h4><br/>Twitter </a> <a href="#" class="list-group-item text-center"> <h4 class="glyphicon glyphicon-home"></h4><br/>Instagram </a> <a href="#" class="list-group-item text-center"> <h4 class="glyphicon glyphicon-cutlery"></h4><br/>G+ </a> <a href="#" class="list-group-item text-center"> <h4 class="glyphicon glyphicon-credit-card"></h4><br/>Youtube </a> </div> </div> </div> </div> </div>
body { height:800px } /* bhoechie tab */ div.bhoechie-tab-container{ z-index: 10; position: fixed; right:0; top:15px; padding: 0 !important; margin: 0px; background-clip: padding-box; opacity: 0.97; filter: alpha(opacity=97); } div.bhoechie-tab-menu{ padding-right: 0; padding-left: 0; padding-bottom: 0; } div.bhoechie-tab-menu div.list-group{ margin-bottom: 0; } div.bhoechie-tab-menu div.list-group>a{ margin-bottom: 0; } div.bhoechie-tab-menu div.list-group>a .glyphicon, div.bhoechie-tab-menu div.list-group>a .fa { color: #5A55A3; } div.bhoechie-tab-menu div.list-group>a:first-child{ border-top-right-radius: 0; -moz-border-top-right-radius: 0; } div.bhoechie-tab-menu div.list-group>a:last-child{ border-bottom-right-radius: 0; -moz-border-bottom-right-radius: 0; } div.bhoechie-tab-menu div.list-group>a.active, div.bhoechie-tab-menu div.list-group>a.active .glyphicon, div.bhoechie-tab-menu div.list-group>a.active .fa{ background-color: #5A55A3; background-image: #5A55A3; color: #ffffff; } div.bhoechie-tab-menu div.list-group>a.active:after{ content: ''; position: absolute; right: 100%; top: 50%; margin-top: -13px; border-bottom: 13px solid transparent; border-top: 13px solid transparent; border-right: 10px solid #5A55A3; } div.bhoechie-tab-content{ background-color: #ffffff; /* border: 1px solid #eeeeee; */ /*padding-left: 20px;*/ padding-top: 10px; } div.bhoechie-tab>div.bhoechie-tab-content:not(.active) { display:none; }
$(document).ready(function() { $("div.bhoechie-tab-menu>div.list-group>a").click(function(e) { fbInit=false; e.preventDefault(); $(this).siblings('a.active').removeClass("active"); $(this).addClass("active"); var index = $(this).index(), close = $("div.bhoechie-tab>div.bhoechie-tab-content").eq(index).css("display")=="block"?true:false; $("div.bhoechie-tab>div.bhoechie-tab-content").hide("slide").removeClass("active"); if(!close){ $("div.bhoechie-tab>div.bhoechie-tab-content").eq(index).show("slide").addClass("active").find("center:empty").html(function(){ console.log(this); var c = $(this).data().tabcontent.replace("<![CDATA[", "").replace("]]>", ""); $(this).html(c); fbInit = $(this).data().fbinit; }); if(fbInit){ FB.init({ appId : '200121386666097', xfbml : true, version : 'v2.3' }); FB.Canvas.setSize(); } } }); });

Related: See More


Questions / Comments:

Awsome job.
How do i put this on left side

Khalid Lakhani () - 8 years ago - Reply 0