Marketing and content scenarios

Travel pass FAQ conversion section

Complete the FAQ conversion section in a travel pass scenario: includes real content, interactive controls, clear status feedback, and responsive layouts across sizes.

Marketing and content scenariosQ&A conversion zoneHTMLCSSJavaScript
With JavaScript enabled, you can edit, run, and save this example. The fixed source is as follows:
<!doctype html>
<html lang="en" dir="ltr">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Travel pass FAQ conversion section</title>
  <style>
    :root { --ink:#252525; --paper:#f7f2e8; --accent:#247ba0; --secondary:#f4b942; --line:color-mix(in srgb, var(--ink) 18%, transparent); --shadow:0 24px 60px color-mix(in srgb, var(--ink) 16%, transparent); color-scheme:light; }
    * { box-sizing:border-box; }
    html { min-width:320px; background:var(--paper); }
    body { min-height:100vh; margin:0; overflow-x:hidden; color:var(--ink); font-family:Didot,"Songti SC",serif; background:linear-gradient(30deg,transparent 48%,color-mix(in srgb,var(--accent) 9%,transparent) 49% 51%,transparent 52%),var(--paper);background-size:52px 90px; }
    button,input,select,textarea { color:inherit; font:inherit; }
    button,[role="button"],input,select,textarea { accent-color:var(--accent); }
    button { cursor:pointer; }
    button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
    [hidden] { display:none !important; }
    @media (max-width:700px) { .mast h1 { line-height:1.08 !important; letter-spacing:-.035em !important; overflow-wrap:anywhere; } }
    @media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }
    .page{width:min(1040px,calc(100% - 36px));margin:auto;padding:64px 0}.mast{display:grid;justify-items:center;text-align:center;border-block:3px double var(--accent);padding:26px;gap:20px;margin-bottom:32px}.mast h1{font-family:Didot,"Songti SC",serif;font-weight:700;font-size:clamp(38px,8vw,86px);letter-spacing:.035em;margin:0;line-height:1}.eyebrow{display:block;color:var(--accent);font:800 11px/1 ui-monospace,monospace;letter-spacing:.3em}.intro{max-width:600px;margin-inline:auto;line-height:1.8}.scenario{padding:8px 26px;border-inline:1px solid var(--accent);letter-spacing:.16em}.demo{border:4px double var(--accent);border-radius:0;clip-path:polygon(24px 0,calc(100% - 24px) 0,100% 24px,100% calc(100% - 24px),calc(100% - 24px) 100%,24px 100%,0 calc(100% - 24px),0 24px);position:relative;min-height:440px;overflow:hidden;padding:clamp(28px,5vw,60px);background:var(--paper)}@media(max-width:700px){.page{width:calc(100% - 20px);padding:24px 0}.mast{padding:18px}.demo{padding:18px}}
    .panel{padding:18px;border:2px solid var(--line);border-radius:26px;box-shadow:0 12px 0 color-mix(in srgb,var(--secondary) 35%,transparent)}.row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.stack{display:grid;gap:12px}.action{padding:12px 20px;border:2px solid var(--ink);border-radius:14px;background:var(--paper);box-shadow:0 5px 0 var(--ink);font-weight:800}.action:active{transform:translateY(4px);box-shadow:0 1px 0 var(--ink)}.action.primary,.action.is-active{color:var(--paper);background:var(--accent)}.status{text-align:center;min-height:26px;margin-top:18px}.metric{text-align:center;font-size:clamp(34px,8vw,70px);font-weight:900}.muted{text-align:center;opacity:.7}.meter{height:14px;padding:2px;border:2px solid var(--ink);border-radius:999px}.meter>i{display:block;height:100%;border-radius:inherit;background:var(--secondary)}.chip{padding:7px 11px;border-radius:12px;background:color-mix(in srgb,var(--accent) 12%,transparent)}
    .composition-index{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px}.index-mark{display:grid;align-content:space-between;width:76px;padding:16px 10px;border:1px solid var(--line);color:var(--accent);background:color-mix(in srgb,var(--paper) 82%,transparent);text-align:center}.index-mark strong{font:900 34px/1 ui-monospace,monospace}.index-mark span{writing-mode:vertical-rl;font:800 10px/1.2 ui-monospace,monospace;letter-spacing:.18em}.composition-index .demo{grid-column:1;grid-row:1}.composition-index::before{content:"";position:absolute;left:-12px;top:38px;width:5px;height:45%;background:linear-gradient(var(--accent),var(--secondary))}@media(max-width:700px){.composition-index{grid-template-columns:1fr}.index-mark{grid-row:1;width:auto;grid-template-columns:auto 1fr}.index-mark span{writing-mode:horizontal-tb}.composition-index .demo{grid-row:2}}
    .faq-conversion-studio{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(0,1.25fr);gap:28px}.faq-conversion-studio>section{display:grid;align-content:start;gap:16px;padding:28px;border-radius:22px;background:var(--ink);color:var(--paper)}.faq-conversion-studio>section h2{font-size:clamp(34px,6vw,64px)}.faq-conversion-studio .action{color:var(--paper);border-color:var(--paper)}.faq-columns{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px}.faq-list details{border-top:1px solid var(--line)}.faq-list summary{padding:18px 4px;cursor:pointer;font-weight:900}.faq-list details p{padding:0 4px 18px;margin:0;line-height:1.8}.faq-columns aside{display:grid;align-content:start;gap:10px;padding:18px;border-left:4px solid var(--accent);background:color-mix(in srgb,var(--secondary) 10%,transparent)}.faq-columns aside ol{display:grid;gap:8px;padding-left:18px;margin:0}@media(max-width:900px){.faq-conversion-studio,.faq-columns{grid-template-columns:1fr}}.workflow-spatial{display:grid;gap:16px}.workflow-spatial>header{display:grid;grid-template-columns:1fr minmax(170px,.35fr) minmax(170px,.35fr);gap:18px;align-items:end;padding-bottom:16px;border-bottom:5px solid var(--ink)}.workflow-spatial h2{margin:.2em 0}.workflow-spatial header label{display:grid;grid-template-columns:1fr auto;gap:7px}.workflow-spatial header input{grid-column:1/-1;width:100%}.spatial-grid{display:grid;grid-template-columns:minmax(0,var(--spatial-width)) 20px minmax(180px,1fr);gap:0;align-items:stretch}.spatial-core{min-width:0;transform:scale(var(--spatial-zoom));transform-origin:top left;transition:transform .2s}.spatial-handle{display:grid;min-height:300px;place-items:center;border:0;border-inline:1px dashed var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent);cursor:col-resize}.spatial-grid>aside{display:grid;align-content:center;gap:14px;padding:22px;background:color-mix(in srgb,var(--secondary) 14%,var(--paper))}.spatial-grid>aside strong{font-size:clamp(24px,4vw,42px)}@media(max-width:900px){.workflow-spatial>header{grid-template-columns:1fr}.spatial-grid{order:-1;grid-template-columns:1fr}.spatial-handle{min-height:44px;cursor:row-resize}.spatial-core{transform:none}}.travel-faq-desk{--casework-scale:100;display:grid;gap:18px;padding:clamp(18px,4vw,30px);border:1px solid var(--line);border-radius:30px;background:linear-gradient(160deg,color-mix(in srgb,var(--secondary) 10%,transparent),color-mix(in srgb,var(--paper) 95%,transparent));box-shadow:var(--shadow)}.travel-faq-desk__head{display:flex;justify-content:space-between;gap:18px;align-items:end}.travel-faq-desk__head h2{margin:.18em 0}.travel-faq-desk__modes{display:flex;flex-wrap:wrap;gap:8px;justify-content:end}.travel-faq-desk__grid{display:grid;grid-template-columns:minmax(0,1.46fr) minmax(230px,.54fr);gap:16px}.travel-faq-desk__viewport{min-width:0;padding:clamp(14px,3vw,22px);overflow:auto;border:1px solid var(--line);border-radius:24px;background:color-mix(in srgb,var(--paper) 92%,transparent)}.travel-faq-desk__viewport>*{display:block;width:calc(10000%/var(--casework-scale));max-width:none;transform:scale(calc(var(--casework-scale)/100));transform-origin:top left}.travel-faq-desk__rail{display:grid;align-content:start;gap:14px;padding:18px;border-radius:24px;color:var(--paper);background:linear-gradient(180deg,color-mix(in srgb,var(--ink) 90%,#08120f),color-mix(in srgb,var(--ink) 72%,#1b120e))}.travel-faq-desk__rail label{display:grid;gap:8px}.travel-faq-desk__rail input{width:100%}.travel-faq-desk__notes{display:grid;gap:10px}.travel-faq-desk__notes button{display:grid;gap:6px;padding:14px;border:1px solid #ffffff24;border-radius:16px;color:inherit;background:#ffffff10;text-align:left}.travel-faq-desk__notes button[aria-pressed="true"]{border-color:var(--secondary);background:#ffffff1a;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--secondary) 28%,transparent)}.travel-faq-desk__notes small{line-height:1.45;opacity:.78}.travel-faq-desk__log{display:grid;gap:8px;margin:0;padding-left:18px}.travel-faq-desk[data-casework-mode="inspect"] .travel-faq-desk__viewport{outline:4px solid color-mix(in srgb,var(--accent) 26%,transparent);outline-offset:2px}.travel-faq-desk[data-casework-mode="handoff"] .travel-faq-desk__rail{background:linear-gradient(180deg,color-mix(in srgb,var(--ink) 84%,#28120f),color-mix(in srgb,var(--ink) 68%,#11201d))}@media(max-width:920px){.travel-faq-desk__grid{grid-template-columns:1fr}}@media(max-width:560px){.travel-faq-desk__head{align-items:stretch;flex-direction:column}.travel-faq-desk__modes{justify-content:start}.travel-faq-desk__viewport>*{width:100%;transform:none}}
  </style>
</head>
<body data-aesthetic="art-deco" data-composition="field-index">
  <main class="page">
    <header class="mast"><div><span class="eyebrow">art-deco / FAQ Conversion Area / BEGINNER</span><h1>Travel pass FAQ conversion section</h1><p class="intro">Complete the FAQ conversion section in a travel pass scenario: includes real content, interactive controls, clear status feedback, and responsive layouts across sizes.</p></div><span class="scenario">Travel Pass</span></header>
    <div class="composition-index"><section class="demo" aria-label="Travel Pass FAQ conversion area interactive area"><section id="travelFaqDesk" class="travel-faq-desk" data-casework-mode="queue"><header class="travel-faq-desk__head"><div><span class="eyebrow">Travel Pass / TRAVEL FAQ DESK</span><h2>Q&A Conversion Zone Conversion Q&A Desk</h2><p>Put the FAQ conversion page into the conversion Q&A desk, and use a separate record card and handoff mode to distinguish it from the makers fair version’s shell-level repetition.</p></div><div class="travel-faq-desk__modes"><button class="action primary" type="button" data-casework-mode="queue">Queue</button><button class="action" type="button" data-casework-mode="inspect">Review</button><button class="action" type="button" data-casework-mode="handoff">Handoff</button></div></header><div class="travel-faq-desk__grid"><div class="travel-faq-desk__viewport"><div id="workflowSpatial" class="workflow-spatial" style="--spatial-width:64%;--spatial-zoom:1"><header><div><span class="eyebrow">Travel Pass SPATIAL CANVAS</span><h2>Travel Pass Adjustment Desk</h2></div><label>Target audience share<input id="workflowSpatialWidth" type="range" min="38" max="82" value="64"><output id="workflowSpatialWidthValue">64%</output></label><label>Content Scaling<input id="workflowSpatialZoom" type="range" min="80" max="120" value="100"><output id="workflowSpatialZoomValue">100%</output></label></header><div class="spatial-grid"><section id="workflowCore" class="workflow-core spatial-core"><!-- 11DZ_CORE_START:marketing-content-pages-faq-conversion --><div class="faq-conversion-studio"><section><span class="eyebrow">QUESTIONS → ACTION</span><h2>Travel Pass FAQ Workbench</h2><p>Answer the questions first, then dynamically update the conversion suggestions on the right based on the current number of concerns.</p><button id="faqAction" class="action primary" type="button" data-core-bridge="marketing-content-pages-faq-conversion">Questions answered, start exploring</button></section><div class="faq-columns"><div class="faq-list"><details open><summary>Who is it suitable for?</summary><p>All questions about travel pass progress will be answered here in full, and all actions stay on the current demo page.</p></details><details><summary>What should be prepared in advance?</summary><p>The travel pass reminder information is fully answered here, and all actions remain on the current demo page.</p></details><details><summary>How is content saved?</summary><p>All notes about travel pass collections are fully answered here, and all actions stay on the current demo page.</p></details><details><summary>A verifiable before-and-after comparison, without using exaggerated slogans in place of evidence.</summary><p>The overview of the travel pass will be fully explained here, and all actions remain on the current demo page.</p></details><details><summary>How can I get help?</summary><p>Everything about the travel pass plan will be answered in full here, and all actions stay within the current demo page.</p></details></div><aside><strong id="faqOpenCount">Currently expanded 1 items</strong><p id="faqOpenHint">It is recommended to read the current question first before deciding whether to move to the next step.</p><ol><li>Address the core concerns first</li><li>Confirm entry conditions again</li><li>Begin with the final action</li></ol></aside></div></div><!-- 11DZ_CORE_END --></section><input id="workflowSpatialHandle" class="spatial-handle" type="button" value="↔" aria-label="Drag to adjust the main case preview width"><aside><strong>Travel Pass Highlights</strong><p>Travel pass evidence supplement and travel pass conversion actions will be reorganized based on canvas size.</p><output id="workflowSpatialStatus">Width 64%, zoom 100%</output><input id="workflowSpatialApply" class="action primary" type="button" value="Save Page"></aside></div></div></div><aside class="travel-faq-desk__rail"><label>Observation Scale<input id="travelFaqDeskScale" type="range" min="84" max="132" value="100"><output id="travelFaqDeskScaleValue">100%</output></label><div class="travel-faq-desk__notes"><button type="button" data-casework-note="0" aria-pressed="true"><strong>Travel Pass Progress</strong><small>Check state changes</small></button><button type="button" data-casework-note="1" aria-pressed="false"><strong>Travel pass reminder</strong><small>Confirm keyboard entry</small></button><button type="button" data-casework-note="2" aria-pressed="false"><strong>Travel Pass Collection</strong><small>Observe narrow-screen fallback</small></button><button type="button" data-casework-note="3" aria-pressed="false"><strong>Travel Pass Overview</strong><small>Write the current conclusion</small></button></div><button id="travelFaqDeskCapture" class="action primary" type="button">Write FAQ samples</button><ol id="travelFaqDeskLog" class="travel-faq-desk__log"><li>Waiting for the first record</li></ol></aside></div></section><p id="status" class="status" role="status" aria-live="polite"></p></section><aside class="index-mark" aria-hidden="true"><strong>05</strong><span>Travel Pass FIELD INDEX</span></aside></div>
  </main>
  <script>
    'use strict';
    const statusOutput = document.querySelector('#status');
    const announce = message => { statusOutput.textContent = message; };
    /* 11DZ_CORE_SCRIPT_START:marketing-content-pages-faq-conversion */
const faqDetails=[...document.querySelectorAll('.faq-list details')];function renderFaqStudio(){const openCount=faqDetails.filter(details=>details.open).length;document.querySelector('#faqOpenCount').textContent='Currently expanded '+openCount+' Item';document.querySelector('#faqOpenHint').textContent=openCount>2?'If you have many concerns, we recommend continuing to read before getting started.':'The issues are fairly concentrated, so we can prepare to move into the experience.';}faqDetails.forEach(details=>details.addEventListener('toggle',()=>{if(details.open)announce('Question expanded:'+details.querySelector('summary').textContent);renderFaqStudio();}));document.querySelector('#faqAction').addEventListener('click',()=>announce('Travel pass experience entry confirmed'));renderFaqStudio();
/* 11DZ_CORE_SCRIPT_END */
const workflowBridgeSpec={"name":"marketing-content-pages-faq-conversion","selector":"[data-core-bridge=\"marketing-content-pages-faq-conversion\"]","mode":"click","key":"Enter"};const workflowBridgeCore=document.querySelector('#workflowCore');const workflowBridgeControl=workflowBridgeCore.querySelector(workflowBridgeSpec.selector);if(!workflowBridgeControl)throw new Error('Missing core bridge: '+workflowBridgeSpec.name);const workflowBridgeControlledId=workflowBridgeControl.getAttribute('aria-controls');const workflowBridgeControlled=workflowBridgeControlledId?document.getElementById(workflowBridgeControlledId):null;workflowBridgeCore.dataset.workflowBridge=workflowBridgeSpec.name;workflowBridgeCore.dataset.workflowVersion='0';function workflowBridgeSerialize(){const visualNode=workflowBridgeCore.firstElementChild||workflowBridgeCore;const visual=getComputedStyle(visualNode);const outputs=[...workflowBridgeCore.querySelectorAll('output,[role="status"],[aria-live],meter,progress')].map(node=>node.textContent.trim()+'|'+node.getAttribute('aria-valuenow')+'|'+node.getAttribute('value'));const canvas=[...workflowBridgeCore.querySelectorAll('canvas')].map(node=>{try{return node.toDataURL().slice(-160);}catch{return 'canvas-unavailable';}});return JSON.stringify({html:workflowBridgeCore.innerHTML,status:statusOutput.textContent,outputs,canvas,visual:[visual.display,visual.visibility,visual.opacity,visual.transform,visual.filter,visual.backgroundColor,visual.width,visual.height],scroll:workflowBridgeSpec.mode==='scroll'?workflowBridgeControl.scrollTop:null});}let workflowBridgeLastEffect=workflowBridgeSerialize();function workflowBridgeSummary(){const label=(workflowBridgeControl.getAttribute('aria-label')||workflowBridgeControl.textContent||workflowBridgeControl.value||workflowBridgeSpec.name).trim().replace(/\s+/g,' ').slice(0,72);return label+' · Core Version '+workflowBridgeCore.dataset.workflowVersion;}function workflowBridgeCommit(){const effect=workflowBridgeSerialize();if(effect===workflowBridgeLastEffect)return {changed:false,summary:workflowBridgeSummary()};workflowBridgeLastEffect=effect;workflowBridgeCore.dataset.workflowVersion=String(Number(workflowBridgeCore.dataset.workflowVersion||0)+1);return {changed:true,summary:workflowBridgeSummary()};}function workflowBridgeScheduleCommit(){queueMicrotask(workflowBridgeCommit);setTimeout(workflowBridgeCommit,0);}workflowBridgeControl.addEventListener("click",workflowBridgeScheduleCommit);const workflowBridgeStateTargets=new Set(workflowBridgeCore.querySelectorAll('dialog'));if(workflowBridgeControlled&&workflowBridgeCore.contains(workflowBridgeControlled))workflowBridgeStateTargets.add(workflowBridgeControlled);workflowBridgeStateTargets.forEach(target=>['close','cancel','toggle'].forEach(eventName=>target.addEventListener(eventName,workflowBridgeScheduleCommit)));function workflowBridgeActivate(){workflowBridgeControl.focus();workflowBridgeControl.click();const result=workflowBridgeCommit();setTimeout(workflowBridgeCommit,0);return result;}function workflowBridgeReset(){workflowBridgeCore.dataset.workflowVersion='0';workflowBridgeLastEffect=workflowBridgeSerialize();}
const workflowSpatial=document.querySelector('#workflowSpatial');const workflowSpatialCore=document.querySelector('#workflowCore');const workflowSpatialWidth=document.querySelector('#workflowSpatialWidth');const workflowSpatialZoom=document.querySelector('#workflowSpatialZoom');const workflowSpatialHandle=document.querySelector('#workflowSpatialHandle');const workflowSpatialState={width:64,zoom:1,dragging:false};function workflowSpatialDrive(){workflowSpatial.style.setProperty('--spatial-width',workflowSpatialState.width+'%');workflowSpatial.style.setProperty('--spatial-zoom',String(workflowSpatialState.zoom));workflowSpatialWidth.value=String(workflowSpatialState.width);workflowSpatialZoom.value=String(Math.round(workflowSpatialState.zoom*100));document.querySelector('#workflowSpatialWidthValue').textContent=workflowSpatialState.width+'%';document.querySelector('#workflowSpatialZoomValue').textContent=Math.round(workflowSpatialState.zoom*100)+'%';document.querySelector('#workflowSpatialStatus').textContent='width '+workflowSpatialState.width+'%, zoom '+Math.round(workflowSpatialState.zoom*100)+'%';announce('Travel Pass Canvas Reflowed');}workflowSpatialWidth.addEventListener('input',()=>{workflowSpatialState.width=Number(workflowSpatialWidth.value);workflowSpatialDrive();});workflowSpatialZoom.addEventListener('input',()=>{workflowSpatialState.zoom=Number(workflowSpatialZoom.value)/100;workflowSpatialDrive();});workflowSpatialHandle.addEventListener('pointerdown',event=>{workflowSpatialState.dragging=true;workflowSpatialHandle.setPointerCapture(event.pointerId);});workflowSpatialHandle.addEventListener('pointermove',event=>{if(!workflowSpatialState.dragging)return;const rect=workflowSpatial.getBoundingClientRect();workflowSpatialState.width=Math.max(38,Math.min(82,Math.round((event.clientX-rect.left)/rect.width*100)));workflowSpatialDrive();});workflowSpatialHandle.addEventListener('pointerup',event=>{workflowSpatialState.dragging=false;workflowSpatialHandle.releasePointerCapture(event.pointerId);});workflowSpatialHandle.addEventListener('wheel',event=>{event.preventDefault();workflowSpatialState.zoom=Math.max(.8,Math.min(1.2,workflowSpatialState.zoom+(event.deltaY<0?.05:-.05)));workflowSpatialDrive();},{passive:false});workflowSpatialHandle.addEventListener('keydown',event=>{if(!['ArrowLeft','ArrowRight'].includes(event.key))return;event.preventDefault();workflowSpatialState.width=Math.max(38,Math.min(82,workflowSpatialState.width+(event.key==='ArrowRight'?2:-2)));workflowSpatialDrive();});document.querySelector('#workflowSpatialApply').addEventListener('click',()=>{const bridge=workflowBridgeActivate();document.querySelector('#workflowSpatialStatus').textContent='Saved page · Width '+workflowSpatialState.width+'%, zoom '+Math.round(workflowSpatialState.zoom*100)+'% · '+bridge.summary;announce(document.querySelector('#workflowSpatialStatus').textContent);});workflowSpatialDrive();
workflowBridgeReset();
const caseworkShell=document.querySelector('#travelFaqDesk');const caseworkScale=document.querySelector('#travelFaqDeskScale');const caseworkScaleValue=document.querySelector('#travelFaqDeskScaleValue');const caseworkLog=document.querySelector('#travelFaqDeskLog');const caseworkModeButtons=[...caseworkShell.querySelectorAll('[data-casework-mode]')];const caseworkNotes=[...caseworkShell.querySelectorAll('[data-casework-note]')];const caseworkLabels=["Travel Pass Progress","Travel pass reminder","Travel Pass Collection","Travel Pass Overview"];const caseworkCore=document.querySelector('#workflowCore');let caseworkCount=0;function caseworkActiveIndex(){return Math.max(0,caseworkNotes.findIndex(button=>button.getAttribute('aria-pressed')==='true'));}function caseworkRender(reason){const version=caseworkCore?.dataset.workflowVersion||'0';const scale=Number(caseworkScale.value);caseworkShell.style.setProperty('--casework-scale',String(scale));caseworkScaleValue.textContent=scale+'%';caseworkNotes.forEach((button,index)=>button.setAttribute('aria-pressed',String(index===caseworkActiveIndex())));announce(reason+' · Core Version '+version);}caseworkModeButtons.forEach(button=>button.addEventListener('click',()=>{caseworkModeButtons.forEach(item=>item.classList.toggle('primary',item===button));caseworkShell.dataset.caseworkMode=button.dataset.caseworkMode;caseworkRender('Switched to'+button.textContent);}));caseworkNotes.forEach((button,index)=>button.addEventListener('click',()=>{caseworkNotes.forEach(item=>item.setAttribute('aria-pressed','false'));button.setAttribute('aria-pressed','true');caseworkRender('Switched record card');announce('Record card:'+caseworkLabels[index]);}));caseworkScale.addEventListener('input',()=>caseworkRender('Observation ratio updated'));document.querySelector('#travelFaqDeskCapture').addEventListener('click',()=>{const index=caseworkActiveIndex();const version=caseworkCore?.dataset.workflowVersion||'0';caseworkCount+=1;const item=document.createElement('li');item.textContent='Record '+caseworkCount+' · '+(caseworkLabels[index]||caseworkLabels[0]||'Untitled sample')+' · Core Version '+version;const empty=caseworkLog.querySelector('li')?.textContent==='Waiting for the first record';if(empty)caseworkLog.replaceChildren(item);else caseworkLog.prepend(item);while(caseworkLog.children.length>6)caseworkLog.lastElementChild.remove();caseworkRender('Record written '+caseworkCount);});caseworkCore?.addEventListener('focusin',()=>caseworkRender('Main Case Gets Focus'));caseworkCore?.addEventListener('click',()=>caseworkRender('Primary example interaction'));caseworkRender('Ready to create record');
  </script>
</body>
</html>
Page feedbackFound an issue or have suggestions for improvement?
Feedback features need to be used in the online version

Please enable JavaScript in the online version before submitting; local features of the current tool or example are not affected.

Go to the online version for feedback