Revision control

1
<html>
2
<head>
3
<meta name="viewport" content="width=device-width">
4
5
<script>
6
window.onload = () => {
7
let found = /iPhone|iPad/.exec(navigator.userAgent) != null
8
if (found) {
9
document.body.innerHTML = "MOBILE_UA"
10
} else {
11
document.body.innerHTML = "DESKTOP_UA"
12
}
13
}
14
</script>
15
16
</head>
17
<body aria-label="body">
18
TEST PAGE
19
</body>
20
</html>
21