Learn why schools and districts nationwide are embracing this unified school communication platform to streamline their tools and foster a strong school community.
Register to View This Demo
We’ll also send it to your inbox! You can unsubscribe at any time. See our Privacy Policy here.
X
X
document.addEventListener('DOMContentLoaded', function() {
const mq = window.matchMedia('(max-width: 1065px)');
if (!mq.matches) return;
function findItemByText(container, text) {
return Array.from(container.querySelectorAll('li.mega-menu-item')).find(function(li) {
const link = li.querySelector('a.mega-menu-link');
return link && link.textContent.trim() === text;
});
}
function reorderMobileMenu() {
const mobileMenu = document.querySelector('#mega-menu-max_mega_menu_1 ul.mega-sub-menu');
if (!mobileMenu || mobileMenu.offsetParent === null) return;
const designed = findItemByText(mobileMenu, 'Designed for K-12');
const chronic = findItemByText(mobileMenu, 'Chronic Absenteeism');
if (designed && chronic && designed.previousElementSibling !== chronic) {
mobileMenu.insertBefore(chronic, designed);
console.log('Mobile menu reordered');
}
}
// Listen for hamburger toggle click
const toggle = document.querySelector('.mega-menu-toggle');
if (toggle) {
toggle.addEventListener('click', function() {
// Delay to allow Mega Menu to render mobile items
setTimeout(reorderMobileMenu, 150);
});
}
// Also run once in case menu is already open
setTimeout(reorderMobileMenu, 200);
});
This website uses cookies to optimize your user experience. Privacy PolicyOK