-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest1.html
More file actions
22 lines (20 loc) · 869 Bytes
/
test1.html
File metadata and controls
22 lines (20 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<title>JS Orientation Lock</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="1-lock.js"></script>
</head>
<body>
<h1>LOCK PORTRAIT</h1>
<input type="button" value="Lock - portrait" onclick="lock('portrait')"/>
<input type="button" value="Lock - portrait-primary" onclick="lock('portrait-primary')"/>
<input type="button" value="Lock - portrait-secondary" onclick="lock('portrait-secondary')"/>
<h1>LOCK LANDSCAPE</h1>
<input type="button" value="Lock - landscape" onclick="lock('landscape')"/>
<input type="button" value="Lock - landscape-primary" onclick="lock('landscape-primary')"/>
<input type="button" value="Lock - landscape-secondary" onclick="lock('landscape-secondary')"/>
<h1>UNLOCK</h1>
<input type="button" value="Unlock Orientation" onclick="unlock()"/>
</body>
</html>