-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorientation.php
More file actions
62 lines (50 loc) · 1.69 KB
/
orientation.php
File metadata and controls
62 lines (50 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
$pageTitle = 'Orientation';
$extraStyles = '<style>
/* Force landscape visually */
@media (orientation: portrait) {
body {
transform: rotate(90deg);
transform-origin: bottom left;
position: absolute;
top: -100vw;
left: 0;
height: 100vw;
width: 100vh;
overflow: hidden;
}
.warning {
display: block;
background: red;
color: white;
padding: 20px;
font-weight: bold;
}
}
.warning {
display: none;
}
</style>';
include 'includes/header.php';
?>
<h1>Orientation Issues</h1>
<h2>1.3.4 Orientation - Portrait/Landscape Restriction</h2>
<div class="warning">
Please rotate your device to Landscape mode to view this site properly. We do not support Portrait.
</div>
<p>This page restricts orientation by transforming the content or showing a warning message if the user is in
portrait mode.</p>
<p>(Note: Pure CSS lock is tricky, but often this violation is checking for the instruction "Please rotate" or apps
that are locked).</p>
<h2>1.3.4 Orientation - Content Hidden by Orientation</h2>
<div class="landscape-only">
This content is only visible in landscape mode.
</div>
<style>
@media (orientation: portrait) {
.landscape-only {
display: none;
}
}
</style>
<?php include 'includes/footer.php'; ?>