Use full page

This commit is contained in:
2019-03-18 07:18:20 +01:00
parent 1ffe953efa
commit 046c089100

View File

@@ -1,21 +1,27 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<title>CellAutomata</title> <title>CellAutomata</title>
<style> <style>
body { body {
background-color: rgb(32,32,32); background-color: rgb(32, 32, 32);
color: rgb(192,192,192); color: rgb(192, 192, 192);
margin: 0; margin: 0;
padding: 0; padding: 0;
overflow: hidden;
} }
#cnvScreen{
width: calc(100vw - 10px); #cnvScreen {
height: calc(100vh - 10px); border: none;
width: 100vw;
height: 100vh;
box-sizing: border-box;
} }
</style> </style>
</head> </head>
<body> <body>
<div id="divScreen"> <div id="divScreen">
<canvas id="cnvScreen" width="100%" height="" /> <canvas id="cnvScreen" width="100%" height="" />
@@ -25,4 +31,5 @@
new CellAutomata("cnvScreen"); new CellAutomata("cnvScreen");
</script> </script>
</body> </body>
</html>
</html>