Shortened a code for changing maskImage.
This commit is contained in:
parent
af0cbda364
commit
681d1afc68
@ -61,9 +61,7 @@ $("play").addEventListener("click", e => {
|
||||
audio.pause();
|
||||
audio.src = "";
|
||||
}
|
||||
e.target.style.maskImage = audio.paused ?
|
||||
"url(/assets/img/play.svg)" : "url(/assets/img/stop.svg)";
|
||||
e.target.style.webkitMaskImage = audio.paused ?
|
||||
e.target.style.maskImage = e.target.style.webkitMaskImage = audio.paused ?
|
||||
"url(/assets/img/play.svg)" : "url(/assets/img/stop.svg)"; });
|
||||
|
||||
audio.addEventListener("timeupdate", e => {
|
||||
|
Loading…
Reference in New Issue
Block a user