EU Parliament Monitor — API Documentation - v0.8.5
    Preparing search index...

    Variable THEME_TOGGLE_SCRIPT_CONTENTConst

    THEME_TOGGLE_SCRIPT_CONTENT: "\n (function(){\n var docEl=document.documentElement;\n var t=localStorage.getItem('ep-theme');\n var storedTheme=t==='light'?'light':t==='dark'?'dark':null;\n if(storedTheme){\n docEl.setAttribute('data-theme',storedTheme);\n }else if(t){\n localStorage.removeItem('ep-theme');\n }\n var btn=document.querySelector('.theme-toggle');\n if(!btn)return;\n btn.addEventListener('click',function(){\n var cur=docEl.getAttribute('data-theme');\n if(!cur){\n cur=(window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches)?'dark':'light';\n }\n var next=cur==='dark'?'light':'dark';\n docEl.setAttribute('data-theme',next);\n localStorage.setItem('ep-theme',next);\n });\n })();\n " = ...

    Raw theme toggle script content (without wrapping <script> tags). Used as single source of truth for both the injected <script> block and the CSP hash computation in article-template.ts.