Dashboard and Admin Interfaces

Housing Services Network Calendar Heatmap Panel

Complete a calendar heatmap dashboard for a home services website: includes realistic content, interactive controls, clear state feedback, and responsive layouts across sizes.

Dashboard and Admin InterfacesCalendar heatmap panelHTMLCanvasJavaScript
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>Housing Services Network Calendar Heatmap Panel</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:16px;border:3px double var(--accent);background:var(--paper)}.stack{display:grid;gap:14px}.row{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;gap:10px;overflow:auto}.action{padding:10px 15px;border:1px solid var(--accent);background:transparent;font-family:Didot,serif;letter-spacing:.06em}.action.primary,.action.is-active{color:var(--paper);background:var(--ink)}.metric{font-family:Didot,serif;font-size:clamp(36px,8vw,74px);letter-spacing:.04em}.status{min-height:24px;padding:9px;border-inline:1px solid var(--accent);text-align:center}.muted{line-height:1.8}.chip{padding:5px 14px;border-inline:1px solid var(--accent);letter-spacing:.1em}.meter{height:5px;background:var(--line)}.meter>i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--secondary))}
    .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}}
    .calendar-heatmap-studio{display:grid;gap:12px;max-width:860px;margin:auto}.calendar-heatmap-studio header{display:flex;justify-content:space-between;gap:18px;align-items:end}.calendar-heatmap-studio h2{margin:.3em 0}.heatmap-layout{display:grid;grid-template-columns:minmax(0,1.2fr) 220px;gap:14px}.weekday-row,.calendar-heatmap{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.weekday-row{text-align:center;font-size:12px}.calendar-heatmap button{aspect-ratio:1;border:0;border-radius:8px;background:color-mix(in srgb,var(--accent) calc(var(--heat)*20%),var(--paper))}.calendar-heatmap [data-heat="0"]{--heat:0}.calendar-heatmap [data-heat="1"]{--heat:1}.calendar-heatmap [data-heat="2"]{--heat:2}.calendar-heatmap [data-heat="3"]{--heat:3}.calendar-heatmap [data-heat="4"]{--heat:4;color:var(--paper)}.calendar-heatmap button[aria-selected="true"]{outline:3px solid var(--ink);outline-offset:2px}.calendar-heatmap-studio footer{display:flex;gap:5px;justify-content:flex-end;align-items:center}.calendar-heatmap-studio footer i{width:16px;height:16px;border-radius:4px;background:var(--line)}.calendar-heatmap-studio footer i:nth-of-type(2){background:color-mix(in srgb,var(--accent) 25%,var(--paper))}.calendar-heatmap-studio footer i:nth-of-type(3){background:color-mix(in srgb,var(--accent) 50%,var(--paper))}.calendar-heatmap-studio footer i:nth-of-type(4){background:color-mix(in srgb,var(--accent) 75%,var(--paper))}.calendar-heatmap-studio footer i:nth-of-type(5){background:var(--accent)}.heatmap-layout aside{display:grid;align-content:start;gap:10px;padding:16px;border-left:4px solid var(--accent);background:color-mix(in srgb,var(--secondary) 12%,transparent)}.heatmap-layout aside ol{display:grid;gap:8px;padding-left:18px;margin:0}@media(max-width:700px){.calendar-heatmap-studio header{align-items:stretch;flex-direction:column}.heatmap-layout{grid-template-columns:1fr}}.workflow-guide{display:grid;grid-template-columns:190px minmax(0,1fr);grid-template-areas:"rail core" "rail evidence";gap:14px 18px}.guide-rail{grid-area:rail;display:grid;align-content:start;gap:15px;padding:18px;border-right:1px solid var(--line)}.guide-rail ol{display:grid;gap:8px;padding:0;margin:0;list-style:none}.guide-rail li{display:grid;grid-template-columns:30px 1fr;gap:8px;align-items:center;padding:9px;opacity:.5}.guide-rail li[aria-current="step"]{opacity:1;color:var(--paper);background:var(--ink)}.guide-rail li.is-complete{opacity:1;color:var(--accent)}.guide-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.guide-actions .action{padding-inline:8px}#workflowGuideProgress{height:6px;background:var(--line)}#workflowGuideProgress i{display:block;width:0;height:100%;background:var(--accent)}.guide-core{grid-area:core;min-width:0;padding:16px;border:1px solid var(--line)}.guide-core>p{margin:0 0 14px;padding:10px;border-left:4px solid var(--accent);background:color-mix(in srgb,var(--secondary) 12%,transparent)}.guide-core[data-guide-step="1"]{border-radius:28px}.guide-core[data-guide-step="2"]{box-shadow:inset 0 0 0 4px color-mix(in srgb,var(--accent) 35%,transparent)}.guide-evidence{grid-area:evidence;display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:start}.guide-evidence details,.guide-evidence form{padding:12px;border:1px solid var(--line)}.guide-evidence label{display:grid;gap:7px}.guide-evidence textarea{width:100%;padding:9px;border:1px solid var(--line);background:var(--paper)}@media(max-width:900px){.workflow-guide{grid-template-columns:1fr;grid-template-areas:"core" "rail" "evidence"}.guide-rail{border-right:0;border-bottom:1px solid var(--line)}.guide-rail ol{grid-template-columns:repeat(3,1fr)}.guide-evidence{grid-template-columns:1fr}}.housing-heatmap-board{--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)}.housing-heatmap-board__head{display:flex;justify-content:space-between;gap:18px;align-items:end}.housing-heatmap-board__head h2{margin:.18em 0}.housing-heatmap-board__modes{display:flex;flex-wrap:wrap;gap:8px;justify-content:end}.housing-heatmap-board__grid{display:grid;grid-template-columns:minmax(0,1.46fr) minmax(230px,.54fr);gap:16px}.housing-heatmap-board__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)}.housing-heatmap-board__viewport>*{display:block;width:calc(10000%/var(--casework-scale));max-width:none;transform:scale(calc(var(--casework-scale)/100));transform-origin:top left}.housing-heatmap-board__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))}.housing-heatmap-board__rail label{display:grid;gap:8px}.housing-heatmap-board__rail input{width:100%}.housing-heatmap-board__notes{display:grid;gap:10px}.housing-heatmap-board__notes button{display:grid;gap:6px;padding:14px;border:1px solid #ffffff24;border-radius:16px;color:inherit;background:#ffffff10;text-align:left}.housing-heatmap-board__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)}.housing-heatmap-board__notes small{line-height:1.45;opacity:.78}.housing-heatmap-board__log{display:grid;gap:8px;margin:0;padding-left:18px}.housing-heatmap-board[data-casework-mode="inspect"] .housing-heatmap-board__viewport{outline:4px solid color-mix(in srgb,var(--accent) 26%,transparent);outline-offset:2px}.housing-heatmap-board[data-casework-mode="handoff"] .housing-heatmap-board__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){.housing-heatmap-board__grid{grid-template-columns:1fr}}@media(max-width:560px){.housing-heatmap-board__head{align-items:stretch;flex-direction:column}.housing-heatmap-board__modes{justify-content:start}.housing-heatmap-board__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 / Calendar Heatmap Panel / BEGINNER</span><h1>Housing Services Network Calendar Heatmap Panel</h1><p class="intro">Complete a calendar heatmap dashboard for a home services website: includes realistic content, interactive controls, clear state feedback, and responsive layouts across sizes.</p></div><span class="scenario">Housing Services Network</span></header>
    <div class="composition-index"><section class="demo" aria-label="Interactive area for the housing-service-grid calendar heatmap panel"><section id="housingHeatmapBoard" class="housing-heatmap-board" data-casework-mode="queue"><header class="housing-heatmap-board__head"><div><span class="eyebrow">Housing Service Grid / HOUSING HEATMAP BOARD</span><h2>Calendar Heatmap Panel Service Heatmap Dashboard</h2><p>Put the calendar heatmap into the service heatmap dashboard, separating the shared structure of archive watch desk with independent record cards and review mode.</p></div><div class="housing-heatmap-board__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="housing-heatmap-board__grid"><div class="housing-heatmap-board__viewport"><div class="workflow-guide"><nav class="guide-rail" aria-label="Residential Service Network Guide"><span class="eyebrow">Housing Service Grid GUIDE</span><ol><li data-workflow-guide-step="0" aria-current="step"><b>1</b><span>Housing service network monitoring view</span></li><li data-workflow-guide-step="1"><b>2</b><span>Housing Service Grid Handling View</span></li><li data-workflow-guide-step="2"><b>3</b><span>Housing Services Network Review View</span></li></ol><div class="guide-actions"><button id="workflowGuideBack" class="action" type="button" disabled>Previous</button><button id="workflowGuideNext" class="action primary" type="button">Complete this step</button></div><div id="workflowGuideProgress" role="progressbar" aria-label="Housing Service Grid Completion" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><i></i></div></nav><section id="workflowCore" class="workflow-core guide-core" data-guide-step="0" aria-describedby="workflowGuideInstruction"><p id="workflowGuideInstruction">Please complete the operations related to the “Housing Service Network Monitoring View” in the main example.</p><!-- 11DZ_CORE_START:dashboards-admin-calendar-heatmap --><div class="calendar-heatmap-studio"><header><div><span class="eyebrow">CALENDAR HEATMAP</span><h2>Housing service activity calendar</h2></div><output id="heatmapSelection">Select a date to view activity</output></header><div class="heatmap-layout"><section><div class="weekday-row"><span>One</span><span>Two</span><span>Three</span><span>Four</span><span>Five</span><span>Six</span><span>Day</span></div><div class="calendar-heatmap" role="grid" aria-label="7 monthly activity"><button type="button" role="gridcell" data-heat="2" aria-label="7 month 1 day, activity level 2" data-core-bridge="dashboards-admin-calendar-heatmap">1</button><button type="button" role="gridcell" data-heat="4" aria-label="7 month 2 day, activity 4">2</button><button type="button" role="gridcell" data-heat="1" aria-label="7 month 3 day, activity level 1">3</button><button type="button" role="gridcell" data-heat="3" aria-label="7 month 4, activity level 3">4</button><button type="button" role="gridcell" data-heat="0" aria-label="7 / 5, activity level 0">5</button><button type="button" role="gridcell" data-heat="2" aria-label="7 month 6 day, activity 2">6</button><button type="button" role="gridcell" data-heat="4" aria-label="7 month 7, activity 4">7</button><button type="button" role="gridcell" data-heat="1" aria-label="7 month 8 day, activity 1">8</button><button type="button" role="gridcell" data-heat="3" aria-label="7 month 9 day, activity 3">9</button><button type="button" role="gridcell" data-heat="0" aria-label="7 month 10 day, activity 0">10</button><button type="button" role="gridcell" data-heat="2" aria-label="7 month 11 day, activity 2">11</button><button type="button" role="gridcell" data-heat="4" aria-label="7 Month 12 Day, Activity 4">12</button><button type="button" role="gridcell" data-heat="1" aria-label="7 Month 13 Day, Activity 1">13</button><button type="button" role="gridcell" data-heat="3" aria-label="7 Month 14 Day, activity level 3">14</button><button type="button" role="gridcell" data-heat="0" aria-label="7 month 15 day, activity level 0">15</button><button type="button" role="gridcell" data-heat="2" aria-label="7 month 16, activity level 2">16</button><button type="button" role="gridcell" data-heat="4" aria-label="7 month 17 day, activity level 4">17</button><button type="button" role="gridcell" data-heat="1" aria-label="7 Month 18 Day, activity 1">18</button><button type="button" role="gridcell" data-heat="3" aria-label="7 month 19 day, activity 3">19</button><button type="button" role="gridcell" data-heat="0" aria-label="7 month 20 day, activity 0">20</button><button type="button" role="gridcell" data-heat="2" aria-label="7 month 21 day, activity level 2">21</button><button type="button" role="gridcell" data-heat="4" aria-label="7 month 22 day, activity level 4">22</button><button type="button" role="gridcell" data-heat="1" aria-label="7 month 23 day, activity level 1">23</button><button type="button" role="gridcell" data-heat="3" aria-label="7 24, activity level 3">24</button><button type="button" role="gridcell" data-heat="0" aria-label="7 month 25 day, activity 0">25</button><button type="button" role="gridcell" data-heat="2" aria-label="7 month 26 day, activity 2">26</button><button type="button" role="gridcell" data-heat="4" aria-label="7 month 27 day, engagement 4">27</button><button type="button" role="gridcell" data-heat="1" aria-label="7 month 28 day, activity 1">28</button><button type="button" role="gridcell" data-heat="3" aria-label="7 month 29 day, activity 3">29</button><button type="button" role="gridcell" data-heat="0" aria-label="7 month 30 day, activity level 0">30</button><button type="button" role="gridcell" data-heat="2" aria-label="7 month 31 day, activity 2">31</button></div><footer><span>Few</span><i data-heat="0"></i><i data-heat="1"></i><i data-heat="2"></i><i data-heat="3"></i><i data-heat="4"></i><span>Many</span></footer></section><aside><strong id="heatmapWeekSummary">First week total 0</strong><ol id="heatmapWeeks"><li>Week 1</li><li>Week 2</li><li>Week 3</li><li>Week 4</li><li>Week 5</li></ol></aside></div></div><!-- 11DZ_CORE_END --></section><aside class="guide-evidence"><details id="workflowGuideDetails"><summary>View acceptance requirements</summary><ul><li>The service network monitoring view requires one visible state change.</li><li>The service operations dashboard requires a visible state change once.</li><li>The housing service web review view requires one visible state change</li></ul></details><form id="workflowGuideEvidenceForm"><label>This step evidence<textarea id="workflowGuideEvidence" rows="3" placeholder="Record the observed state"></textarea></label><input class="action" type="submit" value="Save evidence"></form><output id="workflowGuideSummary">0 / 3 Steps Complete</output></aside></div></div><aside class="housing-heatmap-board__rail"><label>Observation Scale<input id="housingHeatmapBoardScale" type="range" min="84" max="132" value="100"><output id="housingHeatmapBoardScaleValue">100%</output></label><div class="housing-heatmap-board__notes"><button type="button" data-casework-note="0" aria-pressed="true"><strong>Housing Service Network Progress</strong><small>Check state changes</small></button><button type="button" data-casework-note="1" aria-pressed="false"><strong>Housing Service Network Reminder</strong><small>Confirm keyboard entry</small></button><button type="button" data-casework-note="2" aria-pressed="false"><strong>Housing Service Network Favorites</strong><small>Observe narrow-screen fallback</small></button><button type="button" data-casework-note="3" aria-pressed="false"><strong>Service network overview</strong><small>Write the current conclusion</small></button></div><button id="housingHeatmapBoardCapture" class="action primary" type="button">Registration heatmap snapshot</button><ol id="housingHeatmapBoardLog" class="housing-heatmap-board__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>Housing service network FIELD INDEX</span></aside></div>
  </main>
  <script>
    'use strict';
    const statusOutput = document.querySelector('#status');
    const announce = message => { statusOutput.textContent = message; };
    /* 11DZ_CORE_SCRIPT_START:dashboards-admin-calendar-heatmap */
const heatValues=[2,4,1,3,0,2,4,1,3,0,2,4,1,3,0,2,4,1,3,0,2,4,1,3,0,2,4,1,3,0,2];const heatCells=[...document.querySelectorAll('.calendar-heatmap button')];function renderHeatWeeks(){const weeks=Array.from({length:5},(_,week)=>heatValues.slice(week*7,week===4?31:(week+1)*7).reduce((sum,value)=>sum+value,0));document.querySelector('#heatmapWeeks').replaceChildren(...weeks.map((value,index)=>{const item=document.createElement('li');item.textContent='No. '+(index+1)+' Week · Total '+value;return item;}));document.querySelector('#heatmapWeekSummary').textContent='First Week Cumulative '+weeks[0];}heatCells.forEach((cell,index)=>cell.addEventListener('click',()=>{heatCells.forEach(item=>item.removeAttribute('aria-selected'));cell.setAttribute('aria-selected','true');const week=Math.min(4,Math.floor(index/7));document.querySelector('#heatmapSelection').textContent='7 month '+(index+1)+' Day · Activity '+cell.dataset.heat;document.querySelector('#heatmapWeekSummary').textContent='No. '+(week+1)+' Weekly total '+heatValues.slice(week*7,week===4?31:(week+1)*7).reduce((sum,value)=>sum+value,0);announce(document.querySelector('#heatmapSelection').textContent);}));renderHeatWeeks();
/* 11DZ_CORE_SCRIPT_END */
const workflowBridgeSpec={"name":"dashboards-admin-calendar-heatmap","selector":"[data-core-bridge=\"dashboards-admin-calendar-heatmap\"]","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 workflowGuideCore=document.querySelector('#workflowCore');const workflowGuideStages=["Housing service network monitoring view","Housing Service Grid Handling View","Housing Services Network Review View"];const workflowGuideState={step:0,completed:new Set(),evidence:new Map(),consumedVersion:0};function workflowGuideDrive(){const step=workflowGuideState.step;workflowGuideCore.dataset.guideStep=String(step);document.querySelector('#workflowGuideInstruction').textContent='Please complete the main example ‘'+workflowGuideStages[step]+'Related actions.”';document.querySelectorAll('[data-workflow-guide-step]').forEach((item,index)=>{item.classList.toggle('is-complete',workflowGuideState.completed.has(index));if(index===step)item.setAttribute('aria-current','step');else item.removeAttribute('aria-current');});document.querySelector('#workflowGuideBack').disabled=step===0;document.querySelector('#workflowGuideNext').textContent=step===workflowGuideStages.length-1?'Application Panel':'Complete this step';const percent=Math.round(workflowGuideState.completed.size/workflowGuideStages.length*100);const progress=document.querySelector('#workflowGuideProgress');progress.setAttribute('aria-valuenow',String(percent));progress.querySelector('i').style.width=percent+'%';document.querySelector('#workflowGuideSummary').textContent=workflowGuideState.completed.size+' / '+workflowGuideStages.length+' Step complete · '+workflowBridgeSummary();announce('Current Step for Housing Service Grid:'+workflowGuideStages[step]);}function workflowGuideAdvance(direction){if(direction>0){const bridge=workflowBridgeActivate();const version=Number(workflowGuideCore.dataset.workflowVersion||0);if(version<=workflowGuideState.consumedVersion){announce('Please complete the visible state change in the main example first');return;}workflowGuideState.consumedVersion=version;workflowGuideState.completed.add(workflowGuideState.step);announce('Main case changes recorded · '+bridge.summary);}workflowGuideState.step=Math.max(0,Math.min(workflowGuideStages.length-1,workflowGuideState.step+direction));workflowGuideDrive();}document.querySelector('#workflowGuideBack').addEventListener('click',()=>workflowGuideAdvance(-1));document.querySelector('#workflowGuideNext').addEventListener('click',()=>workflowGuideAdvance(1));document.querySelector('#workflowGuideEvidenceForm').addEventListener('submit',event=>{event.preventDefault();const version=Number(workflowGuideCore.dataset.workflowVersion||0);if(version<=workflowGuideState.consumedVersion){announce('Evidence not saved: the main example has no new changes yet');return;}const text=document.querySelector('#workflowGuideEvidence').value.trim();workflowGuideState.evidence.set(workflowGuideState.step,text||'Visible status check completed');workflowGuideState.completed.add(workflowGuideState.step);workflowGuideState.consumedVersion=version;workflowGuideDrive();announce('Evidence for this step has been saved · '+workflowBridgeSummary());});document.querySelector('#workflowGuideDetails').addEventListener('toggle',event=>announce(event.currentTarget.open?'Acceptance requirements expanded':'Acceptance requirements collapsed'));workflowGuideDrive();
workflowBridgeReset();
const caseworkShell=document.querySelector('#housingHeatmapBoard');const caseworkScale=document.querySelector('#housingHeatmapBoardScale');const caseworkScaleValue=document.querySelector('#housingHeatmapBoardScaleValue');const caseworkLog=document.querySelector('#housingHeatmapBoardLog');const caseworkModeButtons=[...caseworkShell.querySelectorAll('[data-casework-mode]')];const caseworkNotes=[...caseworkShell.querySelectorAll('[data-casework-note]')];const caseworkLabels=["Housing Service Network Progress","Housing Service Network Reminder","Housing Service Network Favorites","Service network 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('#housingHeatmapBoardCapture').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