added fullscreen support test

This commit is contained in:
Pannek Karl 2013-12-28 20:43:45 +01:00
parent 27b2e135db
commit 12711f4ce9
4 changed files with 183 additions and 0 deletions

26
fullscreen/index.html Normal file
View 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>