mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
added fullscreen support test
This commit is contained in:
parent
27b2e135db
commit
12711f4ce9
4 changed files with 183 additions and 0 deletions
26
fullscreen/index.html
Normal file
26
fullscreen/index.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>FS Demo</title>
|
||||
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
<script type="text/javascript" src="screenfull.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<canvas id="canvas" width="1" height="1"></canvas>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript">
|
||||
document.getElementById('canvas').onclick = function(){
|
||||
console.log(screenfull.enabled)
|
||||
if (screenfull.enabled) {
|
||||
screenfull.toggle();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue