"); } }); } } function putBackDayName() { //PUT DATE IN FRONT OF MONTH $(".sw-calendar-block-date").each(function(){ var date = $(this).contents(':not(span)').text(), $month = $(this).find(".joel-month"); $month.prepend(date + " "); $(this).html($month); }); $(".dow").each(function(){ var $parent = $(this).parent().find(".sw-calendar-block-date"); $parent.append(", " + $(this).contents(":not(p)").text()); }); } function headlinesMod(){ /* Modified by Jeremy K 20150126 The function was static by checking for things like i == 2 and i == 4 for the start and end point I made it check for numbers divisible by two and for the last possible li to determine these points. */ if($(".hp").length) { $(".headlines .ui-articles li").each(function(i){ var classText = i < 3 ? "small" : "large"; $(this).find(".ui-article").parent().addClass("art-" + classText + " art" + i); if(i%2 === 0 && i > 0){ $(this).after("