|
112 | 112 | </div> |
113 | 113 | </div></nav> |
114 | 114 |
|
| 115 | +<!-- CD1 Connector --> |
| 116 | +<div style="text-align:center;margin:1.5rem 0 0.5rem 0;"> |
| 117 | + <button id="cd1-btn" type="button" aria-pressed="false" style="all:unset;display:block;margin:0 auto;cursor:pointer;padding:0;border:none;background:transparent;transition:transform 0.3s cubic-bezier(0.42,-1.84,0.42,1.84),filter 0.3s ease;"> |
| 118 | + <img src="images/black.button.png" alt="Connector" style="display:block;width:80px;height:80px;border-radius:50%;background:transparent;"/> |
| 119 | + </button> |
| 120 | +</div> |
| 121 | +<div id="cd1-overlay" style="display:none;position:fixed;inset:0;z-index:299;background:transparent;"></div> |
| 122 | +<div id="cd1-dialog" style="display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:300;background:#111118;border:1px solid #27272a;border-radius:12px;padding:1.25rem;width:520px;max-width:90vw;box-shadow:0 8px 32px rgba(0,0,0,0.6);"> |
| 123 | + <div style="font-size:0.9rem;font-weight:600;color:#fff;margin-bottom:0.75rem;">BMA Connector — Analysis Division</div> |
| 124 | + <div style="display:flex;gap:0.5rem;margin-bottom:0.75rem;flex-wrap:wrap;align-items:center;"> |
| 125 | + <select id="cd1-action" style="background:#1a1a24;color:#fff;border:1px solid #27272a;border-radius:8px;padding:0.45rem 2rem 0.45rem 0.75rem;font-size:0.8rem;cursor:pointer;appearance:none;"> |
| 126 | + <option value="connect">Connect</option> |
| 127 | + <option value="disconnect">Disconnect</option> |
| 128 | + <option value="poll">Poll Analysis Queue</option> |
| 129 | + <option value="hardreset">Hard Reset Connection</option> |
| 130 | + </select> |
| 131 | + <button onclick="cd1Send()" style="background:#3b82f6;color:#fff;border:none;border-radius:8px;padding:0.45rem 1rem;font-size:0.8rem;font-weight:600;cursor:pointer;">Send</button> |
| 132 | + <button onclick="cd1Ok()" style="background:#3b82f6;color:#fff;border:none;border-radius:8px;padding:0.45rem 1rem;font-size:0.8rem;font-weight:600;cursor:pointer;">OK</button> |
| 133 | + </div> |
| 134 | + <div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.75rem;"> |
| 135 | + <label style="display:flex;align-items:center;gap:0.4rem;color:#a1a1aa;font-size:0.75rem;cursor:pointer;"> |
| 136 | + <input type="checkbox" id="cd1-direct-port" style="accent-color:#3b82f6;width:14px;height:14px;cursor:pointer;"/> |
| 137 | + Direct Port (bypass Strernary™ 20000) |
| 138 | + </label> |
| 139 | + <span id="cd1-mode-badge" style="font-size:0.65rem;background:#1e3a5f;color:#60a5fa;padding:0.2rem 0.5rem;border-radius:4px;">STRERNARY</span> |
| 140 | + </div> |
| 141 | + <textarea id="cd1-textarea" placeholder="Connection idle..." spellcheck="false" style="width:100%;min-height:140px;background:#ffffff;color:#111;border:1px solid #27272a;border-radius:8px;padding:0.75rem;font-family:monospace;font-size:0.8rem;resize:vertical;"></textarea> |
| 142 | +</div> |
| 143 | +<script>var CD1_MODULE_PORT = "49152";</script> |
| 144 | + |
115 | 145 | <section class="hero" style="padding:3rem 2rem;"> |
116 | 146 | <div class="hero-inner"> |
117 | 147 | <span class="hero-tag">Data · Audio · Image Analysis</span> |
|
415 | 445 | } |
416 | 446 | })(); |
417 | 447 | </script> |
| 448 | +<script src="js/cd1-connector.js"></script> |
418 | 449 | </body> |
419 | 450 | </html> |
0 commit comments