1
0

Shortened a code for changing maskImage.

This commit is contained in:
Alexander Andreev 2023-08-20 02:23:00 +04:00
parent af0cbda364
commit 681d1afc68
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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 => {