Skip to content

Commit

Permalink
fix for #250
Browse files Browse the repository at this point in the history
  • Loading branch information
LNFWebsite authored Dec 4, 2016
1 parent 3e6145f commit d968b28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ <h1 id="title"><a href="#" style="color:white;text-decoration:none;">Streamly <s
player = new YT.Player('youtube', {
events: {
'onReady': onPlayerReady,
'onStateChange': onPlayerStateChange
'onStateChange': onPlayerStateChange,
'onError': onError
}
});
}
Expand Down Expand Up @@ -162,6 +163,10 @@ <h1 id="title"><a href="#" style="color:white;text-decoration:none;">Streamly <s
function onPlayerReady(event) {
startVideoProgress();
}
function onError(event) {
$("tr:nth-child(" + videoIteration + ")").addClass("videoError");
forwardVideo();
}

window.addEventListener("keyup", function(e) {
if ((!$("#inputBox").is(":focus") || $("#inputBox").val() == "") && !$("#playlistNameBox").is(":focus")) {
Expand Down

0 comments on commit d968b28

Please sign in to comment.