// -------------------------------- //
// Used on recipes, for the         //
// ingredients. Used to display     //
// list items as a sum on a         //
// blackboard.                      //
// -------------------------------- //
// Author: rachel@dollypower.com    //
// -------------------------------- //

// Document ready
jQuery(document).ready(function() {		
	
	// Find <li> tags and add a class 
	// of "bullet" so it can be styled 
	// by the CSS.
	jQuery(".recipe-card .ingredients li")
		.addClass("bullet")
		// Add a title for screenreaders.
		.attr('title', 'add');
		
	// For the first <li>: add a 
	// class of "first"
	jQuery(".recipe-card .ingredients li:first-child")
		.addClass("first")
		// Remove title attribute.
		.removeAttr('title');
		
	// For the last <li>: add a 
	// class of "last"
	jQuery(".recipe-card .ingredients li:last-child")
		.addClass("last")
		// Add a title for screenreaders.
		.attr('title', 'equals...');
	
}); // End script
