@@ -594,7 +594,6 @@ function Page() {
594594 this . l_snippetPerSlideON = [ ] ; // Running count of ON snippets
595595 this . str_slideIDprefix = "" ;
596596 this . init ( ) ;
597- if ( typeof initializeBridgeSystems === "function" ) initializeBridgeSystems ( ) ;
598597
599598 // DOM obj elements -- Each object has a specific list of page key
600599 // elements that it process to provide page
@@ -911,7 +910,6 @@ Page.prototype = {
911910
912911 DOMID_currentSlide . style . display = "none" ;
913912 DOMID_followingSlide . style . display = "block" ;
914- if ( typeof updateBridgeGraphic === "function" ) updateBridgeGraphic ( index_followingSlide ) ;
915913
916914 // Reset ALL typewriters on the slide we're entering
917915 this . resetAllTypewritersOnSlide ( index_followingSlide ) ;
@@ -1203,88 +1201,3 @@ window.onload = function() {
12031201
12041202// Rescale on window resize
12051203window . addEventListener ( 'resize' , scalePresentation ) ;
1206-
1207- // ============================================================
1208- // HIGH-FIDELITY BRIDGE SYSTEMS (PORTED FROM ARGUS)
1209- // ============================================================
1210-
1211- const BRIDGE_STATE = {
1212- logs : [ ] ,
1213- cycle : 0 ,
1214- interval : null
1215- } ;
1216-
1217- function updateBridgeTelemetry ( ) {
1218- BRIDGE_STATE . cycle ++ ;
1219- const now = new Date ( ) ;
1220- const timeStr = now . getHours ( ) . toString ( ) . padStart ( 2 , '0' ) + ':' +
1221- now . getMinutes ( ) . toString ( ) . padStart ( 2 , '0' ) + ':' +
1222- now . getSeconds ( ) . toString ( ) . padStart ( 2 , '0' ) ;
1223-
1224- // 1. SYS STATUS
1225- const sysEl = document . getElementById ( 'tele-sys' ) ;
1226- if ( sysEl ) {
1227- sysEl . innerHTML = '<span class="dim">[' + timeStr + ']</span><br>' +
1228- 'MODE: <span class="highlight">ACTIVE</span><br>' +
1229- 'CYC: ' + BRIDGE_STATE . cycle . toString ( ) . padStart ( 4 , '0' ) + '<br>' +
1230- 'AUTH: <span class="highlight">TRUSTED</span>' ;
1231- }
1232-
1233- // 2. NET TRAFFIC
1234- const netEl = document . getElementById ( 'tele-net' ) ;
1235- if ( netEl ) {
1236- const rx = ( 42 + Math . random ( ) * 5 ) . toFixed ( 2 ) ;
1237- const tx = ( 12 + Math . random ( ) * 2 ) . toFixed ( 2 ) ;
1238- netEl . innerHTML = 'RX: <span class="highlight">' + rx + ' GB</span><br>' +
1239- 'TX: <span class="highlight">' + tx + ' GB</span><br>' +
1240- 'LAT: ' + Math . floor ( Math . random ( ) * 20 + 5 ) + 'ms' ;
1241- }
1242-
1243- // 3. PROC LOG
1244- const logEl = document . getElementById ( 'tele-log' ) ;
1245- if ( logEl ) {
1246- const events = [ 'HASHING' , 'INDEXING' , 'SIGNING' , 'VERIFYING' , 'PUSHING' , 'MAPPING' , 'PARSING' ] ;
1247- if ( Math . random ( ) > 0.7 ) {
1248- const newLog = '<span class="dim">' + timeStr . slice ( 3 ) + '</span> ' + events [ Math . floor ( Math . random ( ) * events . length ) ] ;
1249- BRIDGE_STATE . logs . push ( newLog ) ;
1250- if ( BRIDGE_STATE . logs . length > 5 ) BRIDGE_STATE . logs . shift ( ) ;
1251- }
1252- logEl . innerHTML = BRIDGE_STATE . logs . join ( '<br>' ) ;
1253- }
1254-
1255- // 4. Global Flicker
1256- document . querySelectorAll ( '.lcars-flicker' ) . forEach ( el => {
1257- if ( Math . random ( ) > 0.9 ) {
1258- const digits = Math . floor ( Math . random ( ) * 2 ) + 4 ;
1259- const max = Math . pow ( 10 , digits ) ;
1260- el . textContent = '-' + Math . floor ( Math . random ( ) * max ) . toString ( ) . padStart ( digits , '0' ) ;
1261- }
1262- } ) ;
1263- }
1264-
1265- function updateBridgeGraphic ( slideIndex ) {
1266- const graphicZone = document . getElementById ( 'lcars-nerd-graphic' ) ;
1267- if ( ! graphicZone ) return ;
1268-
1269- graphicZone . innerHTML = '' ;
1270- const effectMeta = document . getElementById ( 'slide-' + slideIndex + '-effect' ) ;
1271- const effectName = effectMeta ? effectMeta . textContent . trim ( ) : 'starmap' ;
1272-
1273- if ( effectName === 'starmap' ) {
1274- graphicZone . innerHTML = '<div class="effect-starmap"></div>' ;
1275- } else if ( effectName === 'histogram' ) {
1276- graphicZone . innerHTML = '<div class="effect-histogram"><div></div><div></div><div></div><div></div><div></div></div>' ;
1277- } else if ( effectName === 'waveform' ) {
1278- graphicZone . innerHTML = '<div class="effect-waveform"></div>' ;
1279- } else if ( effectName === 'orbital' ) {
1280- graphicZone . innerHTML = '<div class="effect-orbital"></div>' ;
1281- }
1282- }
1283-
1284- function initializeBridgeSystems ( ) {
1285- if ( ! document . getElementById ( 'lcars-telemetry-bank' ) ) return ;
1286- if ( BRIDGE_STATE . interval ) clearInterval ( BRIDGE_STATE . interval ) ;
1287- BRIDGE_STATE . interval = setInterval ( updateBridgeTelemetry , 800 ) ;
1288- updateBridgeGraphic ( 1 ) ;
1289- }
1290- // ------------------------------------------------------------
0 commit comments