LPS_School_Search

/** * Plugin Name: LPS School Search (Drawer + Map + Grade Pills) * Description: Shortcode [LPS_School_Search] (aliases: [lps_school_search], [schools_toggle]) — Drawer with map at top; filters OFF by default; numbered pins; circular grade pill linking to FL DOE report…Continue reading

Minusmarg for anker og meny

document.addEventListener(“DOMContentLoaded”, function () { const offset = 100; // juster til ønsket avstand const anchorLinks = document.querySelectorAll(“a[href^=’#’]”); anchorLinks.forEach(link => { link.addEventListener(“click”, function (e) { const targetID = this.getAttribute(“href”).substring(1); const targetElement = document.getElementById(targetID); if (targetElement) { e.preventDefault(); const elementPosition = targetElement.getBoundingClientRect().top…Continue reading

Outseta Load Account Data

window.addEventListener(“DOMContentLoaded”, function () { console.log(“ACCOUNT LOADED”); const visitLink = document.getElementById(“visit_link”); if (!visitLink) { console.error(“#visit_link element not found.”); return; } let deployTriggered = false; // Define triggerDeploy globally so it can be called from onclick window.triggerDeploy = function() { if (deployTriggered)…Continue reading