From 5b432b884c1988e19195572cb1d10bcd57433d90 Mon Sep 17 00:00:00 2001 From: Xaloc Date: Thu, 29 Feb 2024 23:33:37 +0100 Subject: [PATCH] arreglar icones velles script.js --- script.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/script.js b/script.js index 66e7038..665654d 100644 --- a/script.js +++ b/script.js @@ -9,16 +9,16 @@ class station{ title.innerText = "Escoltant " + this.radio; stream.src = this.url; stream.play(); - const playPauseButtonIcon = playPauseButton.querySelector('i.fas') - playPauseButtonIcon.classList.remove('fa-play') - playPauseButtonIcon.classList.add('fa-pause') + const playPauseButtonIcon = playPauseButton.querySelector('i.icon') + playPauseButtonIcon.classList.remove('icon-play') + playPauseButtonIcon.classList.add('icon-pausa') } show(){ var stream = document.getElementById('stream'); stream.pause(); - const playPauseButtonIcon = playPauseButton.querySelector('i.fas') - playPauseButtonIcon.classList.remove('fa-pause') - playPauseButtonIcon.classList.add('fa-play') + const playPauseButtonIcon = playPauseButton.querySelector('i.icon') + playPauseButtonIcon.classList.remove('icon-pausa') + playPauseButtonIcon.classList.add('icon-play') var win=window.open(this.url, '_blank'); win.focus();