diff --git a/README.md b/README.md index 1c3b255..68353f2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ -# softuni-ai-timer SoftUni AI Timer diff --git a/index.html b/index.html index 1651350..edb59b1 100644 --- a/index.html +++ b/index.html @@ -60,9 +60,6 @@

Exclusive partner:

- diff --git a/public/melody.mp3 b/public/melody.mp3 deleted file mode 100644 index 3d4c041..0000000 Binary files a/public/melody.mp3 and /dev/null differ diff --git a/scripts/elements.js b/scripts/elements.js index 489f221..19049a8 100644 --- a/scripts/elements.js +++ b/scripts/elements.js @@ -20,9 +20,5 @@ export const elements = { closeButton: () => document.querySelector('#close-button'), form: () => document.querySelector('form.time-form'), suggestions: () => document.querySelector('.suggestions') - }, - audio: { - audio: () => document.querySelector('audio'), - muteButton: () => document.querySelector('header') } }; diff --git a/scripts/utils.js b/scripts/utils.js index c5d1131..bf1051f 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -48,15 +48,6 @@ export function formatTimeContent(value) { return Number(value).toString().padStart(2, 0); }; -export function manageAudio() { - const isPaused = elements.audio.audio().paused; - if (isPaused) { - elements.audio.audio().play(); - } else { - elements.audio.audio().pause(); - } -}; - export function getMinutesToSet() { const currentMinutes = new Date().getMinutes(); const currentHalf = Number(currentMinutes) >= 30 ? 60 : 30; @@ -67,7 +58,6 @@ export function setupEvents() { elements.time.minutes().addEventListener('wheel', timeHandlers.minutes); elements.time.seconds().addEventListener('wheel', timeHandlers.seconds); // elements.info.timerState().addEventListener('click', controlCenter); - elements.audio.muteButton().addEventListener('click', manageAudio); }; export function appendPartnersElements() {