Archived
108 lines
4.2 KiB
HTML
108 lines
4.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="es">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title data-i18n="title">Bitua 3D Explorer - Interactivo</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="loader">
|
|
<div style="font-weight: 600;" data-i18n="loading">Inicializando Experiencia...</div>
|
|
<div class="progress-bar">
|
|
<div id="progress"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<header>
|
|
<div class="header-logo">
|
|
<img src="Assets/logo-Bitua.avif" alt="Bitua Logo">
|
|
</div>
|
|
<nav class="header-nav">
|
|
<a href="#" class="active" data-i18n="navTitle">Gabinete Inteligente V2.5</a>
|
|
<div class="lang-selector">
|
|
<span id="lang-label">ES</span> ▾
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
|
|
<div id="sidebar" class="collapsed">
|
|
<div id="sidebar-header">
|
|
<h2 id="sidebar-title" data-i18n="simTitle">Simulador de Capacidad</h2>
|
|
<span id="sidebar-toggle-icon">📦</span>
|
|
</div>
|
|
<div id="sidebar-content">
|
|
<div class="input-group">
|
|
<label data-i18n="prodWidth">Ancho del Producto (cm)</label>
|
|
<input type="number" id="prod-w" value="10" min="1">
|
|
</div>
|
|
<div class="input-group">
|
|
<label data-i18n="prodHeight">Alto del Producto (cm)</label>
|
|
<input type="number" id="prod-h" value="15" min="1">
|
|
</div>
|
|
<div class="input-group">
|
|
<label data-i18n="prodDepth">Profundidad del Producto (cm)</label>
|
|
<input type="number" id="prod-d" value="10" min="1">
|
|
</div>
|
|
<button id="btn-simulate" data-i18n="runSim">Ejecutar Simulación</button>
|
|
|
|
<div id="result-panel">
|
|
<span data-i18n="capEst">Estimación de Capacidad:</span> <br>
|
|
<span id="result-count">0</span> <span data-i18n="unitsFit">unidades caben dentro.</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="container">
|
|
<canvas id="three-canvas"></canvas>
|
|
<div id="tooltip" data-i18n="clickInteract">Clic para interactuar</div>
|
|
<div id="lock-annotation"></div>
|
|
<svg id="leader-line">
|
|
<path id="line-path" d=""></path>
|
|
</svg>
|
|
</div>
|
|
|
|
<div class="info-panel">
|
|
<span id="info-content" data-i18n="infoHint">🖱️ Clic para interactuar| Clic derecho para desplazar | Simulador a la derecha</span>
|
|
<button id="btn-home" data-i18n="home">🏠 Inicio</button>
|
|
</div>
|
|
|
|
<div id="camera-debug">
|
|
<h3>
|
|
<span data-i18n="camDebug">Depuración de Cámara</span>
|
|
<button id="btn-copy-debug" data-i18n="copy">COPIAR</button>
|
|
</h3>
|
|
<div><span data-i18n="pos">POS</span>: <span id="cam-pos">0, 0, 0</span></div>
|
|
<div><span data-i18n="tgt">OBJ</span>: <span id="cam-tgt">0, 0, 0</span></div>
|
|
<div id="debug-last-clicked"><span data-i18n="part">Parte</span>: <span id="debug-part-name">none</span></div>
|
|
<div id="debug-save-row">
|
|
<input id="debug-label-input" type="text" data-i18n="labelPlaceholder" placeholder="Etiquetar esta vista..." />
|
|
<button id="btn-save-view" data-i18n="saveView">GUARDAR VISTA</button>
|
|
</div>
|
|
<textarea id="debug-paragraph-input" data-i18n="descPlaceholder" placeholder="Descripción / notas..."></textarea>
|
|
<div id="debug-viewpoints-list"></div>
|
|
<div id="debug-export-row">
|
|
<button id="btn-copy-json" data-i18n="copyJson">COPIAR JSON</button>
|
|
<button id="btn-export-views" data-i18n="exportFile">EXPORTAR ARCHIVO</button>
|
|
</div>
|
|
</div>
|
|
<div id="debug-toggle-hint" data-i18n="debugHint">Presiona 'D' para Coordenadas de Cámara</div>
|
|
|
|
<!-- Scripts -->
|
|
<script type="importmap">
|
|
{
|
|
"imports": {
|
|
"three": "https://unpkg.com/three@0.162.0/build/three.module.js",
|
|
"three/addons/": "https://unpkg.com/three@0.162.0/examples/jsm/",
|
|
"gsap": "https://esm.run/gsap@3.12.5"
|
|
}
|
|
}
|
|
</script>
|
|
<script type="module" src="script.js"></script>
|
|
</body>
|
|
|
|
</html> |