Repository navigation
Expand file tree
/
Copy pathcapability-summary.html
More file actions
47 lines (47 loc) · 10.9 KB
/
Copy pathcapability-summary.html
File metadata and controls
47 lines (47 loc) · 10.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="referrer" content="no-referrer"><title>A4 Battery Summary | Manifold Grace</title>
<style>
*{box-sizing:border-box}html,body{margin:0;background:#101518;font-family:'Segoe UI',Arial,sans-serif;color:#233238}.actions{max-width:794px;margin:20px auto;display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:0 16px;color:#dae8e5;font-size:13px}.actions a,.actions button{color:#b4d9f5;background:none;border:0;font:inherit;cursor:pointer;text-decoration:underline;padding:8px 0}.paper{width:min(794px,100%);min-height:1123px;margin:0 auto 24px;background:#fafaf8;box-shadow:0 18px 35px #0005;font-size:12px;line-height:1.45;display:flex;flex-direction:column}.top{background:#18252a;color:#fff;padding:30px 42px 24px}.accent{height:2px;width:55px;background:#d8e5e1;margin-bottom:15px}.eyebrow{font-size:10px;letter-spacing:.12em;color:#b4cdca;font-weight:700}.top h1{font-family:Georgia,serif;font-size:32px;line-height:1.15;font-weight:400;margin:14px 0 8px;overflow-wrap:anywhere}.top p{font-size:11px;color:#d5e3e0;margin:6px 0}.inside{padding:24px 42px;display:flex;flex-direction:column;flex:1}section{margin-bottom:19px}h2{font-size:10.5px;color:#4f817c;letter-spacing:.055em;text-transform:uppercase;margin:0 0 10px;padding-bottom:7px;border-bottom:1px solid #c7d2d0}p{margin:7px 0}.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.facts strong{font-size:20px;font-weight:500;display:block;color:#18252a}.facts span{font-size:10px;color:#65777b}.scores{width:100%;border-collapse:collapse}.scores th{text-align:left;font-size:10px;color:#65777b}.scores th,.scores td{padding:9px 6px;border-bottom:1px solid #d9dfdd;vertical-align:middle}.scores th:first-child,.scores td:first-child{padding-left:0;width:35%}.bar{width:100px;height:6px;background:#dfe8e5;border-radius:4px;display:inline-block;margin-right:8px}.fill{height:6px;background:#4f817c;border-radius:4px}.formal-entry{font-size:10.5px;margin:7px 0;overflow-wrap:anywhere}.small{font-size:10.5px;color:#65777b}.foot{margin-top:auto;border-top:1px solid #b9c6c4;padding-top:11px;color:#65777b;font-size:9px;display:flex;justify-content:space-between;gap:12px}.foot span{max-width:75%}.empty{border-left:3px solid #4f817c;padding:12px 16px}.embed .actions{display:none}.embed .paper{margin:0;box-shadow:none}
@media(max-width:600px){.paper{min-height:100vh}.top{padding:24px}.inside{padding:22px}.top h1{font-size:27px}.bar{width:70px}.scores th,.scores td{padding:8px 3px}.facts{gap:10px}.facts strong{font-size:18px}}
@page{size:A4;margin:0}
@media print{html,body{background:white}.actions{display:none}.paper{width:210mm;min-height:297mm;margin:0;box-shadow:none;font-size:11px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.top{padding:8mm 11mm 6mm}.inside{padding:6mm 11mm}.top h1{font-size:28px}section{break-inside:avoid;margin-bottom:4mm}.scores th,.scores td{padding:2mm 1.5mm}.foot{font-size:8.5px}}
</style></head><body>
<nav class="actions" aria-label="Summary actions"><a href="human-capability-benchmarking.html#observer-battery">Take the battery ↗</a><button type="button" id="print">Print / save as PDF</button><button type="button" id="copy">Copy summary link</button><span id="action-status" role="status"></span></nav>
<article class="paper" aria-label="One-page participant battery summary"><header class="top"><div class="accent"></div><div class="eyebrow">MANIFOLD GRACE · HUMAN CAPABILITY EXPERIMENT</div><h1 id="participant">Your battery summary</h1><p>Selected results · A4 participant profile</p><p id="session">Complete a battery to create your personal snapshot.</p></header><div class="inside"><div id="content"><p class="empty">No results are attached to this link. <a href="human-capability-benchmarking.html#observer-battery">Complete the battery</a>, then choose “Open my A4 battery summary”.</p></div><footer class="foot"><span>Participant-generated snapshot · scores and supplied references are unverified. Original educational tasks; no diagnosis, IQ estimate or neural classification.</span><span>manifoldgrace.github.io<br>A4 · 1 page</span></footer></div></article>
<script>
(()=>{
const $=id=>document.getElementById(id),domains={'verbal-comprehension':'Verbal comprehension','numerical-reasoning':'Numerical reasoning','abstract-reasoning':'Abstract reasoning','error-detection':'Error detection','perspective-taking':'Perspective-taking'};
const add=(parent,tag,text,cls)=>{const e=document.createElement(tag);if(text!==undefined)e.textContent=text;if(cls)e.className=cls;parent.append(e);return e;};
const section=(parent,title)=>{const s=add(parent,'section');add(s,'h2',title);return s;};
const date=x=>{const d=new Date(x);return Number.isFinite(d.getTime())?d.toLocaleDateString('en-GB',{day:'numeric',month:'short',year:'numeric'}):'Date unavailable';};
const validResults=r=>r&&Object.keys(r).length===5&&Object.keys(domains).every(k=>Number.isInteger(r[k])&&r[k]>=0&&r[k]<=3);
const total=r=>Object.values(r).reduce((a,b)=>a+b,0);
if(window.self!==window.top)document.body.classList.add('embed');
$('print').addEventListener('click',()=>window.print());
$('copy').addEventListener('click',async()=>{try{await navigator.clipboard.writeText(location.href);$('action-status').textContent='Link copied.';}catch{$('action-status').textContent='Copy the address from your browser.';}});
try{
const fragment=location.hash.slice(1);if(!fragment)return;if(fragment.length>16000)throw Error('Oversized result');
const encoded=new URLSearchParams(fragment).get('result');if(!encoded)return;
const raw=atob(encoded.replaceAll('-','+').replaceAll('_','/'));const d=JSON.parse(new TextDecoder('utf-8',{fatal:true}).decode(Uint8Array.from(raw,c=>c.charCodeAt(0))));
if(d.schema!==1||d.version!=='MCQ-v1'||d.results!==null&&!validResults(d.results)||!Array.isArray(d.formal)||d.formal.length>2||!d.results&&!d.formal.length)throw Error('Invalid result');
if(d.first!==null&&!validResults(d.first))throw Error('Invalid baseline');
$('participant').textContent=typeof d.name==='string'?d.name.slice(0,80):'Participant';$('session').textContent=(d.results?'MCQ-v1 · untimed · '+date(d.date):'Formal assessment selection')+' · snapshot '+date(d.created);
const content=$('content');content.replaceChildren();
const overview=section(content,'Selected facts');const facts=add(overview,'div',undefined,'facts');
const fact=(value,label)=>{const e=add(facts,'div');add(e,'strong',value);add(e,'span',label);};
fact(d.results?total(d.results)+'/15':'Not taken','Latest MCQ accuracy');fact(d.results?Math.round(total(d.results)/15*100)+'%':'—','Correct answers, not percentile');fact(Number.isInteger(d.attempts)&&d.attempts>=0?String(d.attempts):'—','Completed attempts recorded');
if(d.results){const s=section(content,'Domain profile · latest completed attempt'),table=add(s,'table',undefined,'scores'),thead=add(table,'thead'),tr=add(thead,'tr');['Domain','Raw score','Accuracy'].forEach(t=>add(tr,'th',t));const tbody=add(table,'tbody');for(const [key,title]of Object.entries(domains)){const row=add(tbody,'tr');add(row,'td',title);add(row,'td',d.results[key]+'/3');const td=add(row,'td'),bar=add(td,'span',undefined,'bar'),fill=add(bar,'span',undefined,'fill');fill.style.display='block';fill.style.width=(d.results[key]/3*100)+'%';add(td,'span',Math.round(d.results[key]/3*100)+'%');}
const max=Math.max(...Object.values(d.results)),highest=Object.keys(domains).filter(k=>d.results[k]===max).map(k=>domains[k]);add(s,'p',highest.length===5?'Equal raw accuracy across all five domains in this attempt.':'Highest raw accuracy in this attempt: '+highest.join(', ')+'.','small');}
const position=section(content,'Comparison & conclusion');
const sample=d.sample;if(sample&&sample.domain in domains&&Number.isFinite(sample.percentile)&&sample.percentile>=0&&sample.percentile<=100&&Number.isInteger(sample.n)&&sample.n>=2&&Number.isFinite(sample.mean)&&Number.isFinite(sample.median)&&Number.isFinite(sample.sd)){
add(position,'p',domains[sample.domain]+': sample midrank P'+sample.percentile.toFixed(1)+' (n='+sample.n+'). Mean '+sample.mean.toFixed(2)+'; median '+sample.median+'; mode '+String(sample.mode).slice(0,30)+'; SD '+sample.sd.toFixed(2)+'.');add(position,'p','Supplied source: '+String(sample.source).slice(0,100)+'. Position applies only to that sample; it is not a national norm.','small');
}else add(position,'p','Population position unavailable: this original battery has no validated population norms. Accuracy percentages describe correct answers, not percentile rank.');
add(position,'p','These results describe performance on a short educational task set. Each domain has only three items; no overall intelligence, diagnosis or career ceiling is established.','small');
const progress=section(content,'Progress & test conditions');
if(d.results&&validResults(d.first)&&d.attempts>1){const change=total(d.results)-total(d.first);add(progress,'p','First recorded attempt ('+date(d.firstDate)+'): '+total(d.first)+'/15 → latest: '+total(d.results)+'/15. Raw change '+(change>=0?'+':'')+change+' correct answers. Repeated identical items may produce practice effects.');}else add(progress,'p','This is the first recorded MCQ attempt, or a formal-only selection. A later comparable attempt can provide a descriptive change from this starting point.');
if(d.rt&&Number.isFinite(d.rt.median)&&d.rt.median>0)add(progress,'p','Browser reaction-time task: median '+Math.round(d.rt.median)+' ms across five trials; device-dependent and not norm-equivalent.');
add(progress,'p','Untimed MCQ; no per-item latency recorded. Sleep, fatigue, attention, testing environment and prior exposure may affect performance.','small');
if(d.formal.length){const fsec=section(content,'Selected professional measurements · participant-entered');for(const f of d.formal){if(!f||!Number.isFinite(f.old)||f.now!==null&&!Number.isFinite(f.now)||typeof f.instrument!=='string')throw Error('Invalid formal measure');const cap=String(f.cap).replaceAll('-',' ').slice(0,45);add(fsec,'p',cap+' · '+f.instrument.slice(0,80)+' · '+date(f.date)+': '+f.old+(f.now!==null?' → '+date(f.nowDate)+': '+f.now:'')+'. '+(f.now!==null?(f.matched?'Comparable follow-up indicated by participant.':'Cross-test/condition comparison; progress not inferred.'):'Earlier assessment baseline.')+' Reference: '+String(f.source).slice(0,100), 'formal-entry');}add(fsec,'p','Formal measurements use their own instruments and reference groups. They are separate from MCQ-v1 and have not been independently verified by this page.','small');}
}catch(e){$('participant').textContent='Summary unavailable';$('session').textContent='This link contains incomplete or invalid results.';$('content').replaceChildren();add($('content'),'p','Return to the battery and generate a fresh summary link.','empty');}
})();
</script></body></html>