File size: 17,353 Bytes
2753668 | 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Housing Market | PrintHome Time Optimizer</title>
<style>
:root{
--bg:#ffffff; --card:#ffffff; --card2:#fff7f7; --text:#1f1f1f;
--muted:#666666; --line:#f0d3d3; --accent:#c81e1e; --accent2:#ef4444;
--danger:#c81e1e; --shadow:0 14px 38px rgba(200,30,30,.08);
}
*{box-sizing:border-box}
body{
margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
background:#ffffff;
color:var(--text);min-height:100vh;
}
.wrap{max-width:1180px;margin:0 auto;padding:34px 20px 56px}
.hero{position:relative;display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:24px}
.badge{display:inline-block;padding:6px 10px;border:1px solid #efb3b3;border-radius:999px;color:#c81e1e;background:#fff5f5;font-size:12px;letter-spacing:.04em}
h1{font-size:clamp(30px,5vw,54px);line-height:1.02;margin:12px 0 10px;letter-spacing:-.04em}
.sub{max-width:720px;color:var(--muted);font-size:16px;line-height:1.55}
.grid{display:grid;grid-template-columns:1.05fr .95fr;gap:20px}
.panel{background:linear-gradient(180deg,#ffffff,#fffafa);border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:var(--shadow)}
.panel h2{margin:0 0 4px;font-size:19px}.hint{color:var(--muted);font-size:13px;margin-bottom:18px}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.field{background:#ffffff;border:1px solid #f1d0d0;border-radius:14px;padding:12px}
label{display:block;font-size:12px;color:#8a4b4b;margin-bottom:8px}
input,select{width:100%;background:transparent;border:0;color:#c81e1e;font-size:22px;font-weight:700;outline:none}
select{font-size:16px;appearance:auto}
select option{color:#111;background:#fff}
.unit{font-size:11px;color:#8a8a8a;margin-top:4px}
.rangeRow{margin-top:14px;padding:14px;background:#fffafa;border:1px solid #f1d0d0;border-radius:14px}
.rangeTop{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#7a4545;margin-bottom:10px}
input[type=range]{accent-color:var(--accent);height:8px}
.actions{display:flex;gap:10px;margin-top:16px}
button{border:0;border-radius:12px;padding:12px 16px;font-weight:800;cursor:pointer}
.primary{background:linear-gradient(135deg,var(--accent),#ef4444);color:#ffffff;flex:1}
.secondary{background:#ffffff;color:#c81e1e;border:1px solid #efb3b3}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}
.metric{background:#fffafa;border:1px solid #f1d0d0;border-radius:15px;padding:14px}
.metric .k{font-size:11px;color:#8b5a5a;text-transform:uppercase;letter-spacing:.08em}
.metric .v{font-size:28px;font-weight:850;margin-top:5px}.metric .s{font-size:11px;color:#8a8a8a}
.good{color:var(--accent)}.bad{color:var(--danger)}
.timeline{margin:18px 0}
.barLabel{display:flex;justify-content:space-between;font-size:12px;color:#7a4545;margin-bottom:7px}
.bar{height:13px;background:#fff3f3;border-radius:99px;overflow:hidden;border:1px solid #f1d0d0}
.fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#f87171,#c81e1e);transition:width .35s ease}
.fill.base{background:linear-gradient(90deg,#d9d9d9,#bcbcbc)}
.callout{padding:16px;border-radius:16px;background:linear-gradient(135deg,rgba(200,30,30,.05),rgba(239,68,68,.08));border:1px solid #efb3b3;margin-top:15px}
.callout h3{margin:0 0 7px;font-size:15px}.callout p{margin:0;color:#555;line-height:1.48;font-size:13px}
.steps{display:grid;gap:9px;margin-top:16px}
.step{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #f1d0d0;border-radius:12px;background:#fffafa;font-size:13px}
.step span:last-child{font-weight:800}
.note{font-size:11px;color:#777;line-height:1.45;margin-top:15px}
@media(max-width:850px){.grid{grid-template-columns:1fr}.hero{align-items:flex-start;flex-direction:column}.formgrid,.metrics{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.formgrid,.metrics{grid-template-columns:1fr}}
</style>
</head>
<body>
<div class="wrap">
<div class="hero">
<div style="position:absolute;top:0;right:0;font-size:11px;color:#8a4b4b;background:#fff7f7;border:1px solid #f0d3d3;border-radius:999px;padding:6px 10px;">
© 2026 John Darby
</div>
<div>
<div style="display:flex;align-items:center;gap:14px;margin-bottom:12px;flex-wrap:wrap">
<div style="display:flex;align-items:center;gap:12px">
<svg width="64" height="64" viewBox="0 0 72 72" aria-hidden="true">
<rect x="5" y="5" width="62" height="62" rx="16" fill="#fff5f5" stroke="#c81e1e" stroke-width="2"/>
<path d="M16 37 L36 20 L56 37" fill="none" stroke="#c81e1e" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M22 35 V53 H50 V35" fill="none" stroke="#c81e1e" stroke-width="3" stroke-linejoin="round"/>
<rect x="31" y="41" width="10" height="12" rx="2" fill="#c81e1e"/>
<rect x="45" y="30" width="4" height="10" rx="2" fill="#ef4444"/>
<rect x="51" y="25" width="4" height="15" rx="2" fill="#ef4444"/>
<rect x="57" y="19" width="4" height="21" rx="2" fill="#c81e1e"/>
</svg>
<div>
<div style="font-size:30px;font-weight:900;color:#c81e1e;line-height:1">Housing Market</div>
<div style="font-size:12px;color:#7a4545;letter-spacing:.08em;text-transform:uppercase;margin-top:5px">PrintHome Compare</div>
</div>
</div>
</div>
<span class="badge">3D HOME CONSTRUCTION ANALYTICS</span>
<h1 style="color:#222">Time Optimizer</h1>
<div class="sub">Compare traditional construction with a 3D-printed-home schedule, estimate total time saved, and identify the next bottleneck slowing completion.</div>
</div>
</div>
<div class="grid">
<section class="panel">
<h2>Project assumptions</h2>
<div class="hint">Use a contractor estimate when available. Defaults are only demo values.</div>
<div class="formgrid">
<div class="field"><label>Project name</label><input id="projectName" type="text" value="Austin Demo Home" placeholder="Project name"><div class="unit">Name this scenario or construction project.</div></div>
<div class="field"><label>Project location</label><input id="location" type="text" value="Austin, TX" placeholder="City, State"><div class="unit">Used as project context; local benchmarks come in a later version.</div></div>
<div class="field"><label>House type</label>
<select id="houseType" onchange="applyHouseProfile(false)">
<option value="single" selected>Single-family home</option>
<option value="townhouse">Townhouse</option>
<option value="adu">ADU / Small home</option>
<option value="twostory">Two-story single-family</option>
</select>
<div class="unit">Applies transparent demo schedule assumptions.</div>
</div>
<div class="field"><label>Home size</label><input id="area" type="number" value="1500" min="100"><div class="unit">sq ft</div></div>
<div class="field"><label>Conventional total duration</label><input id="convTotal" type="number" value="210" min="1"><div class="unit">calendar days</div></div>
<div class="field"><label>Conventional wall phase</label><input id="convWall" type="number" value="24" min="0"><div class="unit">days</div></div>
<div class="field"><label>3D wall printing</label><input id="printDays" type="number" value="7" min="0"><div class="unit">days</div></div>
<div class="field"><label>Printer mobilization + setup</label><input id="setupDays" type="number" value="4" min="0"><div class="unit">days</div></div>
<div class="field"><label>3D-print contingency</label><input id="riskDays" type="number" value="3" min="0"><div class="unit">weather / calibration / rework days</div></div>
<div class="field"><label>Foundation</label><input id="foundation" type="number" value="18" min="0"><div class="unit">days</div></div>
<div class="field"><label>Roof</label><input id="roof" type="number" value="12" min="0"><div class="unit">days</div></div>
<div class="field"><label>MEP</label><input id="mep" type="number" value="34" min="0"><div class="unit">mechanical / electrical / plumbing days</div></div>
<div class="field"><label>Finishes + closeout</label><input id="finish" type="number" value="46" min="0"><div class="unit">days</div></div>
</div>
<div class="rangeRow">
<div class="rangeTop"><span>Schedule overlap enabled</span><b id="overlapVal">8 days</b></div>
<input id="overlap" type="range" min="0" max="30" value="8">
<div class="unit">Represents work that can safely happen in parallel instead of sequentially.</div>
</div>
<div class="actions">
<button class="primary" onclick="calculate()">Analyze schedule</button>
<button class="secondary" onclick="applyHouseProfile(true)">Apply house profile</button>
<button class="secondary" onclick="resetDemo()">Reset demo</button>
</div>
</section>
<section class="panel">
<h2>Schedule result</h2>
<div class="hint">Transparent estimator — every assumption stays visible.</div>
<div class="callout" style="margin-top:0;margin-bottom:16px">
<h3>Project profile</h3>
<p id="projectProfile">Austin Demo Home • Austin, TX • Single-family home • 1,500 sq ft</p>
</div>
<div class="metrics">
<div class="metric"><div class="k">Time saved</div><div id="saved" class="v good">—</div><div class="s">calendar days</div></div>
<div class="metric"><div class="k">Reduction</div><div id="pct" class="v good">—</div><div class="s">vs conventional</div></div>
<div class="metric"><div class="k">3D total</div><div id="newTotal" class="v">—</div><div class="s">estimated days</div></div>
</div>
<div class="timeline">
<div class="barLabel"><span>Conventional</span><b id="convLabel">—</b></div>
<div class="bar"><div id="convBar" class="fill base" style="width:100%"></div></div>
</div>
<div class="timeline">
<div class="barLabel"><span>3D-print scenario</span><b id="printLabel">—</b></div>
<div class="bar"><div id="printBar" class="fill" style="width:70%"></div></div>
</div>
<div class="callout">
<h3 id="verdictTitle">Run the estimator</h3>
<p id="verdict">The app will show whether wall printing creates meaningful project-level time savings after setup, contingency, and schedule overlap are included.</p>
</div>
<div class="callout">
<h3>Next bottleneck</h3>
<p id="bottleneck">—</p>
</div>
<div class="steps" id="phaseList"></div>
<div class="note">This is an early planning model, not an engineering schedule, contractual estimate, or structural-safety tool. Validate inputs with project-specific contractors, printer vendors, engineers, and local authorities.</div>
</section>
</div>
</div>
<script>
const defaults={
projectName:"Austin Demo Home",
location:"Austin, TX",
houseType:"single",
area:1500,convTotal:210,convWall:24,printDays:7,setupDays:4,riskDays:3,
foundation:18,roof:12,mep:34,finish:46,overlap:8
};
const houseProfiles={
single:{
label:"Single-family home",
area:1500, convTotal:210, convWall:24, printDays:7, setupDays:4,
riskDays:3, foundation:18, roof:12, mep:34, finish:46, overlap:8
},
townhouse:{
label:"Townhouse",
area:1800, convTotal:195, convWall:22, printDays:7, setupDays:4,
riskDays:3, foundation:16, roof:10, mep:32, finish:42, overlap:9
},
adu:{
label:"ADU / Small home",
area:800, convTotal:145, convWall:16, printDays:4, setupDays:3,
riskDays:2, foundation:12, roof:8, mep:24, finish:30, overlap:6
},
twostory:{
label:"Two-story single-family",
area:2400, convTotal:270, convWall:34, printDays:11, setupDays:5,
riskDays:5, foundation:22, roof:15, mep:45, finish:58, overlap:10
}
};
document.getElementById("overlap").addEventListener("input",e=>{
document.getElementById("overlapVal").textContent=e.target.value+" days";
});
function n(id){ return Math.max(0, Number(document.getElementById(id).value)||0); }
function applyHouseProfile(showMessage=true){
const type=document.getElementById("houseType").value;
const p=houseProfiles[type];
// Keep the user's location, but populate demo schedule assumptions for the selected house type.
const map={
area:p.area, convTotal:p.convTotal, convWall:p.convWall, printDays:p.printDays,
setupDays:p.setupDays, riskDays:p.riskDays, foundation:p.foundation, roof:p.roof,
mep:p.mep, finish:p.finish, overlap:p.overlap
};
for(const [k,v] of Object.entries(map)){
document.getElementById(k).value=v;
}
document.getElementById("overlapVal").textContent=p.overlap+" days";
calculate();
if(showMessage){
document.getElementById("verdictTitle").textContent="House profile applied";
document.getElementById("verdict").textContent=
`${p.label} demo assumptions have been loaded. Replace any value with a contractor or vendor estimate when available.`;
}
}
function calculate(){
const convTotal=n("convTotal"), convWall=n("convWall"), printDays=n("printDays"),
setupDays=n("setupDays"), riskDays=n("riskDays"), overlap=n("overlap");
const projectName=(document.getElementById("projectName").value || "Untitled Project").trim();
const location=(document.getElementById("location").value || "Location not entered").trim();
const type=document.getElementById("houseType").value;
const typeLabel=houseProfiles[type].label;
const area=n("area");
document.getElementById("projectProfile").textContent=
`${projectName} • ${location} • ${typeLabel} • ${Math.round(area).toLocaleString()} sq ft`;
// Transparent V2 formula:
// conventional duration - conventional wall phase
// + 3D print duration + printer setup + contingency - schedule overlap
const raw3d = convTotal - convWall + printDays + setupDays + riskDays;
const total3d = Math.max(0, raw3d - overlap);
const saved = convTotal - total3d;
const pct = convTotal>0 ? (saved/convTotal*100) : 0;
document.getElementById("saved").textContent=(saved>=0?Math.round(saved):"-"+Math.abs(Math.round(saved)));
document.getElementById("saved").className="v "+(saved>=0?"good":"bad");
document.getElementById("pct").textContent=(pct>=0?"":"-")+Math.abs(pct).toFixed(1)+"%";
document.getElementById("pct").className="v "+(pct>=0?"good":"bad");
document.getElementById("newTotal").textContent=Math.round(total3d);
document.getElementById("convLabel").textContent=Math.round(convTotal)+" days";
document.getElementById("printLabel").textContent=Math.round(total3d)+" days";
const max = Math.max(convTotal,total3d,1);
document.getElementById("convBar").style.width=(convTotal/max*100)+"%";
document.getElementById("printBar").style.width=(total3d/max*100)+"%";
let title, text;
if(saved>=21){
title="Meaningful schedule reduction";
text=`For this ${typeLabel.toLowerCase()} in ${location}, the entered assumptions save about ${Math.round(saved)} days. Location is currently descriptive only; local benchmark data is not yet applied.`;
} else if(saved>0){
title="Modest schedule reduction";
text=`For this ${typeLabel.toLowerCase()} in ${location}, 3D printing saves about ${Math.round(saved)} days, but setup, contingency, and non-wall work absorb much of the wall-phase advantage.`;
} else {
title="No project-level time advantage yet";
text=`For this ${typeLabel.toLowerCase()} in ${location}, the current assumptions do not shorten the overall schedule. Reduce setup/contingency time or improve downstream coordination before assuming a time benefit.`;
}
document.getElementById("verdictTitle").textContent=title;
document.getElementById("verdict").textContent=text;
const phases=[
["Foundation",n("foundation")],
["3D wall print",printDays],
["Printer setup",setupDays],
["Roof",n("roof")],
["MEP",n("mep")],
["Finishes + closeout",n("finish")],
["3D contingency",riskDays]
].sort((a,b)=>b[1]-a[1]);
const biggest=phases[0];
const improvement=biggest[1]*0.20;
document.getElementById("bottleneck").textContent=
`${biggest[0]} is the largest entered phase at ${Math.round(biggest[1])} days. A 20% improvement there would remove about ${improvement.toFixed(1)} additional days before dependency effects.`;
document.getElementById("phaseList").innerHTML=phases.slice(0,5).map((p,i)=>
`<div class="step"><span>${i+1}. ${p[0]}</span><span>${Math.round(p[1])} days</span></div>`
).join("");
}
function resetDemo(){
document.getElementById("projectName").value=defaults.projectName;
document.getElementById("location").value=defaults.location;
document.getElementById("houseType").value=defaults.houseType;
applyHouseProfile(false);
}
calculate();
</script>
<footer style="text-align:center;padding:28px 12px 34px;color:#8a4b4b;font-size:13px;">
© 2026 John Darby | PrintHome Compare. All rights reserved.
</footer>
</body>
</html>
|