<divclass="concept"><span><strong>INTERACTIVE CONCEPT</strong> · Mock slides and screens. No real display or system settings change.</span><label>Test setup <selectid="topology"><optionvalue="3">3 screens</option><optionvalue="4">4 screens</option><optionvalue="2">Projector disconnected</option><optionvalue="1">Laptop only</option></select></label></div>
<divclass="concept"><span><strong>INTERACTIVE CONCEPT</strong> · Mock slides and screens. No real display or system settings change.</span><labelclass="project-picker">Demo project <selectid="demoProject"><optionvalue="ideas">Making room for ideas</option><optionvalue="workshop">Workshop</option></select></label><label>Test setup <selectid="topology"><optionvalue="3">3 screens</option><optionvalue="4">4 screens</option><optionvalue="2">Projector disconnected</option><optionvalue="1">Laptop only</option></select></label></div>
<main><divclass="previews"id="previews"><sectionid="previousPreview"class="previous-preview"><divclass="caption"><span>PREVIOUS</span><spanid="previousCount"></span></div><divclass="slide"><spanclass="eyebrow">LOOKING BACK</span><h1id="previousTitle">Start of presentation</h1><divclass="orb"></div></div></section><sectionid="currentPreview"><divclass="caption"><span>CURRENT · <spanid="currentCount">1 / 12</span></span><bid="outputBadge">PRESENTATION VISIBLE</b></div><divclass="slide"><spanclass="eyebrow">BEFFROI / FIELD NOTES</span><h1id="currentTitle">Making room<br>for ideas.</h1><pid="currentSubtitle">A clear view. A little space. A better presentation.</p><divclass="orb"></div><spanclass="slide-foot">DESIGN SESSION · NOVEMBER 2026</span></div></section><sectionclass="next"id="nextPreview"><divclass="caption"><span>NEXT</span><spanid="nextCount">2 / 12</span></div><divclass="slide"><spanclass="eyebrow">THE STARTING POINT</span><h1id="nextTitle">Keep the<br>focus.</h1><divclass="orb"></div></div><divclass="next-hint">Your slides go to <strongid="destination">Screen 3 · Epson projector</strong>.<br>Menus and notes stay on the presenter screen.</div></section></div>
<sectionclass="notes"id="notesWidget"><divclass="caption"><span>PRESENTER NOTES <small> · auto-fit</small></span><divclass="notes-tools"><buttonid="longNotes">Try long notes</button><buttonid="notesLayout">Resize & visibility</button></div></div><divclass="note-box"id="noteBox"><pclass="note-text"id="noteText"></p></div></section>
<small>Preview sizes share the available width. Notes size controls their share of the height; text always fits. Clock sizes control their text size.</small>
<small>Demo choices last while this page is open. The native app will remember visibility and sizes in your global configuration.</small>
<small>Project layouts override the default for all projects. Saved layouts persist in this browser; native configuration remains planned.</small>
<divclass="layout-save"><buttonclass="primary"id="saveProjectLayout">Save layout · This project</button><buttonid="saveGlobalLayout">Save layout · All projects</button><buttonid="useGlobalLayout">Use all-projects default</button><pid="layoutSaveStatus"role="status"aria-live="polite"></p></div>
</aside>
<dialogid="displayDialog"aria-labelledby="displayTitle"><divclass="dialog-head"><div><h2id="displayTitle">Where should each view go?</h2><small>Presenter = your controls and notes. Presentation = slides for viewers.</small></div><buttonaria-label="Close displays"data-close="displayDialog">✕</button></div><divclass="dialog-body"><divstyle="display:flex;justify-content:space-between;align-items:center"><spanclass="pill">CONNECTED SCREENS · SIMULATED</span><buttonid="identify">Identify screens</button></div><divclass="map"id="screenMap"></div><divclass="assignments"><divclass="field"><labelfor="presenterSelect">Presenter screen</label><selectid="presenterSelect"></select></div><buttonid="swap">⇄ Swap</button><divclass="field"><labelfor="presentationSelect">Presentation screen</label><selectid="presentationSelect"></select></div></div><divclass="checks"><label><inputid="presenterFull"type="checkbox"checked> Presenter fullscreen</label><label><inputid="presentationFull"type="checkbox"checked> Presentation fullscreen</label><label><inputid="remember"type="checkbox"checked> Remember this setup</label></div><divclass="notice"id="displayNotice">Choose destinations, then Apply. Unused screens stay untouched.</div></div><divclass="dialog-actions"><small>Changes apply together.</small><buttondata-close="displayDialog">Cancel</button><buttonclass="primary"id="apply">Apply setup</button></div></dialog>
<dialogid="settingsDialog"aria-labelledby="settingsTitle"><divclass="dialog-head"><div><h2id="settingsTitle">Settings</h2><small>Proposed app behavior · not operating-system settings</small></div><buttonaria-label="Close settings"data-close="settingsDialog">✕</button></div><divclass="dialog-body"><divclass="settings-row"><b>Remember your screens</b><br><spanclass="muted">Keep preferred screen identities, fullscreen choices and notes layout in a per-user configuration. Temporary fallback does not replace your preferred setup.</span></div><divclass="settings-row"><b>Configuration location</b><br><code>Linux: $XDG_CONFIG_HOME/pdf-presenter/settings.toml</code><br><small>Defaults to ~/.config/pdf-presenter/settings.toml</small><br><code>Windows: %APPDATA%\Beffroi\PdfPresenter\settings.toml</code><br><code>macOS: ~/Library/Application Support/Beffroi/PdfPresenter/settings.toml</code></div><divclass="settings-row"><b>Keep screens awake during presentation</b><br><spanclass="muted">Planned native feature. Includes paused and blanked output; this HTML does not inhibit sleep.</span></div><divclass="notice">This demo remembers choices only while this page is open. The native app's global configuration is not implemented yet.</div></div><divclass="dialog-actions"><buttonclass="primary"data-close="settingsDialog">Done</button></div></dialog>
<dialogid="settingsDialog"aria-labelledby="settingsTitle"><divclass="dialog-head"><div><h2id="settingsTitle">Settings</h2><small>Proposed app behavior · not operating-system settings</small></div><buttonaria-label="Close settings"data-close="settingsDialog">✕</button></div><divclass="dialog-body"><divclass="settings-row"><b>Remember your screens</b><br><spanclass="muted">Keep preferred screen identities, fullscreen choices and notes layout in a per-user configuration. Temporary fallback does not replace your preferred setup.</span></div><divclass="settings-row"><b>Configuration location</b><br><code>Linux: $XDG_CONFIG_HOME/pdf-presenter/settings.toml</code><br><small>Defaults to ~/.config/pdf-presenter/settings.toml</small><br><code>Windows: %APPDATA%\Beffroi\PdfPresenter\settings.toml</code><br><code>macOS: ~/Library/Application Support/Beffroi/PdfPresenter/settings.toml</code></div><divclass="settings-row"><b>Keep screens awake during presentation</b><br><spanclass="muted">Planned native feature. Includes paused and blanked output; this HTML does not inhibit sleep.</span></div><divclass="notice">Saved layouts persist in this browser, with project overrides above the all-projects default. Screen assignments remain session-only. The native app's global configuration is not implemented yet.</div></div><divclass="dialog-actions"><buttonclass="primary"data-close="settingsDialog">Done</button></div></dialog>
for(const id of ['ideas','workshop'])if(Object.hasOwn(data.projects,id))clean.projects[id]=validateLayout(data.projects[id]);
return clean;
}
function layoutStatus(text){$('layoutSaveStatus').textContent=text;}
function restoreLayout(){
try{const saved=readLayouts();layout=structuredClone(saved.projects[projectId]||saved.global||layoutDefaults);applyLayout();layoutStatus(saved.projects[projectId]?'Loaded this project’s saved layout.':saved.global?'Using the saved all-projects default.':'Using the built-in layout.');}
catch{layout=structuredClone(layoutDefaults);applyLayout();layoutStatus('Saved layouts could not be read. Using the built-in layout; stored settings were not changed.');}
}
function saveLayout(scope){
try{const saved=readLayouts();if(scope==='project')saved.projects[projectId]=validateLayout(layout);else saved.global=validateLayout(layout);localStorage.setItem(layoutStorageKey,JSON.stringify(saved));layoutStatus(scope==='project'?'Saved for this project.':saved.projects[projectId]?'Default saved for all projects. This project still has its own saved layout; use the default below to replace it.':'Saved as the default for all projects. Existing project overrides are preserved.');}
catch{layoutStatus('Could not save layout. Browser storage may be unavailable or saved settings invalid. Your current layout is still usable.');}
$('useGlobalLayout').onclick=()=>{try{const saved=readLayouts();delete saved.projects[projectId];localStorage.setItem(layoutStorageKey,JSON.stringify(saved));restoreLayout();}catch{layoutStatus('Could not remove this project’s override. Your current layout is unchanged.');}};
$('demoProject').onchange=()=>{projectId=$('demoProject').value;$('projectTitle').textContent=$('demoProject').selectedOptions[0].textContent;restoreLayout();message('Demo project switched. Unsaved layout edits were discarded.');};
function availableHeight(){const main=document.querySelector('main');main.style.height=Math.max(430,innerHeight-main.getBoundingClientRect().top)+'px';}
function applyLayout(){
layoutStatus('Layout changes are not saved until you choose a save scope.');
for(const [key] of layoutSpecs){$(widgets[key]).hidden=!layout[key].show;const toggle=$('show-'+key);if(toggle)toggle.checked=layout[key].show;$('size-'+key).value=layout[key].size;$('size-'+key).disabled=!layout[key].show;$('value-'+key).textContent=layout[key].size+(key==='notes'?'%':['clock','elapsed'].includes(key)?'px':'');}
$('identify').onclick=()=>{$('screenMap').classList.add('identify');$('displayNotice').textContent='Native app: briefly overlay these numbers on the physical screens. Here: simulated labels only.';setTimeout(()=>$('screenMap').classList.remove('identify'),1800);};
$('apply').onclick=()=>{draft.presenterFull=$('presenterFull').checked;draft.presentationFull=$('presentationFull').checked;active={...draft};if($('remember').checked)preferred={...active};$('displayDialog').close();render();message($('remember').checked?'Setup applied and remembered for this demo session.':'Setup applied for this session without changing your preferred setup.');};
$('topology').onchange=()=>{count=Number($('topology').value);const available=id=>id>0&&id<=count;const p=available(preferred.presenter)?preferred.presenter:1;const output=available(preferred.presentation)&&preferred.presentation!==p?preferred.presentation:screens.slice(0,count).find(s=>s.id!==p)?.id||0;active={...preferred,presenter:p,presentation:output};blank=true;render();message('Simulated display change: presentation blanked. Review the fallback in Displays; your preferred setup is retained.');if($('displayDialog').open)openDisplays();};