vendredi 21 décembre 2018

Reference base

<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<style>
html,body{height:100%;margin:0;}
body{font-family:arial,sans-serif;overflow:hidden;}
svg{background:royalblue;}
</style>
<title>Page</title>
</head>
<body>
<svg width="0" height="0" id="mysvg">
</svg>
<script>
var sw=window.innerWidth;
var sh=window.innerHeight;
document.getElementById("mysvg").setAttribute("width",sw);
document.getElementById("mysvg").setAttribute("height",sh);
</script>
</body>
</html>