Private
Public Access
1
0

changed play pause to symbols

This commit is contained in:
Sander Roosendaal
2019-12-07 13:30:12 +01:00
parent 99a1709a30
commit 0c7b8b6614

View File

@@ -237,6 +237,7 @@
function stopVideo() {
player.pauseVideo();
playing = false;
dataplay.value = String.fromCharCode(9658);
}
// call this function when player state changes
@@ -567,7 +568,7 @@ function clock() {
// onderstaande alleen als lock.checked
var dataplay = document.createElement("input");
dataplay.type = "button";
dataplay.value = "Play";
dataplay.value = String.fromCharCode(9658);
document.getElementById("dataplay").appendChild(dataplay);
// var datastop = document.createElement("input");
@@ -580,24 +581,24 @@ dataplay.onclick = function() {
dataplaying = false;
if (playing == false) {
player.playVideo();
dataplay.value = "Pause";
dataplay.value = String.fromCharCode(10074,10074);
playing = true;
} else {
player.pauseVideo();
dataplay.value = "Play";
dataplay.value = String.fromCharCode(9658);
playing = false;
}
} else {
if (!dataplaying) {
clock();
dataplay.value = "Pause";
dataplay.value = String.fromCharCode(10074,10074);
dataplaying = true;
if (lock.checked) {
playing = true;
}
} else {
clearInterval(timer);
dataplay.value = "Play";
dataplay.value = String.fromCharCode(9658);
dataplaying = false;
}
}