8 lines
275 B
JavaScript
8 lines
275 B
JavaScript
var player = document.getElementById("videoplayer");
|
|
|
|
var current = player.getAttribute("data-current");
|
|
var next = player.getAttribute("data-next");
|
|
|
|
if (next) {
|
|
player.onended = function () { document.location.href = document.location.href.replace(current, next); };
|
|
}; |