site/javascripts/app.js @ 12d0ec667b63
Implement crash solution given in Google group.
link for Google group:
https://groups.google.com/forum/#!topic/vim_dev/HgKdV33Jy5I
author |
killphi <killphi@gmx.de> |
date |
Fri, 23 Aug 2013 17:07:07 +0200 |
parents |
bbbc99908ae5 |
children |
(none) |
/*
* Skeleton V1.0.2
* Copyright 2011, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 5/20/2011
*/
$(document).ready(function() {
/* Tabs Activiation
================================================== */
var tabs = $('ul.tabs');
tabs.each(function(i) {
//Get all tabs
var tab = $(this).find('> li > a');
tab.click(function(e) {
//Get Location of tab's content
var contentLocation = $(this).attr('href') + "Tab";
//Let go if not a hashed one
if(contentLocation.charAt(0)=="#") {
e.preventDefault();
//Make Tab Active
tab.removeClass('active');
$(this).addClass('active');
//Show Tab Content & add active class
$(contentLocation).show().addClass('active').siblings().hide().removeClass('active');
}
});
});
});