otros:contacto
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
| otros:contacto [2026/05/06 10:21] – jesus | otros:contacto [2026/05/06 17:39] (actual) – jesus | ||
|---|---|---|---|
| Línea 2: | Línea 2: | ||
| < | < | ||
| < | < | ||
| - | .pcw-page-container { background:# | + | .pcw-page-container { background:# |
| | | ||
| - | /* --- MODEM AMSTRAD | + | /* --- HARDWARE |
| .modem-chassis { | .modem-chassis { | ||
| - | background:# | + | background: #1a1a1a; |
| - | border-bottom:5px solid #000; box-shadow: | + | |
| - | display: | + | max-width: 440px; /* Límite para PC */ |
| + | | ||
| + | border: | ||
| + | | ||
| + | display: flex; align-items: | ||
| + | box-sizing: border-box; /* Evita que el padding rompa el ancho */ | ||
| } | } | ||
| - | .sch-brand-white { color:#fff; font-family: | ||
| - | .led-panel { display: | ||
| - | .m-led { width:10px; height: | ||
| - | .m-led span { position: | ||
| | | ||
| - | .led-red { background:#f00 !important; box-shadow:0 0 8px #f00; } | + | .sch-brand-white |
| - | .led-green { background:#0f0 !important; box-shadow:0 0 8px #0f0; } | + | color: #ffffff; font-family: Arial, sans-serif; font-weight: 900; |
| - | .led-yellow { background:#ff0 !important; box-shadow:0 0 8px #ff0; } | + | font-size: 13px; letter-spacing: 1px; white-space: nowrap; |
| + | | ||
| - | .pwr-btn { width:40px; height: | + | .led-bezel { |
| - | @keyframes pwr-blink { 50% { border-color:#0f0; box-shadow: | + | |
| - | | + | display: flex; gap: 10px; box-shadow: |
| + | } | ||
| - | | + | .m-led { width: 10px; height: 10px; background: |
| - | | + | .m-led span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); |
| - | border:2px solid #004400; padding:30px; background: | + | |
| - | min-height:450px; position:relative; display:none; | + | .led-red { background:# |
| - | box-shadow: | + | .led-green { background:# |
| + | .led-yellow { background:# | ||
| + | |||
| + | | ||
| + | width: 40px; height: 22px; background: #2a2a2a; border: 2px solid #444; | ||
| + | border-radius: | ||
| + | outline: none; flex-shrink: | ||
| } | } | ||
| - | | + | |
| - | .line-visible { opacity:1 !important; transform: | + | .active-btn { animation:none !important; border-color:# |
| + | |||
| + | /* --- TERMINAL --- */ | ||
| + | .contact-box { | ||
| + | border: 2px solid #004400; padding: 20px; | ||
| + | background: rgba(0, | ||
| + | word-wrap: break-word; /* Para que el texto no se salga en móvil */ | ||
| + | } | ||
| + | .line-in { opacity: 0; transform: translateX(-5px); transition: 0.2s; display: inline; line-height: 1.6; font-size: 14px; } | ||
| + | .block-line { display: block; margin-bottom: | ||
| + | .line-visible { opacity: 1 !important; transform: translateX(0) !important; } | ||
| | | ||
| - | .email-link { | + | .email-link { |
| - | color:#fff !important; font-size: | + | color: #fff !important; font-size: 1.2em; text-decoration: |
| - | | + | |
| - | text-shadow: | + | |
| + | text-shadow: | ||
| + | } | ||
| + | |||
| + | /* AJUSTE PARA PANTALLAS MUY PEQUEÑAS */ | ||
| + | @media (max-width: 400px) { | ||
| + | | ||
| + | .led-bezel { gap: 6px; padding: 5px 8px; } | ||
| + | .m-led { width: 8px; height: 8px; } | ||
| + | .pwr-btn { width: 35px; } | ||
| } | } | ||
| - | .email-link: | ||
| </ | </ | ||
| <div class=" | <div class=" | ||
| <div class=" | <div class=" | ||
| - | <div class=" | + | <div class=" |
| - | <div class=" | + | <div class=" |
| <div id=" | <div id=" | ||
| <div id=" | <div id=" | ||
| Línea 49: | Línea 76: | ||
| <div id=" | <div id=" | ||
| </ | </ | ||
| - | <button id=" | + | <button id=" |
| - | </ | + | |
| - | + | ||
| - | <div id=" | + | |
| - | <div id=" | + | |
| </ | </ | ||
| + | <div id=" | ||
| </ | </ | ||
| Línea 60: | Línea 84: | ||
| let aCtx = null; | let aCtx = null; | ||
| let currentLine = 0; | let currentLine = 0; | ||
| + | let isBooting = false; | ||
| + | let isFinished = false; | ||
| + | let abortComm = false; | ||
| const content = [ | const content = [ | ||
| - | {t: " | + | {t: " |
| - | | + | {t: " |
| - | | + | {t: " |
| - | {t: " | + | {t: " |
| - | | + | {t: " ", s: " |
| - | {t: " | + | {t: "Si has detectado una anomalía en los datos, |
| - | {t: " | + | {t: "posees software que no figura en nuestros registros |
| - | {t: "Si has detectado una anomalía en los datos, posees software que no figura en nuestros registros o quieres aportar documentación histórica para su preservación, | + | {t: "o quieres aportar documentación histórica para su preservación, |
| - | {t: "<a href=' | + | {t: "el sistema está listo para recibir tu transmisión.", |
| - | {t: "NO CARRIER / DISCONNECTED", s: " | + | {t: " ", s: " |
| + | {t: "<a href=' | ||
| + | {t: " ", s: " | ||
| + | {t: "NO CARRIER / SESSION END", s: " | ||
| ]; | ]; | ||
| - | function initAudio() { | + | function initAudio() { if(!aCtx) aCtx = new (window.AudioContext || window.webkitAudioContext)(); |
| - | | + | |
| - | } | + | |
| - | // SONIDO DE RECEPCIÓN | + | function playDTMF(digit, start) { |
| - | function playRxNoise() { | + | if(abortComm) return; |
| - | let osc = aCtx.createOscillator(); | + | const freqs = { |
| - | | + | ' |
| - | | + | ' |
| - | osc.frequency.setValueAtTime(1600 + Math.random() * 400, aCtx.currentTime); | + | |
| - | | + | const f = freqs[digit] || [0,0]; |
| - | g.gain.exponentialRampToValueAtTime(0.001, | + | f.forEach(hz => { |
| - | osc.connect(g); | + | |
| - | osc.start(); | + | o.frequency.value = hz; g.gain.setValueAtTime(0.02, |
| + | g.gain.exponentialRampToValueAtTime(0.001, | ||
| + | o.connect(g); | ||
| + | }); | ||
| } | } | ||
| - | // SONIDO DE ENVÍO/ | + | function playModemChirp(dur, baseFreq, gainVal) { |
| - | function playTxNoise() { | + | if(abortComm || !aCtx) return; |
| - | let osc = aCtx.createOscillator(); | + | let now = aCtx.currentTime; |
| - | | + | let osc = aCtx.createOscillator(); |
| - | osc.type = 'sawtooth'; | + | osc.type = 'square'; |
| - | osc.frequency.setValueAtTime(800, aCtx.currentTime); | + | osc.frequency.setValueAtTime(baseFreq, now); |
| - | g.gain.setValueAtTime(0.015, aCtx.currentTime); | + | osc.frequency.linearRampToValueAtTime(baseFreq * 1.1, now + dur); |
| - | g.gain.linearRampToValueAtTime(0, aCtx.currentTime | + | g.gain.setValueAtTime(gainVal, now); |
| + | g.gain.exponentialRampToValueAtTime(0.001, now + dur); | ||
| osc.connect(g); | osc.connect(g); | ||
| - | osc.start(); | + | osc.start(); |
| } | } | ||
| - | function | + | async function |
| - | | + | |
| - | | + | |
| - | let carrier = aCtx.createOscillator(); | + | document.getElementById(' |
| - | let g = aCtx.createGain(); | + | |
| - | | + | await new Promise(r |
| - | g.gain.setValueAtTime(0, now); | + | |
| - | g.gain.linearRampToValueAtTime(0.04, | + | |
| - | | + | document.getElementById(' |
| - | carrier.start(now); carrier.stop(now + 2); | + | |
| + | await new Promise(r => setTimeout(r, | ||
| + | | ||
| + | } | ||
| + | await new Promise(r => setTimeout(r, | ||
| + | } | ||
| } | } | ||
| - | function | + | function |
| - | | + | |
| - | | + | |
| - | | + | abortComm = false; |
| document.getElementById(' | document.getElementById(' | ||
| - | playHandshake(); | ||
| | | ||
| + | let dt1 = aCtx.createOscillator(); | ||
| + | dt1.frequency.value = 350; dt2.frequency.value = 440; dg.gain.setValueAtTime(0.015, | ||
| + | dg.gain.exponentialRampToValueAtTime(0.001, | ||
| + | dt1.connect(dg); | ||
| + | dt1.start(now); | ||
| + | |||
| + | " | ||
| + | |||
| + | let car = aCtx.createOscillator(); | ||
| + | car.frequency.value = 2100; cg.gain.setValueAtTime(0, | ||
| + | cg.gain.linearRampToValueAtTime(0.03, | ||
| + | cg.gain.exponentialRampToValueAtTime(0.001, | ||
| + | car.connect(cg); | ||
| + | car.start(now + 3); car.stop(now + 5.5); | ||
| + | |||
| setTimeout(() => { | setTimeout(() => { | ||
| + | if(abortComm) return; | ||
| document.getElementById(' | document.getElementById(' | ||
| document.getElementById(' | document.getElementById(' | ||
| processTransmission(); | processTransmission(); | ||
| - | }, 2200); | + | }, 6000); |
| + | } | ||
| + | |||
| + | function handlePowerClick() { | ||
| + | const btn = document.getElementById(' | ||
| + | if (isFinished) { | ||
| + | document.getElementById(' | ||
| + | currentLine = 0; isFinished = false; | ||
| + | [' | ||
| + | startConnectionSequence(); | ||
| + | } else if (isBooting || document.getElementById(' | ||
| + | abortComm = true; isBooting = false; isFinished = false; | ||
| + | btn.classList.remove(' | ||
| + | document.getElementById(' | ||
| + | document.getElementById(' | ||
| + | currentLine = 0; | ||
| + | [' | ||
| + | } else { | ||
| + | isBooting = true; btn.classList.add(' | ||
| + | startConnectionSequence(); | ||
| + | } | ||
| } | } | ||
| async function processTransmission() { | async function processTransmission() { | ||
| - | if (currentLine < content.length) { | + | if (currentLine < content.length |
| const out = document.getElementById(' | const out = document.getElementById(' | ||
| const lineData = content[currentLine]; | const lineData = content[currentLine]; | ||
| - | const lineDiv | + | const lineSpan |
| - | | + | |
| | | ||
| - | if(lineData.s === " | + | if(lineData.s === " |
| - | else if(lineData.s === " | + | else if(lineData.s === " |
| - | else lineDiv.innerHTML = lineData.t; | + | else lineSpan.innerHTML = lineData.t; |
| - | out.appendChild(lineDiv); | + | |
| - | + | out.appendChild(lineSpan); | |
| - | | + | |
| - | document.getElementById(' | + | await simulatePacket(trafficTime); |
| - | playRxNoise(); | + | |
| - | await new Promise(r => setTimeout(r, | + | |
| - | | + | |
| - | + | await new Promise(r => setTimeout(r, | |
| - | // 2. MOSTRAR LÍNEA | + | |
| - | lineDiv.classList.add(' | + | |
| - | + | } else if (!abortComm) { | |
| - | // 3. FASE ENVÍO / ACK (LED SD + Sonido) | + | |
| - | await new Promise(r => setTimeout(r, | + | |
| - | document.getElementById(' | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | + | ||
| - | | + | |
| - | currentLine++; | + | |
| - | setTimeout(processTransmission, | + | |
| - | } else { | + | |
| document.getElementById(' | document.getElementById(' | ||
| - | document.getElementById(' | ||
| - | document.getElementById(' | ||
| } | } | ||
| } | } | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
otros/contacto.1778062892.txt.gz · Última modificación: por jesus
