Assuming you have styles similar to this:
html {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
body {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
… and HTML like this:
<!doctype html>
<html>
<head>
...
</head>
<body>
...
</body>
</html>
The kiosk-rotate JS looks for a value-less layout
attribute on the body
tag (e.g., <body layout>…</body>
.
The default rotation is 90º
.
The default rotation can be overridden if you provide a numeric attribute value:
layout=-90
Enjoy!