Skip to content

Commit

Permalink
Update play_ch.html
Browse files Browse the repository at this point in the history
  • Loading branch information
kurema authored Jul 15, 2022
1 parent 73ef3c8 commit 6dc3090
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions nicoch/play_ch.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@
SetPlayerSize();
ToggleRepeat();
GetData(function(){SetId();PlayDefault();});

var iframe=document.getElementById("player");
var iframed = (iframe.contentWindow || iframe.contentDocument);
iframe.onload = function() {
FixKeyDown();
}
};

window.addEventListener('resize',function(event){
Expand All @@ -133,6 +139,12 @@
iframed.OnKeyDown(e.keyCode,e.key,function(){e.preventDefault();},e.shiftKey);
};

function FixKeyDown(){
var iframe=document.getElementById("player");
var iframed=(iframe.contentWindow || iframe.contentDocument);
iframed.document.onkeydown=function(e){};
}

var VideoCount=0;
var ChannelId;
var Channels;
Expand Down

0 comments on commit 6dc3090

Please sign in to comment.