changed play pause to symbols
This commit is contained in:
@@ -237,6 +237,7 @@
|
|||||||
function stopVideo() {
|
function stopVideo() {
|
||||||
player.pauseVideo();
|
player.pauseVideo();
|
||||||
playing = false;
|
playing = false;
|
||||||
|
dataplay.value = String.fromCharCode(9658);
|
||||||
}
|
}
|
||||||
|
|
||||||
// call this function when player state changes
|
// call this function when player state changes
|
||||||
@@ -567,7 +568,7 @@ function clock() {
|
|||||||
// onderstaande alleen als lock.checked
|
// onderstaande alleen als lock.checked
|
||||||
var dataplay = document.createElement("input");
|
var dataplay = document.createElement("input");
|
||||||
dataplay.type = "button";
|
dataplay.type = "button";
|
||||||
dataplay.value = "Play";
|
dataplay.value = String.fromCharCode(9658);
|
||||||
document.getElementById("dataplay").appendChild(dataplay);
|
document.getElementById("dataplay").appendChild(dataplay);
|
||||||
|
|
||||||
// var datastop = document.createElement("input");
|
// var datastop = document.createElement("input");
|
||||||
@@ -580,24 +581,24 @@ dataplay.onclick = function() {
|
|||||||
dataplaying = false;
|
dataplaying = false;
|
||||||
if (playing == false) {
|
if (playing == false) {
|
||||||
player.playVideo();
|
player.playVideo();
|
||||||
dataplay.value = "Pause";
|
dataplay.value = String.fromCharCode(10074,10074);
|
||||||
playing = true;
|
playing = true;
|
||||||
} else {
|
} else {
|
||||||
player.pauseVideo();
|
player.pauseVideo();
|
||||||
dataplay.value = "Play";
|
dataplay.value = String.fromCharCode(9658);
|
||||||
playing = false;
|
playing = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!dataplaying) {
|
if (!dataplaying) {
|
||||||
clock();
|
clock();
|
||||||
dataplay.value = "Pause";
|
dataplay.value = String.fromCharCode(10074,10074);
|
||||||
dataplaying = true;
|
dataplaying = true;
|
||||||
if (lock.checked) {
|
if (lock.checked) {
|
||||||
playing = true;
|
playing = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
dataplay.value = "Play";
|
dataplay.value = String.fromCharCode(9658);
|
||||||
dataplaying = false;
|
dataplaying = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user