1var mobileSize = 992; 2 3$(document).ready(function () { 4 $("button.navbar-toggler").on("click", function (e) { 5 if ($("body").hasClass("mobile-menu-open")) { 6 hideMobileMenu(); 7 } else { 8 showMobileMenu(); 9 } 10 }); 11 12 $(".toggleCustomerBtn").click(function () { 13 showCustomerLogin(); 14 }); 15 16 $(".toggleAgentBtn").click(function () { 17 showAgentLogin(); 18 }); 19 20 // Prevent login section from closing when switching between Customer and Agent 21 $(document).on('click', '.dropdown-menu', function (e) { 22 e.stopPropagation(); 23 }); 24 25 setUpMobileDropDownAnimation(); 26 27 // Match page location with link in navigation to mark which page is currently open (navigation links must be relative URLs with an absolute URL path, aka root relative URL) 28 $('nav a[href="' + window.location.pathname + window.location.search + '"]').attr("aria-current", "page"); 29 $('nav a[href="' + window.location.pathname + '"]').attr("aria-current", "page"); 30}); 31 32function showMobileMenu() { 33 $("body").addClass("mobile-menu-open"); 34 $("header .navbar-collapse").addClass("show"); 35 $("button.navbar-toggler").attr("aria-expanded", true); 36 $(".log-in-mobile").removeClass("defaultBeforeToggle"); 37 $(".login-menu-mobile").addClass("triangleGrey"); 38 $(".log-in-mobile").addClass("defaultAfterToggle"); 39} 40// Closes mobile navigation 41function hideMobileMenu() { 42 $("body").removeClass("mobile-menu-open"); 43 $("header .navbar-collapse").removeClass("show"); 44 $("button.navbar-toggler").attr("aria-expanded", false); 45 $(".log-in-mobile").removeClass("defaultAfterToggle"); 46 $(".login-menu-mobile").removeClass("triangleGrey"); 47 $(".log-in-mobile").addClass("defaultBeforeToggle"); 48} 49 50function showCustomerLogin() { 51 $(".showAgentLogin").hide(); 52 $(".showCustomerLogin").show(); 53 $(".toggleAgentBtn").removeClass("activeButton").attr("aria-expanded", "false"); 54 $(".toggleCustomerBtn").addClass("activeButton").attr("aria-expanded", "true"); 55} 56 57function showAgentLogin() { 58 $(".showCustomerLogin").hide(); 59 $(".showAgentLogin").show(); 60 $(".toggleCustomerBtn").removeClass("activeButton").attr("aria-expanded", "false"); 61 $(".toggleAgentBtn").addClass("activeButton").attr("aria-expanded", "true"); 62} 63 64function setUpMobileDropDownAnimation() { 65 $("header nav li.dropdown").on('show.bs.dropdown', function (e) { 66 if (window.innerWidth < mobileSize) { 67 $(this).find(".dropdown-menu").slideDown(); 68 } else { 69 $(this).find(".dropdown-menu").removeAttr("style"); 70 } 71 }); 72 73 $("header nav li.dropdown").on('hide.bs.dropdown', function (e) { 74 if (window.innerWidth < mobileSize) { 75 $(this).find(".dropdown-menu").not(".contact-us-menu").slideUp(); 76 } else { 77 $(this).find(".dropdown-menu").removeAttr("style"); 78 } 79 }); 80} 81 82function mobileMenuFooter() { 83 var animationSpeed = 300; 84 var now = new Date(); 85 var openFooterMenuHt = "726px"; 86 var closeFooterMenuHt = "0px"; 87 var jdPowerDate = new Date("05/31/2026"); 88 89 if (now < jdPowerDate) { 90 openFooterMenuHt = "799px"; 91 } 92 93 if ($('#footerExtendContract').is(":visible")) { 94 $('#footerExtendContract').animate({ height: closeFooterMenuHt }, animationSpeed, function () { 95 $('#footerExtendContract').addClass("d-none"); 96 $('#footerMobileBtn').attr("aria-expanded", "false"); 97 }); 98 $('#footerMenuArrowDown').css("display", "none"); 99 $('#footerMenuArrowRight').css("display", "inline-block"); 100 $('#footerExtendContract').css("height", "0px"); 101 } else { 102 $('#footerExtendContract').removeClass("d-none"); 103 $("#footerExtendContract").animate({ height: openFooterMenuHt }, animationSpeed); 104 $('#footerExtendContract').css("height", openFooterMenuHt); 105 $('#footerMenuArrowRight').css("display", "none"); 106 $('#footerMenuArrowDown').css("display", "inline-block"); 107 $('nav#footerMenuList').focus(); 108 $('#footerMobileBtn').attr("aria-expanded", "true"); 109 } 110}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.