tenfourfox/dom/base/test/file_record_orientation.html
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

17 lines
339 B
HTML

<!DOCTYPE html>
<html>
<body>
<script>
var recordedOrientations = [];
screen.orientation.onchange = function() {
recordedOrientations.push(screen.orientation.type);
};
window.addEventListener("message", function(event) {
if (event.data == "report") {
event.source.postMessage(recordedOrientations, "*");
}
}, false);
</script>