mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 21:57:49 +01:00
bwa
This commit is contained in:
parent
6658fdc5a7
commit
99cc288726
1 changed files with 2 additions and 0 deletions
|
@ -369,9 +369,11 @@ video.addEventListener("contextmenu", function(event) {
|
||||||
});
|
});
|
||||||
|
|
||||||
speedOption.addEventListener("click", function() {
|
speedOption.addEventListener("click", function() {
|
||||||
|
|
||||||
var currentSpeed = video.playbackRate;
|
var currentSpeed = video.playbackRate;
|
||||||
var newSpeed = getNextSpeed(currentSpeed);
|
var newSpeed = getNextSpeed(currentSpeed);
|
||||||
video.playbackRate = newSpeed;
|
video.playbackRate = newSpeed;
|
||||||
|
document.getElementById("aud").playbackRate = newSpeed;
|
||||||
speedOption.innerHTML = "<i class='fa-light fa-gauge'></i> Speed: " + newSpeed.toFixed(2) + "x";
|
speedOption.innerHTML = "<i class='fa-light fa-gauge'></i> Speed: " + newSpeed.toFixed(2) + "x";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue