Skip to content

Commit

Permalink
fix: audio
Browse files Browse the repository at this point in the history
  • Loading branch information
imantsk authored Aug 31, 2024
1 parent 256d595 commit dda508d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<body>
<background class="noize"></background>
<h1 class="text-3xl font-bold text-gray-300 flex flex-row min-h-screen justify-center items-center">
<h1 main class="text-3xl font-bold text-gray-300 flex flex-row min-h-screen justify-center items-center">
sintēze
</h1>

Expand Down
2 changes: 1 addition & 1 deletion js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dda508d

Please sign in to comment.