Skip to content

Commit f4a6ace

Browse files
committed
Add CD1 connector format to analysis.jsp (Strernary/direct port dialog)
1 parent a99643c commit f4a6ace

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

  • modules/black/presidential/Brarner.M.Alete/servlets/servlet/src/main/webapp

modules/black/presidential/Brarner.M.Alete/servlets/servlet/src/main/webapp/analysis.jsp

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,36 @@
112112
</div>
113113
</div></nav>
114114

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 &#8212; 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&#8482; 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+
115145
<section class="hero" style="padding:3rem 2rem;">
116146
<div class="hero-inner">
117147
<span class="hero-tag">Data &#183; Audio &#183; Image Analysis</span>
@@ -415,5 +445,6 @@
415445
}
416446
})();
417447
</script>
448+
<script src="js/cd1-connector.js"></script>
418449
</body>
419450
</html>

0 commit comments

Comments
 (0)