"; const owned = new Map(); const sandbox = 'allow-scripts allow-top-navigation-by-user-activation'; let source = ''; let header = null; let observedBody = null; let queued = false; const style = document.createElement('style'); style.id = 'centeredx-contained-header-style'; style.textContent = ` body.device-mobile-optimized [data-cx-contained-header-sized] { height:var(--cx-contained-header-height)!important; max-height:none!important;max-width:100%!important; overflow:hidden!important;overflow:clip!important; -webkit-overflow-scrolling:auto; } body.device-mobile-optimized [data-cx-contained-header-sized] wix-iframe, body.device-mobile-optimized [data-cx-contained-header-sized] wix-iframe>div, body.device-mobile-optimized [data-cx-contained-header-sized] iframe { display:block;width:100%;height:100%!important; } `; (document.head || document.documentElement).appendChild(style); function mobile() { return document.body?.classList.contains('device-mobile-optimized') === true; } function recognized(value) { try { const url = new URL(value); if (url.origin === 'https://learning.centeredx.org') { return /^\/centeredx\/presentation\/v\d+\/header\.html$/.test(url.pathname); } return url.origin === 'https://www-centeredx-org.filesusr.com' && url.pathname === '/html/6a5cc9_afa36f11efc3aad4424d92b4922854e9.html'; } catch (_) { return false; } } function clearSize(host) { host.removeAttribute(sized); host.style.removeProperty(heightVariable); } function measure(frame, force = false) { const state = owned.get(frame); if (!state || frame.getAttribute('src') !== source || !frame.isConnected) return; const enabled = mobile(); if (!enabled) clearSize(state.host); if (!force && state.mobile === enabled) return; state.mobile = enabled; frame.contentWindow?.postMessage({ type: 'CX_CONTAINED_HEADER_MEASURE', version: 1, mobile: enabled }, '*'); } function schedule() { if (!queued) { queued = true; requestAnimationFrame(refresh); } } const bodyObserver = new MutationObserver(schedule); function refresh() { queued = false; header = document.getElementById('SITE_HEADER'); if (observedBody !== document.body) { bodyObserver.disconnect(); observedBody = document.body; if (observedBody) bodyObserver.observe(observedBody, {attributes: true, attributeFilter: ['class']}); } for (const [frame, state] of owned) { if (header?.contains(frame) && frame.isConnected && frame.closest('[id^="comp-"]') === state.host) continue; clearSize(state.host); frame.removeEventListener('load', state.onLoad); owned.delete(frame); } if (!header || !source) return; for (const frame of header.querySelectorAll('iframe')) { const src = frame.getAttribute('src') || ''; if (frame.getAttribute(marker) !== build && !recognized(src)) continue; const host = frame.closest('[id^="comp-"]'); if (!host || !header.contains(host)) continue; let state = owned.get(frame); if (!state) { state = {host, mobile: null, onLoad: () => measure(frame, true)}; owned.set(frame, state); frame.addEventListener('load', state.onLoad); } if (frame.getAttribute(marker) !== build) frame.setAttribute(marker, build); if (frame.title !== 'CenterEdX navigation') frame.title = 'CenterEdX navigation'; if (frame.getAttribute('sandbox') !== sandbox) frame.setAttribute('sandbox', sandbox); if (src !== source) { state.mobile = null; frame.setAttribute('src', source); } measure(frame); } } window.addEventListener('message', event => { const data = event.data; if (event.origin !== 'null' || !mobile() || !data || data.type !== 'CX_CONTAINED_HEADER_SIZE' || data.version !== 1 || data.page !== 'header' || !Number.isFinite(data.height) || data.height < 1 || data.height > 4096) return; for (const [frame, state] of owned) { if (!frame.isConnected || !header?.contains(frame) || frame.getAttribute(marker) !== build || frame.getAttribute('src') !== source || !state.host.contains(frame) || event.source !== frame.contentWindow) continue; const height = Math.ceil(data.height) + 'px'; if (state.host.style.getPropertyValue(heightVariable) !== height) { state.host.style.setProperty(heightVariable, height); } if (!state.host.hasAttribute(sized)) state.host.setAttribute(sized, ''); return; } }); const pageObserver = new MutationObserver(records => { if (header !== document.getElementById('SITE_HEADER') || observedBody !== document.body || records.some(record => header?.contains(record.target))) schedule(); }); pageObserver.observe(document.documentElement, { childList: true, subtree: true, attributes: true, attributeFilter: ['src', 'sandbox'] }); window.addEventListener('resize', () => { for (const frame of owned.keys()) measure(frame, true); }); window.addEventListener('pageshow', schedule); document.addEventListener('DOMContentLoaded', schedule, {once: true}); (async () => { let html = fallback; let mode = 'fallback'; try { if (typeof DecompressionStream !== 'function') throw new Error('No gzip decoder'); const bytes = Uint8Array.from(atob(packed), character => character.charCodeAt(0)); html = await new Response(new Blob([bytes]).stream().pipeThrough(new DecompressionStream('gzip'))).text(); if (!html.includes('CX_CONTAINED_HEADER_SIZE') || !html.includes('full-original-x')) throw new Error('Invalid header payload'); mode = 'current'; } catch (_) { html = fallback; } source = URL.createObjectURL(new Blob([html], {type: 'text/html'})); window[key].state = mode; refresh(); })(); })();
top of page

Available Online

Teacher Induction Zoom Appointment

30 minZoom

Contact Details

8188785219

rgleason@lvusd.org

4111 Las Virgenes Road, Calabasas, CA, USA


bottom of page