CINXE.COM

Courier News

<!DOCTYPE html> <html> <head> <style>body{background-color:rgba(255, 255, 255, 1);margin:0;}.overlay{left:50%;opacity:0;position:fixed;top:50%;transform:translate(-50%, -50%);transition:0.25s ease-in;visibility:hidden;z-index:99;}.overlay .overlay-container{align-items:center;display:flex;height:100vh;justify-content:center;overflow:hidden;width:100vw;}.overlay .overlay-container .overlay-shroud{background-color:rgba(0, 0, 0, 0.50);height:100%;left:0;position:fixed;top:0;width:100%;z-index:0;}.overlay .overlay-container .overlay-creative{max-height:530px;position:relative;width:800px;z-index:1;}.overlay .overlay-container .overlay-creative .overlay-close{background:rgb(37, 37, 37);border:4px solid rgb(255, 255, 255);border-radius:50%;cursor:pointer;height:40px;padding:0;position:absolute;right:-20px;top:-20px;width:40px;z-index:2;}.overlay .overlay-container .overlay-creative .overlay-close svg{fill:rgb(255, 255, 255);object-fit:contain;width:24px;}#atoms-nanobar{display:flex;height:80px;position:relative;width:100%;}#atoms-nanobar iframe{height:80px;margin:0 auto;min-width:1025px;width:100%;}@media screen and (max-width: 960px){#atoms-nanobar{display:none;}}iframe{border:0;}form{margin:16px 0;}form button{background-color:rgb(0, 155, 255);border:0 solid #fff;color:#fff;cursor:pointer;font:14px 'Unify Sans', Helvetica, Arial, sans-serif;height:36px;line-height:36px;margin-top:20px;padding:0 30px;text-decoration:none;}form button[disabled]{background-color:rgb(170, 170, 170);cursor:not-allowed;}.float-label{flex-grow:1;margin-bottom:40px;position:relative;}.float-label select{display:none;}.float-label input,.float-label .cm-select{border:0;color:rgba(0, 0, 0, 0.6);font:14px 'Unify Sans', Helvetica, Arial, sans-serif;margin-bottom:2px;padding:18px 0 4px;width:100%;z-index:1;}.float-label input:focus,.float-label .cm-select:focus{outline:none;}.float-label input:focus ~ label.animated-label:after,.float-label .cm-select:focus ~ label.animated-label:after{visibility:visible !important;width:100% !important;}.float-label input:focus ~ label.animated-label,.float-label input.parsley-error ~ label.animated-label,.float-label input.parsley-success ~ label.animated-label,.float-label .cm-select:focus ~ label.animated-label,.float-label .cm-select.parsley-error ~ label.animated-label,.float-label .cm-select.parsley-success ~ label.animated-label{font-size:12px;top:0;}.float-label input.parsley-error ~ label,.float-label .cm-select.parsley-error ~ label{color:red;font-size:12px;left:0;position:absolute;top:42px;}.float-label input.parsley-error ~ label.animated-label:before,.float-label .cm-select.parsley-error ~ label.animated-label:before{background-color:red;height:2px;}.float-label input.parsley-error:focus ~ label.animated-label:after,.float-label .cm-select.parsley-error:focus ~ label.animated-label:after{transition:0.25s;}.float-label .cm-select{background-image:url('http://staticassets.gannettdigital.com/gci-static-assets/assets/global/static-web/select-dropdown.png');background-position:100% 75%;background-repeat:no-repeat;background-size:20px;cursor:pointer;height:22px;}.float-label .cm-select.active ~ label.animated-label,.float-label .cm-select.filled ~ label.animated-label{font-size:12px;top:0;}.float-label .cm-select.active ~ label.animated-label:after{visibility:visible !important;width:100% !important;}.float-label .cm-select-dropdown-menu{background-color:#fff;border:1px solid #d1d1d1;box-shadow:0 3px 5px 0 rgba(0, 0, 0, 0.1);box-sizing:border-box;cursor:pointer;max-height:250px;overflow:scroll;position:absolute;width:100%;z-index:5;}.float-label .cm-select-dropdown-menu div{font-size:16px;padding:15px;}.float-label .cm-select-dropdown-menu div:hover{background-color:#d7e6ff;}.float-label .cm-select-dropdown-menu div.selected{color:#fff;background-color:#009bff !important;}.float-label .cm-select-dropdown-overlay{height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:4;}.float-label label.animated-label{bottom:0;color:rgba(0, 0, 0, 0.6);cursor:text;font-size:14px;left:0;margin:0;pointer-events:none;position:absolute;text-align:left;top:15px;transition:0.25s ease all;width:95%;z-index:2;}.float-label label.animated-label:before,.float-label label.animated-label:after{background-color:rgb(0, 155, 255);bottom:0;content:'';height:2px;left:0;position:absolute;transition:0.25s ease all;visibility:hidden;width:0;}.float-label label.animated-label:before{background-color:rgb(228, 228, 228);height:1px;visibility:visible;width:100%;transition:0s;}footer{background-color:rgb(248, 248, 248);box-shadow:inset 1px 2px 3px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 1px 2px 3px rgba(0, 0, 0, 0.05);-webkit-box-shadow:inset 1px 2px 3px rgba(0, 0, 0, 0.05);color:rgb(68, 68, 68);display:flex;flex-direction:column;padding:50px 0 76px;text-align:center;}footer .footer-links{font-family:'Unify Sans', Helvetica, Arial, sans-serif;font-size:0.875em;line-height:1.5em;margin-top:0;padding:0 20px;}footer .footer-links a:hover{color:rgb(0, 155, 255);}footer p{font-family:'Unify Sans', Helvetica, Arial, sans-serif;font-size:0.688em;line-height:0.813em;}footer .footer-links li{display:inline;}footer .footer-links li > a{cursor:pointer;}footer .footer-links li:first-child:before{content:'';}footer .footer-links li:before{content:'\2022';margin:0 0.5em 0 0.3em;}footer .footer-links a{text-decoration:none;color:rgb(68, 68, 68);}.cobrand-header{background-color:rgba(255, 255, 255, 1);box-shadow:0 1px 2px 3px rgba(0, 0, 0, 0.05);-moz-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.05);-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.05);left:0;position:absolute;right:0;top:0;}.cobrand-header.redthemedarkmode{background-color:rgba(38, 38, 38, 1);}.cobrand-header.redthemedarkmode .login-container a{color:rgba(255, 255, 255, 1);}.cobrand-header.redthemedarkmode .login-container a span{border-color:rgba(230, 35, 38, 1);}.header-wrapper{display:flex;}.logo-button{float:left;}.logo-image{display:block;height:74px;margin:0 0 0 25px;width:145px;}.login-container{align-items:center;display:inline-flex;font-family:"Unify Sans SemiBold",Helvetica,Arial,sans-serif;font-size:12px;justify-content:flex-end;margin:0 7px 0 15px;width:100%;}.login-container a{color:#222;padding-right:10px;text-decoration:none;}.login-container a span{border-bottom:2px solid #009bff;}.cm-flatpage-card{background:rgb(255, 255, 255);border:none;box-sizing:border-box;display:table;margin:75px auto 30px;max-width:1000px;overflow:hidden;width:80%;}.cm-flatpage-card-message{color:red;font-size:18px;font-family:'Unify Sans SemiBold', Helvetica, Arial, sans-serif;margin:75px auto 0;padding:30px;width:80%;}.page-curtain{background:white url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/subscribe/loading.gif') center center no-repeat;bottom:auto;left:0;opacity:0;position:absolute;right:0;top:0;transition:opacity 0.5s ease;z-index:10;}.page-curtain.present{bottom:0;opacity:1;}.additional-card{margin-top:50px;}.cm-footer{background:inherit;color:rgb(51, 51, 51);display:table-footer-group;font-family:'Helvetica Neue', Helvetica, Arial, san-serif;font-size:14px;margin:0 auto;padding:30px 0;text-align:center;width:80%;}.cm-footer-text{color:rgb(51, 51, 51);font-family:"Unify Sans", "Helvetica", sans-serif;font-size:16px;}.cm-footer-image{max-width:50%;}.cm-footer-image img{max-height:100%;max-width:100%;}.cm-main-content{display:table-cell;font-family:"Unify Sans", "Helvetica", sans-serif;padding:50px;position:relative;vertical-align:middle;width:60%;}.cm-main-content-header{font-family:'Unify Sans SemiBold', Helvetica, Arial, sans-serif;font-size:32px;margin:0 0 25px;}.cm-main-content-text{color:rgb(105, 105, 105);font:16px/22px 'Helvetica Neue', Helvetica, Arial, san-serif;margin:0 35px;}.cm-main-content-button{background-color:rgb(0, 155, 255);color:rgb(255, 255, 255);margin:30px 0;max-width:240px;position:relative;text-decoration:none;}.chunky-btn{padding:12px 20px;width:79%;}.skinny-btn{padding:8px 15px;width:inherit;}.content-button-link{height:100%;left:0;position:absolute;text-decoration:none;top:0;width:100%;}.cm-main-content-image{margin:20px 0;max-width:275px;}.cm-main-content-image img{max-height:100%;max-width:100%;}.cm-main-content-mobile-text{color:rgb(105, 105, 105);font:16px/22px 'Helvetica Neue', Helvetica, Arial, san-serif;margin-bottom:20px;}.cm-main-content-mobile-apps-icons{display:inline-block;}.android-icon,.ios-icon{float:left;}.android-icon{margin-top:-1px;}.ios-icon{margin-right:10px;}.ios-icon img,.android-icon img{height:42px;width:132px;}.cm-main-content-table{padding:30px 0;position:relative;width:100%;}.cm-main-content-table-element{display:inline-block;height:100%;width:32%;}.cm-sidebar-content{background-color:rgb(250, 250, 250);border-left:1px solid rgb(220, 220, 220);box-sizing:border-box;display:table-cell;font-family:"Unify Sans", "Helvetica", sans-serif;padding:50px;position:relative;text-align:center;vertical-align:middle;width:40%;}.cm-sidebar-content-header{font-size:30px;margin-bottom:25px;}.cm-sidebar-content-text{color:rgb(105, 105, 105);font:100 18px "Helvetica", sans-serif;}.cm-sidebar-content-button{border-radius:3px;background-color:rgb(74, 74, 74);color:rgb(255, 255, 255);display:block;font-size:14px;margin:20px auto 0;max-width:215px;padding:12px 20px;position:relative;text-decoration:none;width:79%;}.cm-sidebar-content-image{margin:0 auto 15px;max-width:255px;}.cm-sidebar-content-image img{max-height:100%;max-width:100%;}.white{color:rgb(255, 255, 255) !important;}.transparent-btn{background:none !important;border:2px solid rgb(255, 255, 255) !important;}.center{margin-left:auto !important;margin-right:auto !important;text-align:center !important;}.hidden,[hidden]{display:none !important;}.invisible{visibility:hidden;}.disabled{pointer-events:none;}.white-bg{background-color:rgb(255, 255, 255) !important;}.inline-link{color:rgb(0, 155, 255) !important;text-decoration:none !important;}.chromeless{background-color:rgb(255, 255, 255) !important;border:none !important;margin-top:0 !important;}.divider{border-top:1px solid rgb(220, 220, 220);}.full-width{margin:0 -3000px;overflow-x:hidden;padding:0 3000px;}.desktop{display:block;}.mobile{display:none;}.no-decoration{color:inherit !important;text-decoration:none !important;}.nightMode{background-color:rgba(38, 38, 38, 1);}.nightMode .cobrand-header{background-color:rgba(38, 38, 38, 1);color:rgba(255, 255, 255, 1);}.nightMode footer{background-color:rgba(38, 38, 38, 1);color:rgba(255, 255, 255, 1);}.nightMode footer .footer-links a{color:rgba(255, 255, 255, 1);}@media screen and (max-width: 850px){.float-label{margin-bottom:25px;}.cobrand-header{border-bottom:none;position:relative;}.logo-image{height:54px;margin-left:20px;width:100px;}.cm-flatpage-card{border:none;display:block;text-align:center;width:auto;margin:0 auto 30px;}.additional-card{margin-top:0;}.cm-footer{display:block;padding:0;}.cm-main-content,.cm-main-content-table-element{display:block;float:none;width:auto;}.cm-main-content-button{margin:10px auto;}.cm-main-content-text{max-width:500px;}.cm-main-content-image{margin:20px auto;}.cm-main-content-button{margin:30px auto;}.cm-main-content-table-element{margin:30px 0;}.ios-icon,.android-icon{float:none;margin-right:0;}.cm-sidebar-content{border-left:none;border-top:1px solid rgb(220, 220, 220);display:block;float:none;height:100%;width:auto;}.cm-sidebar-content-header{margin:20px 0;}.cm-sidebar-content-image{margin-top:30px;}.cm-sidebar-content-text{margin:0 auto;max-width:500px;}.vanilla-mobile{background-color:rgb(255, 255, 255) !important;border:none !important;}.desktop{display:none;}.mobile{display:block;}}@font-face{font-family:'Futura Today';font-display:fallback;src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_normal.eot');src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_normal.eot?#iefix') format('embedded-opentype'), url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_normal.woff') format('woff'), url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_normal.ttf') format('truetype');}@font-face{font-family:'Futura Today DemiBold';font-display:fallback;src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_demibold.eot');src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_demibold.eot?#iefix') format('embedded-opentype'), url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_demibold.woff') format('woff'), url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_demibold.ttf') format('truetype');}@font-face{font-family:'Futura Today Light';font-display:fallback;src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_light.eot');src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_light?#iefix') format('embedded-opentype'), url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_light.woff') format('woff'), url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/usf/fonts/futura_today_light.ttf') format('truetype');}@font-face{font-family:'Unify Sans';font-display:fallback;src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/digital-renovation/fonts/UnifySans_W_Rg.woff2') format('woff2');}@font-face{font-family:'Unify Sans SemiBold';font-display:fallback;src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/digital-renovation/fonts/UnifySans_W_SBd.woff2') format('woff2');}@font-face{font-family:'Unify Sans Bold';font-display:fallback;src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/digital-renovation/fonts/UnifySans_W_Bd.woff2') format('woff2');}@font-face{font-family:'Unify Serif';font-display:fallback;src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/digital-renovation/fonts/UnifySerif_W_Rg.woff2') format('woff2');}@font-face{font-family:'Unify Serif SemiBold';font-display:fallback;src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/digital-renovation/fonts/UnifySerif_W_SBd.woff2') format('woff2');}@font-face{font-family:'Unify Serif Bold';font-display:fallback;src:url('https://staticassets.gannettdigital.com/gci-static-assets/assets/global/digital-renovation/fonts/UnifySerif_W_Bd.woff2') format('woff2');}</style> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" type="image/png" href="https://www.gannett-cdn.com/sites/mycentraljersey/images/favicon.png"> <title>Courier News</title> <script type="text/javascript" src="/node_modules/jquery/dist/jquery.min.js"></script> <script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="06bdd55d-2e1a-4d7a-bc65-c7fa06015e98"></script> <script type="text/javascript">function OptanonWrapper() {}</script> <script src="https://cdn.cookielaw.org/opt-out/otCCPAiab.js" type="text/javascript" charset="UTF-8" ccpa-opt-out-ids="4,5" ccpa-opt-out-geo="us" ccpa-opt-out-lspa="true"></script> <script type="text/javascript" src="/node_modules/whatwg-fetch/dist/fetch.umd.js"></script> <script type="text/javascript" src="/node_modules/promise-polyfill/dist/polyfill.min.js"></script> <script type="text/javascript" src="/node_modules/custom-event-polyfill/polyfill.js"></script> <script type="text/javascript" src="/node_modules/url-search-params/build/url-search-params.js"></script> </head> <body> <div class="container"> <header> <div class="cobrand-header "> <div class="header-wrapper"> <a class="logo-button" href="https://www.mycentraljersey.com/"> <img class="logo-image" src="https://www.gannett-cdn.com/gannett-web/properties/mycentraljersey/logos-and-branding/logo-default.svg"> </a> <div class="login-container"> <div id="loggedOut" hidden cm-unauthenticated> <a class="subscribe" data-client-action-header-subscribe onclick="trackClickEvent('header-subscribe')"><span>Subscribe</span></a> <a id="login" data-client-action-header-signin onclick="trackClickEvent('header-signin')" >Sign In</a> </div> <div id="loggedIn" hidden cm-authenticated> <a class="subscribe" cm-no-market-access data-client-action-header-subscribe hidden onclick="trackClickEvent('header-subscribe')"><span>Subscribe</span></a> <a id="userSalutation" data-client-action-header-userSalutation onclick="trackClickEvent('header-userSalutation')"><span>Hi, <span class="userName"></span></span></a> <a id="signOut" data-client-action-header-signOut onclick="trackClickEvent('header-signOut')">Sign Out</a> </div> </div> </div> </div> </header> <div class="content"> <script>function otGetCookieValue(name) { let nE = name + '=', cA = document.cookie.split(';'); for (var i = 0; i < cA.length; i++) { var c = cA[i]; while (c.charAt(0) == ' ') { c = c.substring(1, c.length); } if (c.indexOf(nE) == 0) { return c.substring(nE.length, c.length); }} return ''; }; function otUpdateLinks() { let webformLinks = document.querySelectorAll("a[href*='privacyportal']"), rdrLinks = document.querySelectorAll("a.ot-rdr-link"), gupAnonCookie = otGetCookieValue("gup_anonid") || "", gupClientCookie = otGetCookieValue("gup_clientid") || "", siteDomain = document.location.hostname.split(".")[1]; webformLinks.forEach((link) => { if (link.href.indexOf("webform") > -1 && link.href.indexOf("anonymous-id") == -1 && link.href.indexOf("client-id") == -1) { link.href = link.href + (link.href.indexOf("?") > -1 ? "&" : "?") + "anonymous-id=" + gupAnonCookie + "&client-id=" + gupClientCookie; }}); rdrLinks.forEach((link) => { if (!link.classList.contains("ot-rdr-link-updated")) { const aDomain = link.href.split(".")[1]; if (siteDomain.indexOf("gannett") === -1 && aDomain !== siteDomain) { link.href = link.href.replace(aDomain, siteDomain);} link.classList.add("ot-rdr-link-updated");}});} </script><style scoped> footer{position: relative; z-index: 99999999;}</style><section class="cm-flatpage-card"><div id="otnotice-10bc078a-1be6-45ea-a89d-e0ebb0aabd68" class="otnotice"></div></section><link rel="stylesheet" href="https://staticassets.gannettdigital.com/gci-static-assets/assets/global/static-web/onetrust/css/policies-leftcol-style.css"/> <script src="https://privacyportal-cdn.onetrust.com/privacy-notice-scripts/otnotice-1.0.min.js" type="text/javascript" charset="UTF-8" id="otprivacy-notice-script"> settings="eyJjYWxsYmFja1VybCI6Imh0dHBzOi8vcHJpdmFjeXBvcnRhbC5vbmV0cnVzdC5jb20vcmVxdWVzdC92MS9wcml2YWN5Tm90aWNlcy9zdGF0cy92aWV3cyJ9" </script> <script type="text/javascript" charset="UTF-8"> OneTrust.NoticeApi.Initialized.then(function(){OneTrust.NoticeApi.LoadNotices(["https://privacyportal-cdn.onetrust.com/5b4b73e5-9c9c-4c5c-82c1-9389c9e42f1c/privacy-notices/10bc078a-1be6-45ea-a89d-e0ebb0aabd68.json"]).then(otUpdateLinks);}); </script> </div> <footer class="bg-lightest-gray"> <ul class="footer-links"> <li><a href="http://help.mycentraljersey.com/">Help</a></li> <li><a href="https://cm.mycentraljersey.com/terms/">Terms of Service</a></li> <li><a href="https://cm.mycentraljersey.com/privacy/">Privacy Policy</a></li> <li><a href="https://cm.mycentraljersey.com/your-privacy-choices/"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 12" style="height:14px;width:auto;top:2px;position:relative;margin-right:4px;"><path fill="#1366FF" d="M19.07 0H5.93A5.93 5.93 0 0 0 0 5.93v.115a5.93 5.93 0 0 0 5.93 5.93h13.14A5.93 5.93 0 0 0 25 6.044v-.116A5.93 5.93 0 0 0 19.07 0Z"></path><path fill="#FFF" d="M6.061 1.022a4.89 4.89 0 0 0-4.875 4.876v.14a4.89 4.89 0 0 0 4.875 4.876h5.298c.03 0 .056-.02.063-.05l2.67-9.758a.065.065 0 0 0-.062-.083H6.062Zm14.947 6.906-1.924-1.96 1.862-1.896a.527.527 0 1 0-.751-.739l-1.849 1.883-1.849-1.883a.527.527 0 1 0-.751.739l1.862 1.896-1.924 1.96a.527.527 0 1 0 .752.738l1.91-1.946 1.911 1.946a.525.525 0 0 0 .745.007.527.527 0 0 0 .007-.745h-.001Z"></path><path fill="#1366FF" d="M6.694 8.673a.527.527 0 0 1-.37-.151L4.358 6.584a.527.527 0 1 1 .74-.75l1.56 1.537 3.25-3.846a.527.527 0 0 1 .805.68L7.096 8.486a.528.528 0 0 1-.38.187h-.023Z"></path></svg>Your Privacy Choices</a></li> <li><a href="http://www.mycentraljersey.com/subscriberguide/#apps">Mobile Apps</a></li> </ul> <p>&copy;&nbsp;Copyright Gannett 2024</p> </footer> </div> <script> window.gciAnalyticsUAID = 'PCNJ-TEALIUM-CMSP'; </script> <script src="https://www.gannett-cdn.com/dcjs/prod/main.js"></script> <script> const params = new URLSearchParams(location.search); const stype = params.get('stype'); t2Data = { 'event-type': 'pageview', 'content-name': window.location.pathname } if (stype !== null) t2Data['page-experience-version'] = stype; function _triggerPageView() { if (window.gciAnalytics && window.user) { window.gciAnalytics.user = window.user; t2Data['client-id'] = window.user.response.clientId } const params = new URLSearchParams(location.search); if (params.get('style') !== 'chromeless') { if (window.gciAnalytics && window.gciAnalytics.isReady) { gciAnalytics.view(t2Data); } else { document.addEventListener('gciAnalyticsReady', function(e) { gciAnalytics.view(t2Data); }); } } } function trackClickEvent(t) { var trackData = { 'event-type': 'custom' } const params = new URLSearchParams(location.search); const stype = params.get('stype'); if (stype !== null) trackData['page-experience-version'] = stype; if (typeof t === 'string' || t instanceof String) { Object.assign(trackData, { 'client-action': 'cmsp|' + "privacy" + '|' + t }); } else { Object.assign(trackData, t) } gciAnalytics.link(trackData); } function trackHeaderSigninEvent() { trackClickEvent({ 'event-category': null , 'event-label': 'click', 'event-action': 'login', 'client-action': 'header-signin' }) } </script> <script> (function () { function toggleVisibility(selector, isHidden) { var matchingNodes = document.querySelectorAll(selector); for (var i = 0; i < matchingNodes.length; i++) { matchingNodes[i].hidden = isHidden; } } var userStatusChangedEvent = new CustomEvent("userStatusChanged", { detail: { hasMarketAccess: false } }); var fetchUserResponse = function() { new Promise(function (resolve, reject) { var gupasURL = "https:\/\/user.mycentraljersey.com\/PCNJ-GUP\/user/"; fetch(gupasURL, { credentials: 'include' }).then(function (response) { return response.json().then(function (user) { if (user && user.meta && user.meta.status === 200) { resolve(user); } else { reject(null); } }); }).catch(function () { reject(null); }); }).then(function (result) { window.user = result; _triggerPageView(); if (result.meta && result.meta.status === 200) { var isLoggedIn = result.meta.isAuthenticatedInCurrentContext; var isSubscribed = result.response && result.response.user && result.response.user.hasMarketAccess; var successUrl = encodeURIComponent(window.location.href); var url = window.location.href; var retParam = "return="; var queries = url.slice(url.indexOf('?') + 1).split('&'); var foundQSP = queries.find(element => element.includes(retParam)); if (foundQSP) successUrl = foundQSP.substring(retParam.length); $('.userName').text(result.response.user.welcomeName); $('#login').attr('href', 'https://login.mycentraljersey.com/PCNJ-GUP/authenticate?success-url=' + successUrl); $('.subscribe').attr('href', 'https://subscribe.mycentraljersey.com'); $('#signOut').attr('href', 'https://user.mycentraljersey.com/PCNJ-GUP/user/logout/?return-url=' + successUrl); $('#userSalutation').attr('href', 'https://account.mycentraljersey.com'); toggleVisibility('[cm-has-market-access]', !isSubscribed); toggleVisibility('[cm-no-market-access]', isSubscribed); toggleVisibility('[cm-authenticated]', !isLoggedIn); toggleVisibility('[cm-unauthenticated]', isLoggedIn); if (isLoggedIn) { var event = new CustomEvent("loggedIn", { detail: { hasMarketAccess: isSubscribed } }); window.dispatchEvent(event); userStatusChangedEvent.detail.hasMarketAccess = isSubscribed; if (!isSubscribed) { toggleVisibility('[cm-authenticated-no-market-access]', false); } } } else { toggleVisibility('[cm-unauthenticated]', false); } window.dispatchEvent(userStatusChangedEvent); }).catch(function () { _triggerPageView(); toggleVisibility('[cm-unauthenticated]', false); window.dispatchEvent(userStatusChangedEvent); }); } fetchUserResponse(); window.addEventListener('updateUserStatus', fetchUserResponse); })() </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10