Commit bed780eb authored by Quxl's avatar Quxl

x

parent 9beb30bf
...@@ -91,7 +91,7 @@ body { ...@@ -91,7 +91,7 @@ body {
playauth : playAuth playauth : playAuth
}, function(xplayer) { }, function(xplayer) {
console.log("播放器创建好了。") console.log("播放器创建好了。")
document.οnkeydοwn=function(e){ document.οnkeydοwn = function(e){
var keyNum= window.event ? e.keyCode : e.which; var keyNum= window.event ? e.keyCode : e.which;
console.log("keyCode=" + keyNum); console.log("keyCode=" + keyNum);
if(keyNum=='32'){ if(keyNum=='32'){
...@@ -118,7 +118,6 @@ body { ...@@ -118,7 +118,6 @@ body {
xplayer.seek(0); xplayer.seek(0);
} }
} }
e.preventDefault();
} }
}); });
} else if(authJsonObject.code == 300) { } else if(authJsonObject.code == 300) {
...@@ -175,7 +174,13 @@ body { ...@@ -175,7 +174,13 @@ body {
} }
}); });
window.onresize = function() {
var w = document.documentElement.clientWidth || document.body.clientWidth;
var h = document.documentElement.clientHeight || document.body.clientHeight;
$("#app").width(w);
$("#app").height(h);
}
window.onresize();
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment