diff options
| author | zwlucas <lucas.oliveira1676@etec.sp.gov.br> | 2025-04-01 11:26:33 +0000 |
|---|---|---|
| committer | zwlucas <lucas.oliveira1676@etec.sp.gov.br> | 2025-04-01 11:26:33 +0000 |
| commit | 076a8f408dd3237546406c74c6a1d57d770ff78b (patch) | |
| tree | 2a722ed89b1846b44a93f278652d97d1c042d81f /app/votar/page.tsx | |
| parent | a871cf8d8339f5dea203f9fc17d978ee1932c8e0 (diff) | |
| download | eleicoes-076a8f408dd3237546406c74c6a1d57d770ff78b.tar.gz eleicoes-076a8f408dd3237546406c74c6a1d57d770ff78b.zip | |
remove old audio code
Diffstat (limited to 'app/votar/page.tsx')
| -rw-r--r-- | app/votar/page.tsx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app/votar/page.tsx b/app/votar/page.tsx index 62c1bb1..436c167 100644 --- a/app/votar/page.tsx +++ b/app/votar/page.tsx @@ -18,7 +18,6 @@ export default function VotarPage() { const nome = searchParams.get("nome") || ""; const cpf = searchParams.get("cpf") || ""; const [selectedOption, setSelectedOption] = useState<string | null>(null); - const [audioContext, setAudioContext] = useState<AudioContext | null>(null); const [audioElement, setAudioElement] = useState<HTMLAudioElement>() useEffect(() => { @@ -27,10 +26,6 @@ export default function VotarPage() { return; } - // setAudioContext( - // new (window.AudioContext || (window as any).webkitContext)() - // ); - const audio = new Audio('/confirma.mp3') setAudioElement(audio) }, [rm, nome, cpf, router]); @@ -41,21 +36,6 @@ export default function VotarPage() { if (!audioElement) return; audioElement.play() - // if (!audioContext) return; - - // const oscillator = audioContext.createOscillator(); - // const gainNode = audioContext.createGain(); - - // oscillator.type = "sine"; - // oscillator.frequency.setValueAtTime(1000, audioContext.currentTime); - // gainNode.gain.setValueAtTime(0.5, audioContext.currentTime); - - // oscillator.connect(gainNode); - // gainNode.connect(audioContext.destination); - - // oscillator.start(); - // oscillator.stop(audioContext.currentTime + 0.2); - setTimeout(() => { router.push( `/obrigado?rm=${rm}&nome=${encodeURIComponent( |