"); //MOVE CONTROLS $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-control.play-pause").insertBefore("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-control.next"); $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-control-wrapper.mmg").appendTo("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-container"); //DETERMINE THE NUMBER OF LINKS FOR VERTICAL SPACING if($("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer .mmg-description-links").length){ var numMMGLinks = $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer .mmg-description-links .mmg-description-link").length; $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer").attr("data-link-number",numMMGLinks); } }, // props.element, props.mmgRecords "onWindowResize": function(props) { //DETERMINE THE NUMBER OF LINKS FOR VERTICAL SPACING if($("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer .mmg-description-links").length){ var numMMGLinks = $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer .mmg-description-links .mmg-description-link").length; $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer").attr("data-link-number",numMMGLinks); } } // props.element, props.mmgRecords }); } }, "CheckSlideshow": function() { // FOR SCOPE var _this = this; if($(".hp").length && this.GetBreakPoint() != "desktop" && "Streaming Video" != "Streaming Video") { if ($(window).scrollTop() <= $("#hp-slideshow").offset().top + $("#hp-slideshow").height()) { if(this.SlideshowDescFixed) { $("#hp-slideshow").removeAttr("style"); this.SlideshowDescFixed = false; } } else { if(!this.SlideshowDescFixed) { $("#hp-slideshow").css({ "height": $("#hp-slideshow").height(), "overflow": "hidden" }); this.SlideshowDescFixed = true; } } } }, "mmgTitles": function(){ var template = this; if(this.ShowMMGCaption != true){ //CAROUSEL $("#sw-content-container10 .ui-widget.app.carousel-gallery:first .ui-article").each(function(){ var mmgTitleHeight = $(this).find(".mmg-description-title").outerHeight(); var mmgDescriptionHeight = $(this).find(".mmg-description").outerHeight(); var mmgHideTitle = $(this).find(".mmg-description-title").attr("data-toggle-hide"); if(mmgHideTitle == "True"){ $(this).find(".mmg-description").css({ "bottom":"0px" }).attr("data-height",mmgDescriptionHeight); } else if(mmgTitleHeight == mmgDescriptionHeight){ $(this).find(".mmg-description").css("bottom","0px").attr("data-height",mmgDescriptionHeight); } else { $(this).find(".mmg-description").css("bottom",((mmgDescriptionHeight - mmgTitleHeight)-20)*-1).attr("data-height",mmgDescriptionHeight); } }) //FULL SCREEN $("#sw-content-container10 .ui-widget.app.multimedia-gallery:first .mmg-slide").each(function(){ var mmgTitleHeight = $(this).find(".mmg-description-title").outerHeight(); var mmgDescriptionHeight = $(this).find(".mmg-description").outerHeight(); var mmgHideTitle = $(this).find(".mmg-description-title").attr("data-toggle-hide"); if(!$(this).find(".mmg-description-title").length){ $(this).find(".mmg-description").css({ "bottom":"0px" }).attr("data-height",mmgDescriptionHeight); } else if(mmgTitleHeight == mmgDescriptionHeight){ $(this).find(".mmg-description").css("bottom","0px").attr("data-height",mmgDescriptionHeight); } else { if($(".ff").length){ $(this).find(".mmg-description").css("bottom",((mmgDescriptionHeight - mmgTitleHeight)-26)*-1).attr("data-height",mmgDescriptionHeight); } else { $(this).find(".mmg-description").css("bottom",((mmgDescriptionHeight - mmgTitleHeight)-20)*-1).attr("data-height",mmgDescriptionHeight); } } }) } //ALL $(".mmg-description-link").on('focus', function () { $(this).closest(".mmg-description").addClass("focus"); }); $(".mmg-description-link").on('focusout', function () { $(this).closest(".mmg-description").removeClass("focus"); }); //PLAY $(".cs-article-slider-control-custom.play").on("keydown", function(e) { // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME LEFT AND UP ARROWS case template.KeyCodes.tab: e.preventDefault(); if(e.shiftKey){ $(".cs-article-slider-control.back").focus(); } else { $(".cs-article-slider-control.next").focus(); } break; } }); // PAUSE $(".cs-article-slider-control-custom.pause").on("keydown", function(e) { // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME LEFT AND UP ARROWS case template.KeyCodes.tab: e.preventDefault(); if(e.shiftKey){ $(".cs-article-slider-control.back").focus(); } else { $(".cs-article-slider-control.next").focus(); } break; } }); }, "StreamingVideo": function() { // FOR SCOPE var _this = this; if("Streaming Video" == "Streaming Video") { var videoVendor = ("YouTube" == "YouTube;Vimeo") ? "youtube" : "YouTube"; var mobilePhoto = "/cms/lib/IN50000530/Centricity/Template/GlobalAssets/images///background-images/Schmitt.jpg"; if($.trim(mobilePhoto) == "" || mobilePhoto.indexOf("default-man.jpg") > -1) { mobilePhoto = "/cms/lib/IN50000530/Centricity/Template/17/defaults/streaming-video-default.jpg"; } $("#sw-content-container10.region.ui-hp").fullScreenRotator({ "videoSource" : videoVendor, // OPTIONS ARE: youtube, vimeo "videoID": "UOn2NHm7TkQ", // YouTube and Vimeo ids are set as default in the script "fullScreenBreakpoints" : [], // OPTIONS ARE [960, 768, 640, 480, 320] "showControls" : true, "showWatchVideoButton": false, "watchVideoButtonText": 'Watch Background Video', "showProgressBar" : false, // CURRENTLY NOT IN USE "progressBarType" : "line", // CURRENTLY NOT IN USE BUT OPTIONS ARE: line, circle "progressBarCircleWidth": 70, // pixels "progressBarCircleHeight": 70, // pixels "progressBarStrokeWidth": 10, // pixels "progressBarStrokeColor": "#FFF", "showMobileBackgroundPhoto" : true, "mobileBackgroundPhoto" : mobilePhoto, "mobileBackgroundPhotoBreakpoint" : 640, // OPTIONS ARE 768, 640, 480, 320 "onReady" : function() { //BUILD TITLE & CAPTION AREA var videoTextHTML = "