14 lines
318 B
JavaScript
14 lines
318 B
JavaScript
{633f52f0ecdbc51cde35b39e4dcf0eb29c8c4c72 true 318 main.js 0xc001e7a620}
var song = document.getElementById("song");
|
|
var icon = document.getElementById("icon");
|
|
// icon.onclick = function(){
|
|
// song.play();
|
|
// }
|
|
icon.onclick = function(){
|
|
if (song.paused){
|
|
song.play();
|
|
icon.src = "media/pause.png";
|
|
} else{
|
|
song.pause();
|
|
icon.src = "media/play.png";
|
|
}
|
|
} |