"); //If Zone has class CTA add class cta to parentRow div // If Zone has class CTA if (jQuery(".WebPartZone").hasClass("CTA")) { // Then add class cta to parentRow div jQuery(".CTA").parent().parent().parent().addClass("cta-row"); } // when cta button hovered, also hover h3 jQuery(".CTA .button").mouseover(function () { jQuery(".CTA .button").parent().addClass("hover"); }); jQuery(".CTA .button").mouseout(function () { jQuery(".CTA .button").parent().removeClass("hover"); }); // If Zone has class tile if (jQuery(".WebPartZone").hasClass("tile")) { // Then add class cta to parentRow div jQuery(".tile").parent().parent().parent().addClass("tile-row"); } jQuery('.CTA a.cta-link').each(function () { //hide the temporary link var tempURL = jQuery(this).attr("href"); var tempWrapper = ''; //add the URL to the header of the image jQuery(this).closest('div[id*="Panel"]').wrap(tempWrapper); }); // move image to background for homepage cta //iterate through tiles on the homepage and transpose image src onto parent tile as a background jQuery(".full.home-carousel + .row.cta-row > div > div > div > div > div > div").each(function () { //loop through and assign image as background jQuery(this).children('img').eq(0).each(function () { //get image path var src = jQuery(this).attr('src'); //hide actual image jQuery(this).hide(); //assign image as background to link jQuery(this).parent().parent().parent().parent().css('background-image', 'url(' + src + ')'); }); }); //Move PageHeadings to banner var jQueryPageHeading = jQuery("[id*=PageHeading]"); if (jQueryPageHeading.length) { jQuery("[id*=PageHeading]").insertAfter("header#hd"); jQuery("[id*=PageHeading_Carousel]").wrapInner("
").addClass("HeaderRow"); } var jQueryHeadingBanner = jQuery("[id*=HeadingBanner]"); if (jQueryHeadingBanner.length) { jQuery("[id*=HeadingBanner]").insertAfter("header#hd"); jQuery("[id*=HeadingBanner]").wrapInner("
").addClass("HeaderRow"); } if (jQuery("[id*=_Panel_]")) { jQuery("[id*=_Panel_] a > img").parent().addClass('noeffect'); }if (jQuery('div#masterContentArea .col-primary > div > div > div > .row.cta-row').length > 0) { jQuery('.col-secondary').hide(); } //handling partial post back events Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () { //Locked out error message // wait for something to exist var waitForAccountLock = function (selector, callback) { if (jQuery('.iMISUserMessageIcon + .AsiMessageText:contains("Your account has been locked out due to too many incorrect logon attempts. Please try again later.")').length) { callback(); } else { setTimeout(function () { waitForAccountLock('.iMISUserMessageIcon + .AsiMessageText:contains("Your account has been locked out due to too many incorrect logon attempts. Please try again later.")', callback); }, 100); } }; waitForAccountLock('.iMISUserMessageIcon + .AsiMessageText:contains("Your account has been locked out due to too many incorrect logon attempts. Please try again later.")', function () { jQuery('.iMISUserMessageIcon + .AsiMessageText:contains("Your account has been locked out due to too many incorrect logon attempts. Please try again later.")').html('Your account has been locked out due to too many incorrect login attempts. Please try again in 15 minutes.'); }); // wait for navigation to fully loaded var waitForEl = function (selector, callback) { if (jQuery('ul.rmRootGroup.rmToggleHandles.rmHorizontal').length) { callback(); } else { setTimeout(function () { waitForEl('ul.rmRootGroup.rmToggleHandles.rmHorizontal', callback); }, 100); } }; waitForEl('ul.rmRootGroup.rmToggleHandles.rmHorizontal', function () { // once it is -- add navigation scripts and page load animationsjQuery('li.nav-aux-button.nav-aux-account span.nav-text').each(function () { var firstName = jQuery('div[id$="ContactFirstName_QueryControlsPanel"] .PanelFieldValue > span[id$="FirstName"]').text(); jQuery(this).text('Hi ' + firstName + ''); }); // if breadcrumb link is default, hide it and previous breadcrumb arrow jQuery("#ctl01_BreadCrumb > span > a").each(function () { if (this.href.indexOf('Default') != -1) { jQuery(this).parent().prev().addBack().addClass("hide") } }); //sticky nav window.onscroll = function () { scrollNav() }; function scrollNav() { if (window.pageYOffset >= 37) { jQuery('header#hd').addClass("prepresticky"); } else { jQuery('header#hd').removeClass("prepresticky"); } if (window.pageYOffset >= 43) { jQuery('header#hd').addClass("presticky"); } else { jQuery('header#hd').removeClass("presticky"); } if (window.pageYOffset >= 125) { jQuery('header#hd').addClass("sticky"); } else { jQuery('header#hd').removeClass("sticky"); } } var navHeight = jQuery('header#hd').height(); var navHeightPreSticky = jQuery('header#hd.presticky > .header-bottom-container').height(); var navHeightSticky = jQuery('header#hd.sticky > .header-bottom-container').height(); jQuery('header#hd:not(.sticky, .presticky) > .header-bottom-container ul.rmRootGroup.rmHorizontal > li.rmItem > a.rmLink + .rmSlide').css("margin-top", navHeight - 0 + "px"); jQuery('header#hd.presticky:not(.sticky) > .header-bottom-container ul.rmRootGroup.rmHorizontal > li.rmItem > a.rmLink + .rmSlide').css("margin-top", navHeightPreSticky - 0 + "px"); jQuery('header#hd.sticky > .header-bottom-container ul.rmRootGroup.rmHorizontal > li.rmItem > a.rmLink + .rmSlide').css("margin-top", navHeightSticky - 0 + "px"); // observe changes to elements (function (jQuery) { var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; jQuery.fn.attrchange = function (callback) { if (MutationObserver) { var options = { subtree: false, attributes: true }; var observer = new MutationObserver(function (mutations) { mutations.forEach(function (e) { callback.call(e.target, e.attributeName); }); }); return this.each(function () { observer.observe(this, options); }); } } })(jQuery); jQuery('header#hd').attrchange(function (attrName) { // which attribute do you want to observe if (attrName == 'class') { setTimeout(function () { var navHeight = jQuery('header#hd').height(); var navHeightPreSticky = jQuery('header#hd.presticky:not(.sticky) > .header-bottom-container').height(); var navHeightSticky = jQuery('header#hd.sticky > .header-bottom-container').height(); jQuery('header#hd:not(.sticky, .presticky) > .header-bottom-container ul.rmRootGroup.rmHorizontal > li.rmItem > a.rmLink + .rmSlide').css("margin-top", navHeight - 0 + "px"); jQuery('header#hd.presticky:not(.sticky) > .header-bottom-container ul.rmRootGroup.rmHorizontal > li.rmItem > a.rmLink + .rmSlide').css("margin-top", navHeightPreSticky - 0 + "px"); jQuery('header#hd.sticky > .header-bottom-container ul.rmRootGroup.rmHorizontal > li.rmItem > a.rmLink + .rmSlide').css("margin-top", navHeightSticky - 0 + "px"); }, 600); } }); // add mobile search to desktop jQuery('*[data-target="#search-collapse"]').clone().insertAfter(".NavigationUnorderedList > .nav-aux-cart"); }); // remove special a link effect from images with links if (jQuery("[id*=_Panel_]")) { jQuery("[id*=_Panel_] a > img").parent().addClass('noeffect'); }let elementsToRemove = jQuery('link.Telerik_stylesheet[href*="/WebResource.axd?d=gGP"]');// if product display style sheet existsif (elementsToRemove.length) { elementsToRemove.remove();} });let elementsToRemove = jQuery('link.Telerik_stylesheet[href*="/WebResource.axd?d=gGP"]');// if product display style sheet existsif (elementsToRemove.length) { elementsToRemove.remove();}});jQuery(document).ready(function() { jQuery('a[class="popup"]').on('click', function(event) { event.preventDefault(); // Prevent default link behavior // Check if the parent is a div with id containing "Panel" var parentDiv = jQuery(this).closest('div[id*="Panel"]'); if (parentDiv.length > 0) { // Find the .popup-content within the parent div var popupContent = parentDiv.find('.popup-content'); if (popupContent.length > 0) { // Create a modal with a div for content var modalContent = jQuery('
').html(popupContent.html()); // Create and show the modal jQuery('
').appendTo('body').append(modalContent).dialog({ modal: true, width: 400, close: function(event, ui) { jQuery(this).remove(); // Remove the modal from the DOM on close } }); } else { console.log('No .popup-content found within the parent div.'); } } else { console.log('Parent div with id containing "Panel" not found.'); } });});// Hides underscores on IQA headings - 136 upgrade fixjQuery(document).ready(function () { let underscoreCount = 0 const hideUnderscores = () => { if (underscoreCount < 10) { underscoreCount++ setTimeout(() => { const summaries = document.querySelectorAll(".summary-display-item"); if (summaries.length > 0) { summaries.forEach((summary) => { const labels = summary.querySelectorAll(".Label"); labels.forEach((label) => { if (label.textContent === "_" || label.textContent === "__") { label.style.display = "none"; } }); }); } hideUnderscores() }, 500); } else { return } } hideUnderscores() //handling partial post back events Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () { let underscoreCount = 0 const hideUnderscores = () => { if (underscoreCount < 10) { underscoreCount++ setTimeout(() => { const summaries = document.querySelectorAll(".summary-display-item"); if (summaries.length > 0) { summaries.forEach((summary) => { const labels = summary.querySelectorAll(".Label"); labels.forEach((label) => { if (label.textContent === "_" || label.textContent === "__") { label.style.display = "none"; } }); }); } hideUnderscores() }, 500); } else { return } } hideUnderscores() });});