Moving foundation js files out of common library folder to its own folder

This commit is contained in:
Corey Wagehoft
2011-11-02 20:25:34 -05:00
parent f98617ef96
commit 6884ebfe5e
7 changed files with 6 additions and 6 deletions

43
js/foundation/app.js Normal file
View File

@@ -0,0 +1,43 @@
$(document).ready(function() {
/* Use this js doc for all application specific JS */
/* TABS --------------------------------- */
/* Remove if you don't need :) */
var tabs = $('dl.tabs');
tabsContent = $('ul.tabs-content')
tabs.each(function(i) {
//Get all tabs
var tab = $(this).children('dd').children('a');
tab.click(function(e) {
//Get Location of tab's content
var contentLocation = $(this).attr("href")
contentLocation = contentLocation + "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
$(contentLocation).parent('.tabs-content').children('li').css({"display":"none"});
$(contentLocation).css({"display":"block"});
}
});
});
/* PLACEHOLDER FOR FORMS ------------- */
/* Remove this and jquery.placeholder.min.js if you don't need :) */
$('input, textarea').placeholder();
});