"; $(videoTextHTML).insertBefore(".cs-fullscreen-video-buttons"); var mmgTitleHeight = $(".mmg-description.sv").find(".mmg-description-title").outerHeight(); var mmgDescriptionHeight = $(".mmg-description.sv").outerHeight(); if(mmgTitleHeight == mmgDescriptionHeight){ $(".mmg-description.sv").css("bottom","60px").attr("data-height",mmgDescriptionHeight); } else { $(".mmg-description.sv").css("bottom",((mmgDescriptionHeight-80) - mmgTitleHeight)*-1).attr("data-height",mmgDescriptionHeight); } $(".mmg-description-link").on('focus', function () { $(this).closest(".mmg-description").addClass("focus"); }); $(".mmg-description-link").on('focusout', function () { $(this).closest(".mmg-description").removeClass("focus"); }); $("#hp-slideshow .cs-fullscreen-video-button.mute-button").attr("aria-label", "Mute Background Video"); $("#hp-slideshow .cs-fullscreen-video-button.unmute-button").attr("aria-label", "Unmute Background Video"); $("#hp-slideshow .cs-fullscreen-video-button.play-button").attr("aria-label", "Play Background Video"); $("#hp-slideshow .cs-fullscreen-video-button.pause-button").attr("aria-label", "Pause Background Video"); $("#hp-slideshow .cs-fullscreen-video-button.watch-video-button").attr("aria-label", "Watch Background Video"); $("#hp-slideshow").on("click keydown", ".cs-fullscreen-video-button.play-button", function(e) { if(_this.AllyClick(e)) { setTimeout(function () { $("#hp-slideshow .cs-fullscreen-video-button.pause-button").focus(); }, 100); } }); $("#hp-slideshow").on("click keydown", ".cs-fullscreen-video-button.pause-button", function(e) { if(_this.AllyClick(e)) { setTimeout(function () { $("#hp-slideshow .cs-fullscreen-video-button.play-button").focus(); }, 100); } }); $("#hp-slideshow").on("click keydown", ".cs-fullscreen-video-button.mute-button", function(e) { if(_this.AllyClick(e)) { setTimeout(function () { $("#hp-slideshow .cs-fullscreen-video-button.unmute-button").focus(); }, 100); } }); $("#hp-slideshow").on("click keydown", ".cs-fullscreen-video-button.unmute-button", function(e) { if(_this.AllyClick(e)) { setTimeout(function () { $("#hp-slideshow .cs-fullscreen-video-button.mute-button").focus(); }, 100); } }); $("#hp-slideshow .cs-fullscreen-video-overlay-outer").append($("#hp-slideshow .cs-fullscreen-video-buttons")); }, "onStateChange" : function() { } }); } }, "ModEvents": function() { $(".ui-widget.app.upcomingevents").modEvents({ columns : "yes", monthLong : "yes", dayWeek : "no" }); eventsByDay(".upcomingevents .ui-articles"); function eventsByDay(container) { $(".ui-article", container).each(function(){ if (!$(this).find("h1.ui-article-title.sw-calendar-block-date").size()){ var moveArticle = $(this).html(); $(this).parent().prev().children().children().next().append(moveArticle); $(this).parent().remove(); }; }); $(".ui-article", container).each(function(){ var newDateTime = $('.upcoming-column.left h1', this).html().toLowerCase().split(""); var newDate = ''; var dateIndex = ((newDateTime.length > 2) ? 2 : 1); //if the dayWeek is set to yes we need to account for that in our array indexing //add a zero to the date if it is a single digit if( newDateTime[dateIndex].length == 1 ) newDateTime[dateIndex] = "0" + newDateTime[dateIndex]; //if we have the day of the week make sure to include it. if( dateIndex > 1 ){ newDate += newDateTime[0] + ""; } //add in the month newDate += newDateTime[dateIndex - 1] + ''; //the month is always the in the left array position to the date //wrap the date in a new tag newDate += '' + newDateTime[dateIndex] + ''; //append the date and month back into their columns $('.upcoming-column.left h1', this).html(newDate); //add an ALL DAY label if no time was given $('.upcoming-column.right .ui-article-description', this).each(function(){ if( $('.sw-calendar-block-time', this).length < 1 ){ //if it doesnt exist add it $(this).prepend('ALL DAY'); } $(".sw-calendar-block-time", this).appendTo($(this)); }); //ABBREVIATE DAY var origMonth = $(this).find(".joel-month").text(); var shortMonth = origMonth.substring(0, 3); $(this).find(".joel-month").html(""+origMonth+""+shortMonth+""); }) } //ADD NO EVENTS TEXT $(".upcomingevents").each(function(){ if(!$(this).find(".ui-article").length){ $("