<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></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>
<footer><buttonid="previous">← Previous</button><buttonclass="primary"id="next">Next →</button><spanclass="kbd">← → slides · B blank · Esc close menu</span><bid="outputBadge">PRESENTATION VISIBLE</b><spanclass="status"id="routeStatus">Presenter 1 · Presentation 3</span></footer><divid="toast"role="status"aria-live="polite"></div></main>
<footer><buttonid="previous">← Previous</button><buttonclass="primary"id="next">Next →</button><spanclass="kbd">← → slides · number + Enter to jump · B blank</span><bid="outputBadge">PRESENTATION VISIBLE</b><spanclass="status"id="routeStatus">Presenter 1 · Presentation 3</span></footer><divid="toast"role="status"aria-live="polite"></div></main>
<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="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><divid="screenRoles"class="screen-roles"></div><buttonid="swap">⇄ Swap presenter and presentation groups</button><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">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>
</style></head><body><header><h1>All slides</h1><label>Preview size <inputid="thumbnailSize"type="range"min="130"max="380"value="220"></label><label><inputid="changeOnClick"type="checkbox"> Change on click</label><label>Open on <selectid="galleryMonitor"></select></label></header><pid="placementHint">Windowed by default. Monitor selection is simulated in this HTML prototype.</p><mainid="galleryGrid"aria-label="Slide thumbnails"></main><footer><spanid="galleryStatus"role="status"></span><buttonid="showSelected">Show selected slide</button><buttonid="closeGallery">Close</button></footer><divid="jumpIndicator"role="status"hidden></div></body></html>
const titles=['Making room for ideas.','Keep the focus.','A shared perspective.','Less friction.','Space to think.','One clear message.','From idea to action.','Make it tangible.','Keep moving.','A wider view.','What comes next?','Thank you.'];
let count=3,page=0,blank=false,long=false,start=Date.now(),active={presenter:1,presentation:3,presenterFull:true,presentationFull:true},preferred={...active},draft={...active};
let count=3,page=0,blank=false,long=false,start=Date.now(),active={presenter:[1],presentation:[3],presenterFull:true,presentationFull:true},preferred=structuredClone(active),draft=structuredClone(active);
@ -96,18 +103,70 @@ function fitNotes(){const box=$('noteBox'),text=$('noteText');if(!box.clientWidt
const shortNotes=['Welcome everyone. Give the room a moment to settle.\n\nIntroduce the idea: fewer distractions, more room for the message.','Keep attention on the main point. Let the slide support the story, rather than competing with it.'];
function render(){ $('previousTitle').textContent=titles[page-1]||'Start of presentation';$('previousCount').textContent=page>0?`${page} / 12`:''; $('currentTitle').textContent=titles[page];$('nextTitle').textContent=titles[page+1]||'End of presentation';$('currentCount').textContent=`${page+1} / 12`;$('nextCount').textContent=page<11?`${page+2}/12`:'';$('previous').disabled=page===0;$('next').disabled=page===11;
$('noteText').textContent=long?Array.from({length:8},(_,i)=>`${i+1}. ${shortNotes[(page+i)%2]} Discuss the practical example, pause for questions, and connect this point to the next slide.`).join('\n\n'):shortNotes[page%2];
function move(delta){page=Math.max(0,Math.min(11,page+delta));render();}
$('previous').onclick=()=>move(-1);$('next').onclick=()=>move(1);$('blankButton').onclick=()=>{blank=!blank;render();};$('longNotes').onclick=()=>{long=!long;$('longNotes').textContent=long?'Use short notes':'Try long notes';render();};new ResizeObserver(fitNotes).observe($('noteBox'));
function drawMap(){ $('screenMap').replaceChildren();for(const screen of screens.slice(0,count)){const role=screen.id===draft.presenter?'Presenter':screen.id===draft.presentation?'Presentation':'Unused';const el=document.createElement('div');el.className='monitor '+role.toLowerCase();el.innerHTML=`<divclass="monitor-face"><b>${screen.id}</b><small>${role}</small></div><divclass="monitor-name">${screen.name}<br>${screen.size}</div>`;$('screenMap').append(el);} $('presenterSelect').value=String(draft.presenter);$('presentationSelect').value=String(draft.presentation);$('swap').disabled=!draft.presentation;$('displayNotice').textContent=count===1?'Only one screen is connected. Keep the presenter fullscreen and suspend presentation output.': 'Choose destinations, then Apply. Unused screens stay untouched.';}
function openDisplays(){closeMenu();draft={...active};for(const id of ['presenterSelect','presentationSelect']){$(id).replaceChildren();if(id==='presentationSelect')$(id).add(new Option('Off · rehearsal only','0'));for(const s of screens.slice(0,count))$(id).add(new Option(`${s.id} — ${s.name}`,String(s.id)));}$('presenterFull').checked=draft.presenterFull;$('presentationFull').checked=draft.presentationFull;drawMap();if(!$('displayDialog').open)$('displayDialog').showModal();}
const row=document.createElement('label');row.className='screen-role';row.textContent=`${screen.id} · ${screen.name}`;const select=document.createElement('select');select.id='screenRole'+screen.id;select.setAttribute('aria-label',`Screen ${screen.id} role`);for(const name of ['Unused','Presenter','Presentation'])select.add(new Option(name,name.toLowerCase()));select.value=role.toLowerCase();select.onchange=()=>{for(const key of ['presenter','presentation'])draft[key]=draft[key].filter(id=>id!==screen.id);if(select.value!=='unused')draft[select.value].push(screen.id);drawMap();};row.append(select);$('screenRoles').append(row);
$('displayNotice').textContent=!draft.presenter.length?'Choose at least one presenter screen before applying.':'Assign the same role to several screens to mirror it. Each screen has one role. Presentation may be off for rehearsal.';
}
function openDisplays(){closeMenu();draft=structuredClone(active);$('presenterFull').checked=draft.presenterFull;$('presentationFull').checked=draft.presentationFull;drawMap();if(!$('displayDialog').open)$('displayDialog').showModal();}
$('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();};
$('apply').onclick=()=>{if(!draft.presenter.length)return;draft.presenterFull=$('presenterFull').checked;draft.presentationFull=$('presentationFull').checked;active=structuredClone(draft);if($('remember').checked)preferred=structuredClone(active);$('displayDialog').close();render();message('Screen groups applied'+($('remember').checked?' and remembered for this demo session.':'.'));};
doc.getElementById('placementHint').textContent=`Windowed · Requested screen ${galleryTarget()}. HTML cannot route this window to the simulated monitors; drag it to position. Native placement will follow this choice.`;
}
function selectThumbnail(index){gallery.selected=index;if(gallery.changeOnClick)goToSlide(index+1);else syncGallery();}
else if(e.key==='Enter'&&digits){e.preventDefault();if(goToSlide(Number(digits)))clearJump(doc);else{const indicator=doc.getElementById('jumpIndicator');indicator.hidden=false;indicator.textContent=`Choose a slide from 1 to ${titles.length}. Backspace to edit · Esc to cancel.`;}return true;}
else return false;
const indicator=doc.getElementById('jumpIndicator');indicator.hidden=false;indicator.textContent=`Go to slide ${digits} · Enter to show · Esc to cancel`;return true;
function updateClocks(){const seconds=Math.floor((Date.now()-start)/1000);$('timer').textContent=String(Math.floor(seconds/60)).padStart(2,'0')+':'+String(seconds%60).padStart(2,'0');const now=new Date();$('wallClock').textContent=String(now.getHours()).padStart(2,'0')+':'+String(now.getMinutes()).padStart(2,'0');}setInterval(updateClocks,1000);updateClocks();restoreLayout();render();
check(doc.querySelectorAll('.thumbnail').length===12&&!doc.fullscreenElement,'All thumbnails in a non-fullscreen popup');
doc.querySelectorAll('.thumbnail')[7].click();check(gallery.selected===7&&page===2,'Default click browses without navigation');
doc.getElementById('changeOnClick').checked=true;doc.getElementById('changeOnClick').dispatchEvent(newEvent('change'));check(page===2,'Enabling click change does not activate selection');
doc.querySelectorAll('.thumbnail')[8].click();check(page===8&&blank,'Opt-in click changes slide and preserves blanking');
openDisplays();role(2,'presenter');$('apply').click();check(active.presenter.join(',')==='1,2'&&active.presentation.join(',')==='3','Two presenter screens and one presentation');
openDisplays();role(3,'presentation');check($('apply').disabled,'Cannot apply without a presenter');$('displayDialog').close();check(active.presenter.join(',')==='3','Cancel retains applied groups');
gallery.monitor='3';$('topology').value='2';$('topology').dispatchEvent(newEvent('change'));check(active.presenter.join(',')==='1'&&active.presentation.join(',')==='2'&&blank,'Missing presenter falls back without role overlap');check(galleryTarget()===1&&gallery.monitor==='3','Missing browser monitor falls back without erasing preference');
$('topology').value='3';$('topology').dispatchEvent(newEvent('change'));check(active.presenter.join(',')==='3'&&active.presentation.join(',')==='1,2','Preferred groups survive reconnect');
galleryWindow.close();openGallery();check(!gallery.changeOnClick,'Reopened browser defaults to safe browsing');galleryWindow.close();