3 Clocks

by Chantal Roth

HTML

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>SR Simulation: Visual Light Paths</title>
    <script src="https://cdn.jsdelivr.net/npm/three@0.124.0/build/three.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/three@0.124.0/examples/js/controls/OrbitControls.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet">
    <style>
      body { margin:0; padding:0; background:#050510; overflow:hidden; font-family: 'Roboto Mono', monospace; color: #eee; user-select: none; }
      
      #container3d { position:relative; width:100vw; height:100vh; }
      #myCanvas { width:100%; height:100%; display:block; }
      
      /* HUD */
      #hud {
        position: absolute; top: 20px; right: 20px; width: 300px;
        background: rgba(20, 20, 25, 0.9); border-right: 4px solid #444; 
        padding: 20px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.5);
        backdrop-filter: blur(5px); pointer-events: auto; z-index: 10;
      }
      
      .data-row { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 12px; color:#aaa; align-items: center;}
      .data-val { font-weight: bold; color: #fff; font-size: 13px; }
      
      .blue-txt { color: #00ddee; }
      .pink-txt { color: #ff00ff; }
      .green-txt { color: #00ff66; }
      
      .clock-section { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed #333; }

      /* Floating Labels */
      .floating-label {
        position: absolute;
        top: 0; left: 0;
        transform: translate(-50%, -100%);
        font-weight: bold;
        font-size: 16px;
        text-shadow: 0 2px 5px rgba(0,0,0,1.0);
        pointer-events: none;
        white-space: nowrap;
        opacity: 0.9;
        transition: color 0.2s;
      }
      
      .label-ref { color: #00ddee; font-size: 12px; background: rgba(0, 221, 238,...