Person Clock

by Chantal Roth

HTML

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8"/>
  <meta name="viewport" content="width=device-width,initial-scale=1"/>
  <title>Running Clock</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>

  <style>
    html, body {
      margin: 0;
      height: 100%;
      overflow: hidden;
      background: #05060a;
    }

    #c {
      width: 100vw;
      height: 100vh;
      display: block;
      touch-action: none;
      user-select: none;
    }

    #splitDivider {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 1px;
      display: none;
      background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.26), transparent);
      pointer-events: none;
      z-index: 1;
    }

    #splitDivider.isVisible {
      display: block;
    }

    #paneLabels {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 14px;
      display: none;
      pointer-events: none;
      z-index: 2;
      font-family: "Segoe UI", system-ui, sans-serif;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.06em;
      color: rgba(245, 250, 255, 0.92);
      text-transform: uppercase;
    }

    #paneLabels.isVisible {
      display: block;
    }

    .paneLabel {
      position: absolute;
      bottom: 0;
      padding: 7px 10px;
      border-radius: 12px;
      background: rgba(5, 10, 18, 0.52);
      border: 1px solid rgba(255,255,255,0.10);
      backdrop-filter: blur(12px);
      box-shadow: 0 14px 32px rgba(0,0,0,0.30);
      transform: translateX(-50%);
      white-space: nowrap;
    }

    #labPaneLabel {
      left: 25%;
    }

    #followPaneLabel {
      left: 75%;
    }

    #overlay {
      position: absolute;
      left: 14px;
      top: 14px;
  ...