-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathos_info.html
More file actions
35 lines (32 loc) · 972 Bytes
/
os_info.html
File metadata and controls
35 lines (32 loc) · 972 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
var info = navigator.userAgent.toLowerCase();
var oslmg = null;
if(info.indexOf("windows")>=0){
oslmg = "windows.png";
}
else if(info.indexOf("macintosh")>=0){
oslmg = "macintosh.png";
}
else if(info.indexof("iphone")>=0){
oslmg = "iphone";
}
else if(info.indexOf("android")>=0){
oslmg = "android.png";
}
document.write("<img src =\"images/" + oslmg + "\">","<br>");
var scr = screen;
var sc_w = scr.width;
var sc_h = scr.height;
document.write("모니터 해상도 너비:" + sc_w + "px","<br>");
document.write("모니터 해상도 높이:" + sc_h + "px","<br>");
</script>
</body>
</html>