arreglar icones velles script.js
This commit is contained in:
parent
2398f7522a
commit
5b432b884c
12
script.js
12
script.js
|
@ -9,16 +9,16 @@ class station{
|
||||||
title.innerText = "Escoltant " + this.radio;
|
title.innerText = "Escoltant " + this.radio;
|
||||||
stream.src = this.url;
|
stream.src = this.url;
|
||||||
stream.play();
|
stream.play();
|
||||||
const playPauseButtonIcon = playPauseButton.querySelector('i.fas')
|
const playPauseButtonIcon = playPauseButton.querySelector('i.icon')
|
||||||
playPauseButtonIcon.classList.remove('fa-play')
|
playPauseButtonIcon.classList.remove('icon-play')
|
||||||
playPauseButtonIcon.classList.add('fa-pause')
|
playPauseButtonIcon.classList.add('icon-pausa')
|
||||||
}
|
}
|
||||||
show(){
|
show(){
|
||||||
var stream = document.getElementById('stream');
|
var stream = document.getElementById('stream');
|
||||||
stream.pause();
|
stream.pause();
|
||||||
const playPauseButtonIcon = playPauseButton.querySelector('i.fas')
|
const playPauseButtonIcon = playPauseButton.querySelector('i.icon')
|
||||||
playPauseButtonIcon.classList.remove('fa-pause')
|
playPauseButtonIcon.classList.remove('icon-pausa')
|
||||||
playPauseButtonIcon.classList.add('fa-play')
|
playPauseButtonIcon.classList.add('icon-play')
|
||||||
var win=window.open(this.url, '_blank');
|
var win=window.open(this.url, '_blank');
|
||||||
win.focus();
|
win.focus();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user