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:17] – 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: | ||
| | | ||
| - | | + | .sch-brand-white { |
| - | | + | color: #ffffff; font-family: Arial, sans-serif; font-weight: 900; |
| - | .led-green { background:#0f0 !important; box-shadow:0 0 8px #0f0; } | + | font-size: 13px; letter-spacing: 1px; white-space: nowrap; |
| - | .led-yellow { background:#ff0 !important; box-shadow:0 0 8px #ff0; } | + | |
| - | | + | .led-bezel { |
| - | | + | background: #0a0a0a; padding: 6px 10px; border-radius: |
| - | | + | |
| - | | + | |
| } | } | ||
| - | @keyframes pwr-blink { 50% { border-color:# | ||
| - | .active-btn { animation: | ||
| - | | + | .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; visibility:hidden; | + | .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=" | ||
| - | | ||
| - | <!-- MODEM HARDWARE --> | ||
| <div class=" | <div class=" | ||
| - | <div class=" | + | <div class=" |
| - | <div class=" | + | <div class=" |
| <div id=" | <div id=" | ||
| <div id=" | <div id=" | ||
| Línea 56: | Línea 76: | ||
| <div id=" | <div id=" | ||
| </ | </ | ||
| - | <button id=" | + | <button id=" |
| </ | </ | ||
| - | + | | |
| - | <!-- TERMINAL --> | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| </ | </ | ||
| Línea 69: | 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: " ", s: " | + | {t: "o quieres aportar documentación histórica para su preservación, |
| - | {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: "el sistema está listo para recibir tu transmisión.", |
| - | {t: " ", s: " | + | {t: " ", s: " |
| - | {t: "<a href=' | + | {t: "<a href=' |
| - | {t: " ", s: " | + | {t: " ", s: " |
| - | {t: "NO CARRIER", | + | {t: "NO CARRIER |
| ]; | ]; | ||
| - | function initAudio() { | + | function initAudio() { if(!aCtx) aCtx = new (window.AudioContext || window.webkitAudioContext)(); } |
| - | | + | |
| + | function playDTMF(digit, | ||
| + | if(abortComm) return; | ||
| + | const freqs = { | ||
| + | ' | ||
| + | ' | ||
| + | }; | ||
| + | const f = freqs[digit] || [0,0]; | ||
| + | f.forEach(hz => { | ||
| + | let o = aCtx.createOscillator(); | ||
| + | o.frequency.value = hz; g.gain.setValueAtTime(0.02, | ||
| + | g.gain.exponentialRampToValueAtTime(0.001, | ||
| + | o.connect(g); | ||
| + | }); | ||
| } | } | ||
| - | function | + | function |
| - | let osc = aCtx.createOscillator(); | + | if(abortComm || !aCtx) return; |
| - | | + | let now = aCtx.currentTime; |
| - | osc.type = ' | + | let osc = aCtx.createOscillator(); |
| - | osc.frequency.setValueAtTime(1400 + Math.random() * 600, aCtx.currentTime); | + | osc.type = ' |
| - | g.gain.setValueAtTime(0.015, aCtx.currentTime); | + | osc.frequency.setValueAtTime(baseFreq, now); |
| - | g.gain.linearRampToValueAtTime(0, aCtx.currentTime | + | osc.frequency.linearRampToValueAtTime(baseFreq |
| + | 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.5); | + | |
| + | await new Promise(r => setTimeout(r, | ||
| + | | ||
| + | } | ||
| + | await new Promise(r => setTimeout(r, | ||
| + | } | ||
| } | } | ||
| - | function | + | function |
| - | | + | |
| - | | + | |
| - | + | | |
| - | | + | |
| 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(' |
| - | | + | |
| - | }, 2500); | + | }, 6000); |
| } | } | ||
| - | function | + | function |
| - | if (currentLine < content.length) { | + | 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() { | ||
| + | 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); | + | |
| | | ||
| - | | + | |
| - | if(currentLine > 3 && lineData.t.trim() !== "" | + | let trafficTime |
| - | let chirps = lineData.s === " | + | await simulatePacket(trafficTime); |
| - | for(let i=0; i< | + | |
| - | setTimeout(() => { | + | |
| - | document.getElementById(' | + | |
| - | | + | |
| - | setTimeout(() => document.getElementById(' | + | |
| - | }, i * 150); | + | |
| - | } | + | |
| - | | + | |
| - | + | ||
| - | setTimeout(() => { | + | |
| - | | + | |
| currentLine++; | currentLine++; | ||
| - | | + | |
| - | | + | |
| - | }, speed); | + | } |
| - | } else { | + | } else if (!abortComm) |
| + | isFinished = true; isBooting = false; | ||
| document.getElementById(' | document.getElementById(' | ||
| - | document.getElementById(' | ||
| } | } | ||
| } | } | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
otros/contacto.1778062622.txt.gz · Última modificación: por jesus
