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:28] – jesus | otros:contacto [2026/05/06 17:39] (actual) – jesus | ||
|---|---|---|---|
| Línea 2: | Línea 2: | ||
| < | < | ||
| < | < | ||
| - | .pcw-page-container { background:# | + | .pcw-page-container { background:# |
| | | ||
| - | /* --- HARDWARE MODEM PCWWIKI | + | /* --- HARDWARE MODEM PCWWIKI |
| .modem-chassis { | .modem-chassis { | ||
| - | background: #1a1a1a; width: 440px; margin: 0 auto 35px; border-radius: | + | background: # |
| + | width: 95%; /* Ancho flexible para móvil */ | ||
| + | max-width: 440px; | ||
| + | | ||
| border: 1.5px solid #333; border-top: 2px solid #444; | border: 1.5px solid #333; border-top: 2px solid #444; | ||
| box-shadow: 0 0 1px rgba(255, | box-shadow: 0 0 1px rgba(255, | ||
| - | display: flex; align-items: | + | display: flex; align-items: |
| - | } | + | box-sizing: border-box; |
| - | .led-bezel { | + | |
| - | background: #0a0a0a; padding: 8px 12px; border-radius: 4px; border: 1px solid #222; | + | |
| - | display: flex; gap: 12px; box-shadow: inset 0 2px 5px rgba(0, | + | |
| } | } | ||
| + | | ||
| .sch-brand-white { | .sch-brand-white { | ||
| - | color: #ffffff; font-family: | + | color: #ffffff; font-family: |
| - | | + | |
| } | } | ||
| - | | + | |
| + | .led-bezel { | ||
| + | background: #0a0a0a; padding: 6px 10px; border-radius: | ||
| + | display: flex; gap: 10px; box-shadow: inset 0 2px 5px rgba(0, | ||
| + | } | ||
| + | |||
| + | | ||
| .m-led span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); | .m-led span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); | ||
| | | ||
| Línea 27: | Línea 34: | ||
| .pwr-btn { | .pwr-btn { | ||
| - | width: | + | width: |
| - | | + | |
| + | outline: none; flex-shrink: | ||
| } | } | ||
| @keyframes pwr-blink { 50% { border-color:# | @keyframes pwr-blink { 50% { border-color:# | ||
| - | .active-btn { animation: | + | .active-btn { animation: |
| /* --- TERMINAL --- */ | /* --- TERMINAL --- */ | ||
| - | .contact-box { | + | .contact-box { |
| - | border: 2px solid #004400; padding: | + | border: 2px solid #004400; padding: |
| - | | + | |
| + | word-wrap: break-word; /* Para que el texto no se salga en móvil */ | ||
| } | } | ||
| - | .line-in { margin-bottom: | + | .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: 12px; } | ||
| .line-visible { opacity: 1 !important; transform: translateX(0) !important; } | .line-visible { opacity: 1 !important; transform: translateX(0) !important; } | ||
| | | ||
| - | .email-link { | + | .email-link { |
| - | color: #fff !important; font-size: 1.6em; text-decoration: | + | color: #fff !important; font-size: 1.2em; text-decoration: |
| - | | + | |
| - | text-shadow: | + | |
| + | text-shadow: | ||
| + | } | ||
| + | |||
| + | /* AJUSTE PARA PANTALLAS MUY PEQUEÑAS */ | ||
| + | @media (max-width: 400px) { | ||
| + | .sch-brand-white { font-size: 11px; } | ||
| + | .led-bezel { gap: 6px; padding: 5px 8px; } | ||
| + | .m-led { width: 8px; height: 8px; } | ||
| + | .pwr-btn { width: 35px; } | ||
| } | } | ||
| </ | </ | ||
| Línea 50: | Línea 69: | ||
| <div class=" | <div class=" | ||
| <div class=" | <div class=" | ||
| - | <div class=" | + | <div class=" |
| <div class=" | <div class=" | ||
| <div id=" | <div id=" | ||
| Línea 57: | Línea 76: | ||
| <div id=" | <div id=" | ||
| </ | </ | ||
| - | <button id=" | + | <button id=" |
| - | </ | + | |
| - | + | ||
| - | <div id="terminal" | + | |
| - | <div id=" | + | |
| </ | </ | ||
| + | <div id=" | ||
| </ | </ | ||
| Línea 68: | 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", | + | {t: " ", s: " |
| + | {t: "<a href=' | ||
| + | {t: " ", s: " | ||
| + | {t: "NO CARRIER | ||
| ]; | ]; | ||
| Línea 85: | Línea 107: | ||
| function playDTMF(digit, | function playDTMF(digit, | ||
| - | const freqs = { ' | + | |
| - | const f = freqs[digit] || [1209, 697]; | + | |
| + | | ||
| + | | ||
| + | | ||
| + | const f = freqs[digit] || [0,0]; | ||
| f.forEach(hz => { | f.forEach(hz => { | ||
| let o = aCtx.createOscillator(); | let o = aCtx.createOscillator(); | ||
| Línea 95: | Línea 121: | ||
| } | } | ||
| - | // SINTESIS GRANULAR DE RUIDO DE DATOS REALISTA | + | function |
| - | function | + | if(abortComm || !aCtx) return; |
| let now = aCtx.currentTime; | let now = aCtx.currentTime; | ||
| - | let noise = aCtx.createBufferSource(); | + | let osc = aCtx.createOscillator(); let g = aCtx.createGain(); |
| - | | + | osc.type = ' |
| - | | + | osc.frequency.setValueAtTime(baseFreq, now); |
| - | | + | osc.frequency.linearRampToValueAtTime(baseFreq |
| + | g.gain.setValueAtTime(gainVal, | ||
| + | | ||
| + | | ||
| + | osc.start(); osc.stop(now + dur); | ||
| + | } | ||
| - | | + | async function simulatePacket(duration) { |
| - | | + | |
| - | filter.frequency.setValueAtTime(1000 + Math.random() * 1000, now); | + | |
| - | | + | document.getElementById('rd').classList.add(' |
| - | + | | |
| - | let gain = aCtx.createGain(); | + | await new Promise(r |
| - | | + | |
| - | // Modulación aleatoria de amplitud para simular flujo de bits | + | if(Math.random() > 0.65) { |
| - | for(let i=0; i< | + | document.getElementById(' |
| - | gain.gain.linearRampToValueAtTime(Math.random() * 0.04, now + (i * 0.1)); | + | |
| + | await new Promise(r => setTimeout(r, | ||
| + | | ||
| + | } | ||
| + | await new Promise(r => setTimeout(r, | ||
| } | } | ||
| - | gain.gain.exponentialRampToValueAtTime(0.001, | ||
| - | |||
| - | noise.buffer = buffer; | ||
| - | noise.connect(filter); | ||
| - | noise.start(now); | ||
| } | } | ||
| - | function | + | function |
| - | initAudio(); | + | initAudio(); |
| - | | + | |
| - | " | + | |
| - | // Portadora 2100Hz | + | document.getElementById(' |
| + | |||
| + | 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(); | let car = aCtx.createOscillator(); | ||
| - | car.frequency.value = 2100; | + | car.frequency.value = 2100; cg.gain.setValueAtTime(0, |
| - | | + | |
| cg.gain.exponentialRampToValueAtTime(0.001, | cg.gain.exponentialRampToValueAtTime(0.001, | ||
| - | car.connect(cg); | + | car.connect(cg); |
| - | + | | |
| - | // Negociación Scrambling | + | |
| - | setTimeout(() => playRealDataBurst(2), | + | |
| - | } | + | |
| - | function bootModem() { | ||
| - | const pwr = document.getElementById(' | ||
| - | if(pwr.classList.contains(' | ||
| - | pwr.classList.add(' | ||
| - | document.getElementById(' | ||
| - | playHandshake(); | ||
| setTimeout(() => { | setTimeout(() => { | ||
| + | if(abortComm) return; | ||
| document.getElementById(' | document.getElementById(' | ||
| document.getElementById(' | document.getElementById(' | ||
| processTransmission(); | processTransmission(); | ||
| - | }, 7500); | + | }, 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 |
| - | | + | |
| - | lineDiv.innerHTML = (lineData.s === " | + | |
| - | out.appendChild(lineDiv); | + | |
| - | + | ||
| - | // Duración aleatoria basada en longitud del texto | + | |
| - | let burstDuration = lineData.t.length * 0.015 + (Math.random() * 0.5); | + | |
| | | ||
| - | | + | |
| - | document.getElementById(' | + | |
| - | | + | |
| - | await new Promise(r => setTimeout(r, | + | |
| - | | + | |
| | | ||
| - | | + | |
| - | + | let trafficTime = 150 + (lineData.t.length * 12); | |
| - | // ENVIANDO CONFIRMACION (SD) | + | await simulatePacket(trafficTime); |
| - | | + | if(!abortComm) { |
| - | | + | lineSpan.classList.add(' |
| - | | + | |
| - | | + | await new Promise(r => setTimeout(r, |
| - | document.getElementById(' | + | |
| - | + | | |
| - | currentLine++; | + | } else if (!abortComm) { |
| - | setTimeout(processTransmission, | + | |
| + | document.getElementById(' | ||
| } | } | ||
| } | } | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
otros/contacto.1778063287.txt.gz · Última modificación: por jesus
