From dda508dd50106c03e30aec28f0656d5e219a70d0 Mon Sep 17 00:00:00 2001 From: Imants Date: Sat, 31 Aug 2024 18:40:51 +0300 Subject: [PATCH] fix: audio --- index.html | 2 +- js/player.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index b90a622..f5139a6 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ -

+

sintēze

diff --git a/js/player.js b/js/player.js index a8c3c88..81daf9c 100644 --- a/js/player.js +++ b/js/player.js @@ -3,7 +3,7 @@ const audio = new Audio("assets/sinteze.ogg"); audio.loop = true; audio.play(); -const h1 = document.querySelector("h1"); +const h1 = document.querySelector("h1[main]"); const audioContext = new (window.AudioContext || window.webkitAudioContext)(); const analyser = audioContext.createAnalyser(); analyser.fftSize = 256;