-
Notifications
You must be signed in to change notification settings - Fork 25
/
demo.html
65 lines (50 loc) · 926 Bytes
/
demo.html
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
63
64
65
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>device.js - binnng</title>
<script type="text/javascript" src="device.min.js"></script>
<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
<style type="text/css">
*{
margin: 0;
padding: 0;
}
body{
padding: 1.4rem;
}
li{
list-style: none;
}
h1{
margin-bottom: 2rem;
}
ul{
font-size: 1.4rem;
}
li{
line-height: 1.5;
}
li b.false{
color: red;
}
li b.true{
color: #4faa33;
}
</style>
</head>
<body>
<h1>DEVICE.JS</h1>
<ul>
</ul>
<script type="text/javascript">
var html = [];
for (var i in window.device) {
html.push("<li>" + i + ": <b class=" + window.device[i] + ">" + window.device[i] + "</b></li>");
}
var $ = document.querySelector.bind(document);
var ul = $("ul");
ul.innerHTML = html.join("");
</script>
</body>
</html>