
-1 && document.body.querySelectorAll('.lookup-calHolder')) { document.body.classList.add('crm-calendar-popup'); }; require(["plugins_common_custom_recently_viewed_pages"], function(recentlyViewedPages) { recentlyViewedPages.init({"_id":"5f08cbc6a0656514e34ba2f4","site_name":"mayocc","section":"main","folder":"restaurants","folderHref":"/visit/restaurants/","sortorder":4,"active":true,"title":"Restaurants","cms_title":"Restaurants - /visit/restaurants/","cms_title_sort":"restaurants - /visit/restaurants/","type":"page","show_on_nav":true,"searchable":"yes","meta_title":"Where to Eat - Mayo Civic Center","content_owner":"default","publish_start":"2020-07-10T20:12:54.088Z","parents_ids":["5f08cbc1a0656514e34ba04e"],"parent_id":"5f08cbc1a0656514e34ba04e","updated":"2023-03-30T20:04:31.551Z","title_sort":"restaurants","site_section":"mayocc.main","published":true,"created":"2020-07-10T20:12:54.088Z","new_window":false,"amp":false,"version_id":"6425eb4fccc386387b0b8aeb","locale_count":0,"id":"5f08cbc6a0656514e34ba2f4","parent_id_string":"5f08cbc1a0656514e34ba04e","version_id_string":"6425eb4fccc386387b0b8aeb","href":"/visit/restaurants/","absoluteHref":"https://www.mayociviccenter.com/visit/restaurants/","absoluteFolderHref":"https://www.mayociviccenter.com/visit/restaurants/","metaTitle":"Where to Eat - Mayo Civic Center","rootCmsUrl":"/nav/sitemap/site_mayocc/section_main/"}); }); ]]>

1024) this.closest("li").classList.toggle("active"); } for (var i=0; i 0 ? parentIds[0] : navItemProperties.id; var current = root.find('[data-id="' + rootParent + '"]'); var expAccred = navItemProperties.folderHref.match(/^/experience-accreditation//); root.find('.menu-action').on('click', function() { $(this).toggleClass('active'); $(this).siblings().toggleClass('active'); }); parentIds.forEach(function(parentId){ var parentItems = root.find('[data-id="' + parentId + '"]'); parentItems.each(function(){ $(this).parent().addClass('current'); }); }); current.addClass('current'); root.find('.micro').not('.micro.current').remove(); var cookieName = "micro"; function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays * 1 * 60 * 60 * 1000)); var expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i = 0; i
![]()
]]>
0 ? parentIds[0] : navItemProperties.id; var current = root.find('[data-id="' + rootParent + '"]'); parentIds.forEach(function(parentId){ var parentItems = root.find('[data-id="' + parentId + '"]'); parentItems.each(function(){ $(this).parent().addClass('current'); }); }); current.addClass('current'); root.find('.micro-mobile').not('.micro-mobile.current').remove(); var header = document.querySelector(".panel_custom_header"); var secondary = header.querySelector("[data-secondary-nav] .indy-nav-style"); var clone = secondary.cloneNode(true); var target = header.querySelector("[data-secondary-nav-mobile]"); target.appendChild(clone); var toggles = clone.querySelectorAll(".menu-action"); toggles.forEach(toggle => { toggle.addEventListener("click", function() { toggle.classList.toggle("active"); var li = toggle.closest("li"); li.classList.toggle("active"); }); }); }); ]]>
Source