mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-26 23:54:56 +00:00
17 lines
339 B
HTML
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>
|