").appendTo("#hp-slideshow .mmg-viewer"); $("#hp-slideshow .mmg-control.next").prependTo(".cs-gallery-controls-cont"); $("#hp-slideshow .mmg-control.play-pause").appendTo(".cs-gallery-controls-cont"); $("#hp-slideshow .mmg-control.back").prependTo(".cs-gallery-controls-cont"); //MOVE DESCRIPTION $("#hp-slideshow .mmg-description-outer").clone().appendTo("#hp-slideshow-inner-inner-inner"); $("#hp-slideshow-inner").fadeIn(); if($(window).width() > 1023) { var windowWidth = $(window).width(); var imgLeft = $(".mmg-slide.active").offset(); imgLeft = imgLeft.left; var descLeft = $("#hp-slideshow-inner-inner").offset(); descLeft = descLeft.left; var descWidth = imgLeft - descLeft; descWidth = descWidth - 50; $("#hp-slideshow-inner-inner-inner").width(descWidth); } $(window).resize(function() { if($(window).width() > 1023) { var windowWidth = $(window).width(); var imgLeft = $(".mmg-slide.active").offset(); imgLeft = imgLeft.left; var descLeft = $("#hp-slideshow-inner-inner").offset(); descLeft = descLeft.left; var descWidth = imgLeft - descLeft; descWidth = descWidth - 50; $("#hp-slideshow-inner-inner-inner").width(descWidth); } }); if($(window).width() < 1024) { $("#hp-slideshow").after($("#hp-slideshow-inner")); } $(window).resize(function() { if($(window).width() < 1024) { $("#hp-slideshow").after($("#hp-slideshow-inner")); } }); if($("#hp-slideshow-inner .mmg-description-link.watch-video").length) { $("#hp-slideshow-inner .mmg-description-outer .mmg-description .mmg-description-link.watch-video").click(function(e) { e.preventDefault(); $("#hp-slideshow .mmg-container .mmg-description-outer .mmg-description .mmg-description-links").find(".mmg-description-link.watch-video").click(); }); } }, // props.element, props.mmgRecords "onWindowResize": function(props) {} // props.element, props.mmgRecords }); }, "CheckSlideshow": function() { // FOR SCOPE var _this = this; if($(".hp").length && this.GetBreakPoint() != "desktop") { if ($(window).scrollTop() <= $("#hp-slideshow").offset().top + $("#hp-slideshow").height()) { if(this.SlideshowDescFixed) { $("#hp-slideshow-outer").removeAttr("style"); this.SlideshowDescFixed = false; } } else { if(!this.SlideshowDescFixed) { $("#hp-slideshow-outer").css({ "height": $("#hp-slideshow-outer").height(), "overflow": "hidden" }); this.SlideshowDescFixed = true; } } } }, "ModEvents": function() { $(".ui-widget.app.upcomingevents").modEvents({ columns : "yes", monthLong : "no", dayWeek : "yes" }); $(".ui-widget.app.upcomingevents .ui-article").each(function() { if (!$("h1.ui-article-title.sw-calendar-block-date", this).length){ var moveArticle = $(this).html(); $(this).parent().prev("li").find(".upcoming-column.right").append(moveArticle); $(this).parent().remove(); } // ADD SPAN WITH CLASS AROUND DATE	$(".sw-calendar-block-date", this).wrapInner(''); // MOVE MONTH BEFORE DATE AND DAY $(this).find(".joel-month").prependTo($(this).find(".sw-calendar-block-date")); // MOVE DAY AFTER MONTH AND DATE $(this).find(".joel-day").appendTo($(this).find(".sw-calendar-block-date")); // ADD ZERO TO DAY IF LESS THAN 10 $(".joel-date", this).text(((parseInt($(".joel-date", this).text()) < 10) ? "0" : "") + $(".joel-date", this).text()); }); $(".hp-content.four .ui-widget.app.upcomingevents .ui-article, .sp .ui-widget.app.upcomingevents .ui-article, .spn .ui-widget.app.upcomingevents .ui-article").each(function() { // MOVE DAY TO RIGHT COLUMN $(this).find(".joel-day").prependTo($(this).find(".upcoming-column.right")); }); $(".upcomingevents .ui-article-description").each(function() { var thisDesc = this; if(!$(thisDesc).find(".sw-calendar-block-time").length) { $('All Day').appendTo(thisDesc); } else { $(thisDesc).find(".sw-calendar-block-time").appendTo(thisDesc); } }); $('.upcomingevents').each(function() { if(!$('.ui-article', this).length) { $('.ui-articles',this).html('