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