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:33] – 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; /* Evita que el padding rompa el ancho */ | ||
| } | } | ||
| + | | ||
| + | .sch-brand-white { | ||
| + | color: #ffffff; font-family: | ||
| + | font-size: 13px; letter-spacing: | ||
| + | } | ||
| + | |||
| .led-bezel { | .led-bezel { | ||
| - | background: #0a0a0a; padding: | + | background: #0a0a0a; padding: |
| - | display: flex; gap: 12px; box-shadow: inset 0 2px 5px rgba(0, | + | display: flex; gap: 10px; box-shadow: inset 0 2px 5px rgba(0, |
| } | } | ||
| - | .sch-brand-white { color: #ffffff; font-family: | + | |
| - | .m-led { width: | + | .m-led { width: |
| .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 23: | Línea 33: | ||
| .led-yellow { background:# | .led-yellow { background:# | ||
| - | .pwr-btn { width: | + | .pwr-btn { |
| + | | ||
| + | | ||
| + | outline: none; flex-shrink: | ||
| + | | ||
| @keyframes pwr-blink { 50% { border-color:# | @keyframes pwr-blink { 50% { border-color:# | ||
| - | .active-btn { animation: | + | .active-btn { animation: |
| - | .contact-box { border: 2px solid #004400; padding: | + | |
| - | .line-in { margin-bottom: | + | |
| + | | ||
| + | | ||
| + | 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: 12px; } | ||
| .line-visible { opacity: 1 !important; transform: translateX(0) !important; } | .line-visible { opacity: 1 !important; transform: translateX(0) !important; } | ||
| - | .email-link { color: #fff !important; font-size: 1.6em; text-decoration: | + | |
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | } | ||
| + | |||
| + | /* 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; } | ||
| + | | ||
| </ | </ | ||
| <div class=" | <div class=" | ||
| <div class=" | <div class=" | ||
| - | <div class=" | + | <div class=" |
| <div class=" | <div class=" | ||
| <div id=" | <div id=" | ||
| Línea 42: | Línea 76: | ||
| <div id=" | <div id=" | ||
| </ | </ | ||
| - | <button id=" | + | <button id=" |
| </ | </ | ||
| <div id=" | <div id=" | ||
| Línea 50: | 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: " | + | {t: " |
| - | {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: " ", s: " |
| - | {t: "<a href=' | + | {t: "Si has detectado una anomalía en los datos, |
| - | {t: "NO CARRIER", | + | {t: "posees software que no figura en nuestros registros |
| + | {t: "o quieres aportar documentación histórica para su preservación, | ||
| + | {t: "el sistema está listo para recibir tu transmisión.", | ||
| + | {t: " ", s: " | ||
| + | {t: "<a href=' | ||
| + | {t: " ", s: " | ||
| + | {t: "NO CARRIER | ||
| ]; | ]; | ||
| Línea 64: | Línea 107: | ||
| function playDTMF(digit, | function playDTMF(digit, | ||
| - | const freqs = {' | + | |
| - | const f = freqs[digit] || [941,1477]; | + | |
| + | | ||
| + | | ||
| + | | ||
| + | const f = freqs[digit] || [0,0]; | ||
| f.forEach(hz => { | f.forEach(hz => { | ||
| let o = aCtx.createOscillator(); | let o = aCtx.createOscillator(); | ||
| Línea 74: | Línea 121: | ||
| } | } | ||
| - | // SINTETIZADOR GRANULAR: Dispara ráfagas cortas y metálicas | + | function |
| - | function | + | if(abortComm || !aCtx) return; |
| let now = aCtx.currentTime; | let now = aCtx.currentTime; | ||
| - | let osc = aCtx.createOscillator(); | + | let osc = aCtx.createOscillator(); |
| - | | + | osc.type = ' |
| - | osc.type = ' | + | osc.frequency.setValueAtTime(baseFreq, now); |
| - | osc.frequency.setValueAtTime(freq, now); | + | osc.frequency.linearRampToValueAtTime(baseFreq |
| - | osc.frequency.exponentialRampToValueAtTime(freq * 1.2, now + dur); | + | |
| g.gain.setValueAtTime(gainVal, | g.gain.setValueAtTime(gainVal, | ||
| - | g.gain.linearRampToValueAtTime(0, now + dur); | + | g.gain.exponentialRampToValueAtTime(0.001, now + dur); |
| osc.connect(g); | osc.connect(g); | ||
| osc.start(); | osc.start(); | ||
| } | } | ||
| - | // SIMULADOR DE TRÁFICO ERRÁTICO (Juego de luces y ruidos aleatorios) | + | async function |
| - | async function | + | |
| let endTime = Date.now() + duration; | let endTime = Date.now() + duration; | ||
| - | while(Date.now() < endTime) { | + | while(Date.now() < endTime |
| - | | + | |
| - | | + | playModemChirp(0.06, 1200, 0.015); |
| - | let colorClass = isRX ? ' | + | |
| - | | + | |
| - | + | | |
| - | led.classList.add(colorClass); | + | |
| - | | + | playModemChirp(0.04, 2400, 0.012); |
| - | + | | |
| - | | + | document.getElementById(' |
| - | led.classList.remove(colorClass); | + | } |
| - | await new Promise(r => setTimeout(r, | + | await new Promise(r => setTimeout(r, |
| } | } | ||
| } | } | ||
| - | function | + | function |
| - | initAudio(); | + | initAudio(); |
| - | | + | |
| - | " | + | |
| - | // Secuencia de portadoras clásica | + | 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; cg.gain.setValueAtTime(0, | car.frequency.value = 2100; cg.gain.setValueAtTime(0, | ||
| - | cg.gain.linearRampToValueAtTime(0.04, now + 3.1); | + | cg.gain.linearRampToValueAtTime(0.03, now + 3.1); |
| - | | + | cg.gain.exponentialRampToValueAtTime(0.001, now + 5.5); |
| - | + | | |
| - | let ans = aCtx.createOscillator(); | + | car.start(now + 3); car.stop(now + 5.5); |
| - | ans.frequency.value = 2225; ag.gain.setValueAtTime(0, now + 4.5); | + | |
| - | | + | |
| - | ans.connect(ag); ag.connect(aCtx.destination); | + | |
| - | } | + | |
| - | 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(); | ||
| - | }, 7000); | + | }, 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 de la " | + | |
| - | let trafficTime = 400 + (lineData.t.length * 10) + (Math.random() * 1000); | + | |
| | | ||
| - | // Disparar el caos de luces y sonidos | + | |
| - | | + | else if(lineData.s === " |
| - | + | | |
| - | | + | |
| - | | + | out.appendChild(lineSpan); |
| - | + | let trafficTime | |
| - | | + | |
| - | // Pausa aleatoria entre paquetes | + | |
| - | | + | lineSpan.classList.add(' |
| - | } else { | + | currentLine++; |
| + | await new Promise(r => setTimeout(r, 200 + Math.random() * 300)); | ||
| + | processTransmission(); | ||
| + | } | ||
| + | } else if (!abortComm) | ||
| + | isFinished = true; isBooting = false; | ||
| document.getElementById(' | document.getElementById(' | ||
| - | // Quedarse en espera (SD parpadeando sutilmente) | ||
| - | setInterval(() => { | ||
| - | | ||
| - | | ||
| - | }, 3000); | ||
| } | } | ||
| } | } | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
otros/contacto.1778063582.txt.gz · Última modificación: por jesus
