Sha256: c33ceccf30ed1b9fe2bdf8cb894b30efc90e6d2f7423bf301e2da7ffc7ebb169

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

$(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();
	
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foundation-sass-2.1.1 templates/project/javascripts/app.js
foundation-sass-2.1 templates/project/javascripts/app.js