Prompt specification
Build or customize the Three.js 3D scene "Building bar and open courtyard tile" inside the active workspace.
Engineering Constraints:
1. Runtime & Orbit: Use Three.js r160 with OrbitControls (damping enabled) and ACESFilmicToneMapping.
2. Frame Timing: Drive all motion strictly with clock.getDelta() so animation speed is FPS-independent.
3. Viewport Hygiene: Handle window resize cleanly, cap DPR at Math.min(window.devicePixelRatio, 2), and dispose geometries/materials/renderer on unmount.
Scene Metadata:
Scene: Building bar and open courtyard tile
Category: Voxel Worlds · Style: Voxel 3D
License: MIT · Reference: https://three3d.app/scene/building-bar-and-open-courtyard-tile-x2229
Scene Description Prompt:
Building bar and open courtyard tile. Place a simple building bar beside a small enclosed courtyard massing. Keep their footprint outlines visible and show the open space each arrangement leaves on the site. Please build this with Three.js from cdnjs in one self-contained HTML file, using visible voxel blocks.
Working Three.js Starter (building-bar-and-open-courtyard-tile-x2229):
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Building Bar + Open Courtyard</title>
<style>
:root {
--ink: #26312f;
--muted: #66716e;
--paper: rgba(250, 248, 242, 0.91);
--line: rgba(38, 49, 47, 0.15);
--amber: #c87942;
--teal: #329d98;
}
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background: #e9e5dc;
color: var(--ink);
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", sans-serif;
}
#app,
#scene {
position: fixed;
inset: 0;
}
canvas {
display: block;
width: 100%;
height: 100%;
touch-action: none;
cursor: grab;
}
canvas.dragging {
cursor: grabbing;
}
.panel {
position: fixed;
z-index: 10;
background: var(--paper);
border: 1px solid var(--line);
box-shadow: 0 14px 40px rgba(45, 51, 48, 0.09);
backdrop-filter: blur(16px);
}
.intro {
top: 22px;
left: 22px;
width: min(390px, calc(100vw - 44px));
padding: 18px 20px 17px;
border-radius: 16px;
}
.eyebrow {
margin-bottom: 7px;
color: var(--amber);
font-size: 10px;
font-weight: 800;
letter-spacing: 0.18em;
text-transform: uppercase;
}
h1 {
margin: 0;
font-size: clamp(24px, 2.4vw, 34px);
font-weight: 650;
letter-spacing: -0.045em;
line-height: 1.04;
}
.intro p {
margin: 11px 0 15px;
color: var(--muted);
font-size: 12px;
line-height: 1.55;
}
.metrics {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.metric {
padding: 10px 11px;
border: 1px solid var(--line);
border-radius: 10px;
background: rgba(255, 255, 255, 0.38);
}
.metric strong {
display: block;
margin-bottom: 3px;
font-size: 13px;
}
.metric span {
color: var(--muted);
font-size: 10px;
line-height: 1.35;
}
.toolbar {
left: 50%;
bottom: 22px;
display: flex;
align-items: center;
gap: 6px;
padding: 8px;
border-radius: 14px;
transform: translateX(-50%);
}
.toolbar button,
.toggle {
border: 0;
color: var(--ink);
font: inherit;
font-size: 11px;
font-weight: 650;
white-space: nowrap;
}
.toolbar button {
padding: 9px 11px;
border-radius: 9px;
background: transparent;
cursor: pointer;
}
.toolbar button:hover {
background: rgba(38, 49, 47, 0.07);
}
.toolbar button.active {
color: white;
background: var(--ink);
}
.divider {
width: 1px;
height: 25px;
margin: 0 3px;
background: var(--line);
}
.toggle {
display: flex;
align-items: center;
gap: 6px;
padding: 0 6px;
cursor: pointer;
user-select: none;
}
.toggle input {
width: 14px;
height: 14px;
margin: 0;
accent-color: var(--teal);
}
.legend {
right: 22px;
bottom: 22px;
width: 205px;
padding: 13px 15px;
border-radius: 13px;
}
.legend-title {
margin-bottom: 9px;
font-size: 9px;
font-weight: 800;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.legend-row {
display: flex;
align-items: center;
gap: 8px;
margin-top: 7px;
color: var(--muted);
font-size: 10px;
}
.swatch {
width: 19px;
height: 8px;
border-radius: 2px;
}
.swatch.outline {
height: 0;
border-top: 2px dashed var(--amber);
border-radius: 0;
}
.swatch.open {
background: rgba(50, 157, 152, 0.28);
border: 1px solid rgba(50, 157, 152, 0.6);
}
.swatch.court {
background: rgba(50, 157, 152, 0.65);
}
.hint {
top: 22px;
right: 22px;
padding: 10px 13px;
border-radius: 11px;
color: var(--muted);
font-size: 10px;
line-height: 1.5;
}
#labels {
position: absolute;
inset: 0;
z-index: 4;
overflow: hidden;
pointer-events: none;
}
.world-label {
position: absolute;
display: flex;
align-items: center;
gap: 9px;
min-width: max-content;
padding: 8px 10px;
border: 1px solid rgba(38, 49, 47, 0.14);
border-radius: 10px;
background: rgba(250, 248, 242, 0.92);
box-shadow: 0 8px 24px rgba(38, 49, 47, 0.1);
transform: translate(-50%, -50%);
backdrop-filter: blur(8px);
}
.world-label .number {
display: grid;
width: 23px;
height: 23px;
place-items: center;
border-radius: 7px;
color: white;
background: var(--ink);
font-size: 9px;
font-weight: 800;
}
.world-label strong {
display: block;
font-size: 10px;
letter-spacing: 0.035em;
}
.world-label small {
display: block;
margin-top: 2px;
color: var(--muted);
font-size: 8px;
letter-spacing: 0.04em;
}
.world-label.open-label {
padding: 6px 8px;
border-color: rgba(50, 157, 152, 0.28);
background: rgba(235, 249, 246, 0.9);
box-shadow: none;
}
.world-label.open-label strong {
color: #247b77;
font-size: 8px;
letter-spacing: 0.12em;
}
@media (max-width: 900px) {
.legend,
.hint {
display: none;
}
.toolbar {
bottom: 14px;
max-width: calc(100vw - 24px);
overflow-x: auto;
}
}
@media (max-width: 600px) {
.intro {
top: 12px;
left: 12px;
width: calc(100vw - 24px);
padding: 14px 15px;
}
.intro p,
.metrics {
display: none;
}
h1 {
font-size: 23px;
}
.toolbar {
gap: 2px;
padding: 6px;
}
.toolbar button {
padding: 8px 9px;
font-size: 10px;
}
.toggle {
font-size: 0;
}
}
</style>
</head>
<body>
<main id="app">
<div id="scene" aria-label="Interactive Three.js architectural massing study"></div>
<div id="labels"></div>
<section class="panel intro">
<div class="eyebrow">Urban Void Study / 02</div>
<h1>Building bar<br />+ open courtyard</h1>
<p>
Two voxel massing arrangements shown on adjacent site tiles.
Dashed lines identify footprints; translucent teal areas identify
residual open ground and the enclosed courtyard.
</p>
<div class="metrics">
<div class="metric">
<strong>9 × 3 modules</strong>
<span>Linear building bar footprint</span>
</div>
<div class="metric">
<strong>4 × 4 modules</strong>
<span>Open court within perimeter massing</span>
</div>
</div>
</section>
<div class="panel hint">
Drag to orbit · Shift/right-drag to pan<br />
Scroll to zoom · R to reset
</div>
<nav class="panel toolbar" aria-label="Scene controls">
<button class="active" data-view="overview">Overview</button>
<button data-view="bar">Bar</button>
<button data-view="court">Courtyard</button>
<button data-view="top">Top</button>
<div class="divider"></div>
<label class="toggle">
<input id="openToggle" type="checkbox" checked />
Open space
</label>
<label class="toggle">
<input id="footprintToggle" type="checkbox" checked />
Footprints
</label>
</nav>
<aside class="panel legend">
<div class="legend-title">Drawing Key</div>
<div class="legend-row">
<span class="swatch outline"></span>
Visible footprint outline
</div>
<div class="legend-row">
<span class="swatch open"></span>
Residual open ground
</div>
<div class="legend-row">
<span class="swatch court"></span>
Enclosed courtyard
</div>
</aside>
</main>
<script type="module">
import * as THREE from
"https://cdnjs.cloudflare.com/ajax/libs/three.js/0.160.0/three.module.min.js";
// -------------------------------------------------------------------------
// Renderer and scene
// -------------------------------------------------------------------------
const sceneHost = document.querySelector("#scene");
const labelsHost = document.querySelector("#labels");
const scene = new THREE.Scene();
scene.background = new THREE.Color(0xe9e5dc);
scene.fog = new THREE.Fog(0xe9e5dc, 38, 75);
const camera = new THREE.OrthographicCamera(-15, 15, 10, -10, 0.1, 120);
const renderer = new THREE.WebGLRenderer({
antialias: true,
alpha: false,
powerPreference: "high-performance"
});
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.outputColorSpace = THREE.SRGBColorSpace;
renderer.toneMapping = THREE.ACESFilmicToneMapping;
renderer.toneMappingExposure = 1.08;
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
renderer.domElement.setAttribute("aria-label", "Voxel building massing model");
sceneHost.appendChild(renderer.domElement);
// -------------------------------------------------------------------------
// Lighting
// -------------------------------------------------------------------------
const hemisphere = new THREE.HemisphereLight(0xfff9ed, 0x8d9c98, 2.2);
scene.add(hemisphere);
const keyLight = new THREE.DirectionalLight(0xfff3dc, 3.4);
keyLight.position.set(-11, 23, 14);
keyLight.castShadow = true;
keyLight.shadow.mapSize.set(2048, 2048);
keyLight.shadow.camera.left = -25;
keyLight.shadow.camera.right = 25;
keyLight.shadow.camera.top = 25;
keyLight.shadow.camera.bottom = -25;
keyLight.shadow.camera.near = 1;
keyLight.shadow.camera.far = 60;
keyLight.shadow.bias = -0.00035;
keyLight.shadow.normalBias = 0.025;
scene.add(keyLight);
const fillLight = new THREE.DirectionalLight(0xbfd7dc, 0.8);
fillLight.position.set(16, 10, -14);
scene.add(fillLight);
// -------------------------------------------------------------------------
// Groups for user-selectable overlays
// -------------------------------------------------------------------------
const openGroup = new THREE.Group();
const footprintGroup = new THREE.Group();
scene.add(openGroup, footprintGroup);
// -------------------------------------------------------------------------
// Geometry helpers
// -------------------------------------------------------------------------
const tileSize = 12;
const barCenter = -7;
const courtCenter = 7;
function createTile(centerX, accentColor) {
const baseGeometry = new THREE.BoxGeometry(tileSize, 0.4, tileSize);
const baseMaterial = new THREE.MeshStandardMaterial({
color: 0xf8f5ee,
roughness: 0.93,
metalness: 0
});
const base = new THREE.Mesh(baseGeometry, baseMaterial);
base.position.set(centerX, -0.2, 0);
base.receiveShadow = true;
scene.add(base);
const edge = new THREE.LineSegments(
new THREE.EdgesGeometry(baseGeometry),
new THREE.LineBasicMaterial({
color: 0x64706c,
transparent: true,
opacity: 0.24
})
);
edge.position.copy(base.position);
scene.add(edge);
const grid = new THREE.GridHelper(
tileSize,
tileSize,
0x7f918c,
0xb8b8ae
);
grid.position.set(centerX, 0.012, 0);
grid.material.transparent = true;
grid.material.opacity = 0.23;
grid.material.depthWrite = false;
scene.add(grid);
const accent = new THREE.Mesh(
new THREE.BoxGeometry(3.8, 0.035, 0.16),
new THREE.MeshBasicMaterial({ color: accentColor })
);
accent.position.set(centerX, 0.018, 5.91);
scene.add(accent);
}
function createFill(
parent,
color,
opacity,
centerX,
centerZ,
width,
depth,
y = 0.022
) {
const material = new THREE.MeshBasicMaterial({
color,
transparent: true,
opacity,
depthWrite: false,
side: THREE.DoubleSide
});
const mesh = new THREE.Mesh(
new THREE.PlaneGeometry(width, depth),
material
);
mesh.rotation.x = -Math.PI / 2;
mesh.position.set(centerX, y, centerZ);
mesh.renderOrder = 2;
parent.add(mesh);
return mesh;
}
function createOutline(
parent,
color,
centerX,
centerZ,
width,
depth,
dashed = true,
y = 0.052
) {
const halfW = width / 2;
const halfD = depth / 2;
const points = [
new THREE.Vector3(centerX - halfW, y, centerZ - halfD),
new THREE.Vector3(centerX + halfW, y, centerZ - halfD),
new THREE.Vector3(centerX + halfW, y, centerZ + halfD),
new THREE.Vector3(centerX - halfW, y, centerZ + halfD),
new THREE.Vector3(centerX - halfW, y, centerZ - halfD)
];
const geometry = new THREE.BufferGeometry().setFromPoints(points);
const material = dashed
? new THREE.LineDashedMaterial({
color,
dashSize: 0.28,
gapSize: 0.14,
transparent: true,
opacity: 0.95,
depthTest: true
})
: new THREE.LineBasicMaterial({
color,
transparent: true,
opacity: 0.9
});
const line = new THREE.Line(geometry, material);
line.computeLineDistances();
line.renderOrder = 5;
parent.add(line);
return line;
}
function createVoxelMass({
centerX,
columns,
rows,
perimeterOnly,
palette
}) {
const unit = 0.86;
const pitch = 0.92;
const layers = 3;
const geometry = new THREE.BoxGeometry(unit, unit, unit);
const materials = palette.map(
(color) =>
new THREE.MeshStandardMaterial({
color,
roughness: 0.87,
metalness: 0.02
})
);
const group = new THREE.Group();
for (let row = 0; row < rows; row++) {
for (let column = 0; column < columns; column++) {
const isInterior =
row > 0 &&
row < rows - 1 &&
column > 0 &&
column < columns - 1;
if (perimeterOnly && isInterior) continue;
const x =
centerX + (column - (columns - 1) / 2) * pitch;
const z = (row - (rows - 1) / 2) * pitch;
for (let layer = 0; layer < layers; layer++) {
const materialIndex =
(column * 7 + row * 11 + layer * 5) % materials.length;
const block = new THREE.Mesh(
geometry,
materials[materialIndex]
);
block.position.set(
x,
unit / 2 + 0.035 + layer * (unit + 0.045),
z
);
block.castShadow = true;
block.receiveShadow = true;
group.add(block);
}
}
}
scene.add(group);
return group;
}
// -------------------------------------------------------------------------
// Site and comparison tiles
// -------------------------------------------------------------------------
const ground = new THREE.Mesh(
new THREE.PlaneGeometry(80, 60),
new THREE.MeshStandardMaterial({
color: 0xe9e5dc,
roughness: 1
})
);
ground.rotation.x = -Math.PI / 2;
ground.position.y = -0.41;
ground.receiveShadow = true;
scene.add(ground);
createTile(barCenter, 0xc87942);
createTile(courtCenter, 0x329d98);
// Residual open ground around each arrangement.
createFill(openGroup, 0x43aaa4, 0.13, barCenter, 0, 11.25, 11.25);
createFill(openGroup, 0x43aaa4, 0.13, courtCenter, 0, 11.25, 11.25);
// Bar footprint fill and visible dashed outline.
createFill(
footprintGroup,
0xc87942,
0.3,
barCenter,
0,
8.52,
2.94
);
createOutline(
footprintGroup,
0xc87942,
barCenter,
0,
8.52,
2.94
);
// Courtyard outer footprint.
createFill(
footprintGroup,
0xc87942,
0.27,
courtCenter,
0,
5.76,
5.76
);
createOutline(
footprintGroup,
0xc87942,
courtCenter,
0,
5.76,
5.76
);
// Enclosed open courtyard.
createFill(
openGroup,
0x279f99,
0.55,
courtCenter,
0,
3.9,
3.9,
0.034
);
createOutline(
openGroup,
0x176f6c,
courtCenter,
0,
3.9,
3.9,
false,
0.064
);
const courtGrid = new THREE.GridHelper(
3.9,
4,
0x176f6c,
0x176f6c
);
courtGrid.position.set(courtCenter, 0.066, 0);
courtGrid.material.transparent = true;
courtGrid.material.opacity = 0.3;
courtGrid.material.depthWrite = false;
openGroup.add(courtGrid);
// Voxel masses.
createVoxelMass({
centerX: barCenter,
columns: 9,
rows: 3,
perimeterOnly: false,
palette: [0xc96845, 0xd47750, 0xe08a61, 0xb95e3f]
});
createVoxelMass({
centerX: courtCenter,
columns: 6,
rows: 6,
perimeterOnly: true,
palette: [0x6f899a, 0x7d96a5, 0x647f91, 0x8aa0ac]
});
// -------------------------------------------------------------------------
// DOM labels projected from world coordinates
// -------------------------------------------------------------------------
const worldLabels = [];
function addWorldLabel({
position,
number,
title,
subtitle,
className = ""
}) {
const element = document.createElement("div");
element.className = `world-label ${className}`.trim();
if (number) {
const numberElement = document.createElement("div");
numberElement.className = "number";
numberElement.textContent = number;
element.appendChild(numberElement);
}
const copy = document.createElement("div");
copy.innerHTML = `
<strong>${title}</strong>
${subtitle ? `<small>${subtitle}</small>` : ""}
`;
element.appendChild(copy);
labelsHost.appendChild(element);
worldLabels.push({
element,
position: new THREE.Vector3(...position),
openLabel: className.includes("open-label")
});
}
addWorldLabel({
position: [barCenter, 3.35, -0.4],
number: "01",
title: "BUILDING BAR",
subtitle: "9 × 3 VOXEL MODULES"
});
addWorldLabel({
position: [courtCenter, 3.35, -0.4],
number: "02",
title: "OPEN COURTYARD",
subtitle: "PERIMETER MASSING"
});
addWorldLabel({
position: [barCenter, 0.16, 4.1],
title: "RESIDUAL OPEN GROUND",
className: "open-label"
});
addWorldLabel({
position: [courtCenter, 0.17, 0],
title: "4 × 4 OPEN COURT",
className: "open-label"
});
function updateWorldLabels() {
const width = window.innerWidth;
const height = window.innerHeight;
for (const label of worldLabels) {
const projected = label.position.clone().project(camera);
const visible =
projected.z > -1 &&
projected.z < 1 &&
(!label.openLabel || openGroup.visible);
label.element.style.display = visible ? "flex" : "none";
if (!visible) continue;
const x = (projected.x * 0.5 + 0.5) * width;
const y = (-projected.y * 0.5 + 0.5) * height;
label.element.style.left = `${x}px`;
label.element.style.top = `${y}px`;
}
}
// -------------------------------------------------------------------------
// Custom orthographic orbit, pan, and zoom controls
// -------------------------------------------------------------------------
const controls = {
target: new THREE.Vector3(0, 0.8, 0),
radius: 34,
theta: 0.62,
phi: 0.82,
baseViewSize: 18.5,
fitWidth: 29
};
let dragging = false;
let dragButton = 0;
let previousX = 0;
let previousY = 0;
function updateCamera() {
const aspect = window.innerWidth / window.innerHeight;
const viewSize = Math.max(
controls.baseViewSize,
controls.fitWidth / aspect
);
camera.left = (-viewSize * aspect) / 2;
camera.right = (viewSize * aspect) / 2;
camera.top = viewSize / 2;
camera.bottom = -viewSize / 2;
const sinPhi = Math.sin(controls.phi);
camera.position.set(
controls.target.x +
controls.radius * sinPhi * Math.sin(controls.theta),
controls.target.y + controls.radius * Math.cos(controls.phi),
controls.target.z +
controls.radius * sinPhi * Math.cos(controls.theta)
);
camera.lookAt(controls.target);
camera.updateProjectionMatrix();
camera.updateMatrixWorld();
}
function setView(name) {
document.querySelectorAll("[data-view]").forEach((button) => {
button.classList.toggle("active", button.dataset.view === name);
});
if (name === "bar") {
controls.target.set(barCenter, 0.8, 0);
controls.baseViewSize = 13.2;
controls.fitWidth = 13.5;
controls.theta = 0.62;
controls.phi = 0.82;
} else if (name === "court") {
controls.target.set(courtCenter, 0.8, 0);
controls.baseViewSize = 13.2;
controls.fitWidth = 13.5;
controls.theta = 0.62;
controls.phi = 0.82;
} else if (name === "top") {
controls.target.set(0, 0, 0);
controls.baseViewSize = 18.5;
controls.fitWidth = 29;
controls.theta = 0.001;
controls.phi = 0.075;
} else {
controls.target.set(0, 0.8, 0);
controls.baseViewSize = 18.5;
controls.fitWidth = 29;
controls.theta = 0.62;
controls.phi = 0.82;
}
updateCamera();
}
renderer.domElement.addEventListener("contextmenu", (event) => {
event.preventDefault();
});
renderer.domElement.addEventListener("pointerdown", (event) => {
dragging = true;
dragButton = event.button;
previousX = event.clientX;
previousY = event.clientY;
renderer.domElement.classList.add("dragging");
renderer.domElement.setPointerCapture(event.pointerId);
});
renderer.domElement.addEventListener("pointermove", (event) => {
if (!dragging) return;
const deltaX = event.clientX - previousX;
const deltaY = event.clientY - previousY;
previousX = event.clientX;
previousY = event.clientY;
const panMode =
event.shiftKey ||
dragButton === 2 ||
dragButton === 1;
if (panMode) {
const aspect = window.innerWidth / window.innerHeight;
const viewSize = Math.max(
controls.baseViewSize,
controls.fitWidth / aspect
);
const scale = (viewSize * 0.85) / window.innerHeight;
const right = new THREE.Vector3()
.setFromMatrixColumn(camera.matrix, 0);
right.y = 0;
right.normalize();
const forward = new THREE.Vector3();
camera.getWorldDirection(forward);
forward.y = 0;
forward.normalize();
controls.target.addScaledVector(right, -deltaX * scale);
controls.target.addScaledVector(forward, -deltaY * scale);
} else {
controls.theta -= deltaX * 0.007;
controls.phi = THREE.MathUtils.clamp(
controls.phi - deltaY * 0.006,
0.075,
1.35
);
}
updateCamera();
});
function endDrag(event) {
dragging = false;
renderer.domElement.classList.remove("dragging");
if (
event.pointerId !== undefined &&
renderer.domElement.hasPointerCapture(event.pointerId)
) {
renderer.domElement.releasePointerCapture(event.pointerId);
}
}
renderer.domElement.addEventListener("pointerup", endDrag);
renderer.domElement.addEventListener("pointercancel", endDrag);
renderer.domElement.addEventListener(
"wheel",
(event) => {
event.preventDefault();
const factor = Math.exp(event.deltaY * 0.001);
controls.baseViewSize = THREE.MathUtils.clamp(
controls.baseViewSize * factor,
6,
42
);
updateCamera();
},
{ passive: false }
);
document.querySelectorAll("[data-view]").forEach((button) => {
button.addEventListener("click", () => {
setView(button.dataset.view);
});
});
document.querySelector("#openToggle").addEventListener("change", (event) => {
openGroup.visible = event.target.checked;
});
document
.querySelector("#footprintToggle")
.addEventListener("change", (event) => {
footprintGroup.visible = event.target.checked;
});
window.addEventListener("keydown", (event) => {
if (event.target instanceof HTMLInputElement) return;
const key = event.key.toLowerCase();
if (key === "r") setView("overview");
if (key === "1") setView("overview");
if (key === "2") setView("bar");
if (key === "3") setView("court");
if (key === "0") setView("top");
});
window.addEventListener("resize", () => {
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
renderer.setSize(window.innerWidth, window.innerHeight);
updateCamera();
});
// -------------------------------------------------------------------------
// Render loop
// -------------------------------------------------------------------------
updateCamera();
renderer.setAnimationLoop(() => {
updateCamera();
updateWorldLabels();
renderer.render(scene, camera);
});
</script>
</body>
</html>
```