function loadScriptSync (src) { var s = document.createElement('script'); s.src = src; s.type = "text/javascript"; s.async = false; document.getElementsByTagName('head')[0].appendChild(s); console.log('loadScriptSync', src) } loadScriptSync('https://assets.adobedtm.com/60287eadf1ee/fdd9d4fa374e/launch-c8d922ea8b62.min.js');
if(typeof ntapOmniture === 'undefined') { ntapOmniture = {}; } ntapOmniture.User = {}; var attendee = data.attendee; if(attendee && attendee.attendeeId) { ntapOmniture.User.attendeeId = attendee.attendeeId; } if(attendee && attendee.aa_mcid) { ntapOmniture.User.marketingCloudVisitorID = attendee.aa_mcid; } if(attendee && attendee.internal_promo) { ntapOmniture.User.internal_promo = attendee.internal_promo; } if(attendee && attendee.utm_campaign) { ntapOmniture.User.utm_campaign= attendee.utm_campaign; } if(attendee && attendee.utm_content) { ntapOmniture.User.utm_content= attendee.utm_content; } if(attendee && attendee.utm_source) { ntapOmniture.User.utm_source= attendee.utm_source; } if(attendee && attendee.utm_medium) { ntapOmniture.User.utm_medium= attendee.utm_medium; } if(attendee && attendee.utm_segment) { ntapOmniture.User.utm_segment= attendee.utm_segment; }
function renderNav(shouldDisplay) { $(".rf-org-header-container").css("margin-top", shouldDisplay ? "40px" : "0px"); } let previousUrlPath = ''; const observer = new MutationObserver(function () { if (location.pathname !== previousUrlPath) { previousUrlPath = location.pathname; renderNav(!location.pathname.endsWith("/login")); } }); const config = { subtree: true, childList: true }; observer.observe(document, config);
function handleLoggedInNav(isLoggedIn) { const logoutBtn = $(".logout-button"); // don't add links if already there if ($(logoutBtn).length !== 1) { return; } if (isLoggedIn) { console.log("Logged in, updating nav links"); if (!window.initialState.attendee.inPersonAttendee) { console.log("Not registered"); if ($(logoutBtn).length !== 0) { console.log('logout button already exists! REGISTER CHECK') } const registerBtn = $(logoutBtn).clone(); registerBtn.text("Register"); registerBtn.attr("href", "https://insightregistration.netapp.com/flow/netapp/insightfall2023/reg?internal_promo=cross-port-all-all-ww-event-nauc-insight23sescatreg-1694104425466"); registerBtn.attr("id", "catalog-btn"); // registerBtn.css("padding-right", "12px"); logoutBtn.parent().append(registerBtn); } else { const regBtn = $(logoutBtn).clone(); const regBtn2 = $(logoutBtn).clone(); const regBtn3 = $(logoutBtn).clone(); const regBtn4 = $(logoutBtn).clone(); regBtn4.text("Event Website"); regBtn4.attr("href", "https://insight.netapp.com"); regBtn4.attr("id", "website-btn"); //regBtn4.css("padding-right", "12px"); regBtn3.text("Session Catalog"); regBtn3.attr("href", "https://insightregistration.netapp.com/flow/netapp/insightfall2023/sessioncatalog/page/sessioncatalog"); regBtn3.attr("id", "catalog-btn"); //regBtn3.css("padding-right", "12px"); regBtn.text("My Schedule"); regBtn.attr("href", "https://insightregistration.netapp.com/flow/netapp/insightfall2023/sessioncatalog/page/myschedulepage"); regBtn.attr("id", "mySchedule-btn"); //regBtn.css("padding-right", "12px"); regBtn2.text("Attendee Portal"); //Production URL regBtn2.attr("href", "https://insightregistration.netapp.com/flow/netapp/insightfall2023/attendee-portal") // regBtn2.attr("href", "https://insightregistration.netapp.com/flow/netapp/insightfall2023/zz_attendee-portalcopy-recommendedSessions"); regBtn2.attr("id", "attendeePortal-btn"); // regBtn2.css("padding-right", "12px"); logoutBtn.parent().append(regBtn); logoutBtn.parent().append(regBtn3); logoutBtn.parent().append(regBtn2); logoutBtn.parent().append(regBtn4); } } } function handleLoggedOutNav() { console.log("Not Logged in, updating nav links"); // add links to Register and Login to nav const logoutBtn = $(".logout-button"); const regBtn = $(logoutBtn).clone(); regBtn.text("Register"); regBtn.attr("href", "https://insightregistration.netapp.com/flow/netapp/insightfall2023/reg?internal_promo=cross-port-all-all-ww-event-nauc-insight23sescatreg-1694104425466"); regBtn.attr("id", "register-btn"); //regBtn.css("padding-right", "12px"); logoutBtn.attr("href", "https://insightregistration.netapp.com/flow/netapp/insightfall2023/sessioncatalog/login"); logoutBtn.attr("id", "login-btn"); logoutBtn.text("Login"); logoutBtn.parent().append(regBtn); } function handleNav() { const isLoggedIn = window.initialState.isAttendeeLoggedIn; const onLoginPage = window.location.pathname.endsWith("/login"); // don't do anything if (onLoginPage) return; if (!isLoggedIn) { handleLoggedOutNav(); } else { handleLoggedInNav(isLoggedIn); } } // handle nav when page changes but does not fully refresh let previousPath = ''; const observerLoggedIn = new MutationObserver(function () { if (location.pathname !== previousPath) { previousPath = location.pathname; if (window.initialState.isAttendeeLoggedIn) { // show the logout link in nav const containerClass = '.rf-org-header-container'; const container = $(containerClass); container.css('margin-top', '40px'); if ($('.logout-container').length !== 0) { console.log('logout container already exists! PAGE CHANGE CHECK') } else { const div = $(document.createElement('div')); div.attr('class', 'logout-container'); $(`${containerClass} > style`).append('.logout-button {float: right;} .logout-container {color: #000;transform:translateY(-40px);padding: 10px 20px 20px 0px;}'); const menutoggle = $(document.createElement('input')).appendTo(div); menutoggle.attr('id', 'menu-toggle'); menutoggle.attr('type','checkbox'); const menubuttoncontainer = $(document.createElement('label')).appendTo(div); menubuttoncontainer.attr('class', 'menu-button-container'); menubuttoncontainer.attr('for','menu-toggle'); const menubutton = $(document.createElement('div')).appendTo(menubuttoncontainer); menubutton.attr('class', 'menu-button'); const ul = $(document.createElement('ul')).appendTo(div); ul.attr('class', 'menu'); const li = $(document.createElement('li')).appendTo(ul); const logoutLink = $(document.createElement('a')); logoutLink.attr('class', 'logout-button'); logoutLink.attr('id', 'logout-button'); logoutLink.attr("href", "https://insightregistration.netapp.com/flow/logout"); logoutLink.text("Logout"); logoutLink.appendTo(li); div.prependTo($(container).first()); } handleLoggedInNav(true); } else { if ($(".logout-container").length === 0) { if (!location.href.endsWith("/login")) { const containerClass = '.rf-org-header-container'; const container = $(containerClass); const div = $(document.createElement('div')); div.attr('class', 'logout-container'); $(`${containerClass} > style`).append('.logout-button {float: right;} .logout-container {color: #000;transform:translateY(-40px);padding: 10px 20px 20px 0px;}'); const menutoggle = $(document.createElement('input')).appendTo(div); menutoggle.attr('id', 'menu-toggle'); menutoggle.attr('type','checkbox'); const menubuttoncontainer = $(document.createElement('label')).appendTo(div); menubuttoncontainer.attr('class', 'menu-button-container'); menubuttoncontainer.attr('for','menu-toggle'); const menubutton = $(document.createElement('div')).appendTo(menubuttoncontainer); menubutton.attr('class', 'menu-button'); const ul = $(document.createElement('ul')).appendTo(div); ul.attr('class', 'menu'); const li = $(document.createElement('li')).appendTo(ul); const loginLink = $(document.createElement('a')); loginLink.attr('class', 'logout-button'); loginLink.attr('id', 'logout-button'); loginLink.attr("href", "https://insightregistration.netapp.com/flow/netapp/insightfall2023/sessioncatalog/login"); loginLink.text("Login"); loginLink.appendTo(li); div.prependTo($(container).first()); } } } } }); const configLoggedIn = { subtree: true, childList: true }; observerLoggedIn.observe(document, configLoggedIn); $(document).ready(function () { handleNav(); }); var cssId = 'menuCSS'; if (!document.getElementById(cssId)) { var head = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.id = cssId; link.rel = 'stylesheet'; link.type = 'text/css'; link.href = 'https://static.rainfocus.com/netapp/insightfall2023/static/staticfile/staticfile/opus_menu_styles_1694723798990001yLfL.css'; link.media = 'all'; head.appendChild(link); }
var cssId = 'myCss'; if (!document.getElementById(cssId)) { var head = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.id = cssId; link.rel = 'stylesheet'; link.type = 'text/css'; link.href = 'https://static.rainfocus.com/netapp/insightfall2023/static/staticfile/staticfile/opus_session_catalog_styles_1692813434665001aLoi.css'; link.media = 'all'; head.appendChild(link); }
  • Check us out on Facebook
  • Check us out on Instagram
  • Check us out on Twitter
  • Check us out on LinkedIn
  • Check us out on YouTube

© 2023 NetApp, Inc. All rights reserved

Powered by    Powered by RainFocus