'); // use function below if "more" text needs to appear at end of description text $('#multiScheduleFeature .featureItem').each(function() { var itemDescripton = $(this).find('.featureItemDescription'); var itemTitle = $(this).find('.featureItemTitle'); // // uncomment below if you need to slice the date string up into something shorter like "Oct 31" var eventDate = $(this).find($('span.featureItemDate')); var datesMonth = eventDate.text().slice(0,3); var datesDay = eventDate.text().slice(4,7).replace(',',''); eventDate.text(datesMonth); eventDate.append(""+datesDay+""); // // uncomment below if you need to limit the characters in the description text // var characterLimit = 120; // var itemDescriptonText = itemDescripton.text(); // if ( itemDescriptonText.length > characterLimit ) { // var trimmedText = itemDescriptonText.substring(0,characterLimit) + '...'; // itemDescripton.text(trimmedText); // } /*var discriptionLimit = 120; var itemDescriptonText = itemDescripton.text(); if ( itemDescriptonText.length > discriptionLimit ) { var trimmedText = itemDescriptonText.substring(0,discriptionLimit); itemDescripton.text(trimmedText); }*/ }); } }); });
More from the Fairgrounds