Source code
Revision control
Copy as Markdown
Other Tools
<!doctype HTML>
<head>
<style>
* { margin: 0 }
:root {
width: 400px;
height: 200px;
background-color: lightBlue;
border: orange 10px solid;
box-sizing: border-box;
}
</style>
<meta name="responsive-embedded-sizing" content="allow-origins=*">
<script>
const params = new URLSearchParams(window.location.search);
const size = params.get('size');
if (size) {
const [width, height] = size.split(',');
document.documentElement.style.width = `${width}px`;
document.documentElement.style.height = `${height}px`;
}
const wm = params.get('wm');
if (wm) {
document.documentElement.style.writingMode = wm;
}
</script>
</head>