-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeviceinfo.php
148 lines (148 loc) · 3.72 KB
/
deviceinfo.php
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
ob_start("ob_gzhandler");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<!--[if lt IE 9]>
<script type='text/javascript' src='http://html5shim.googlecode.com/svn/trunk/html5.js'>
</script>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js">
</script>
<![endif]-->
<script src="jquery.min.js" type="text/javascript">
</script>
<script type="text/javascript">
$(window).resize(function(){
$('#width').text($(window).width() + 'PX');
$('#height').text($(window).height() + 'PX');
});
$(window).load(function(){
$('#width').text($(window).width() + 'PX');
$('#height').text($(window).height() + 'PX');
});
</script>
<title>
Welcome To ZoomQueries Beta 1.0
</title>
<meta name="robots" content="noindex, nofollow">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0;">
<style type="text/css">
html, body{
opacity:.9;
margin: 0;
height: 100%;
font-family:Helvetica,Arial,sans-serif;
color: #000;
background: url(square.png);
font-weight:bold;
}#sqLogBoard{
padding: 20px;
text-transform: uppercase;
}.success{
color: #000;
}@media only screen and (max-width:3000px){
body{
background:#F1C40F;
}#breakpoint:after{
content: "CUSTOM SCREEN";
}}
@media only screen and (max-width: 1216px){
body{
background: #D14836;
}#breakpoint:after{
content: "Desktop";
}}
@media only screen and (max-width: 1024px){
body{
background: #99CC00;
}#breakpoint:after{
content: "Wide Tablet";
}}
@media only screen and (max-width:768px){
body{
background: #770DB7;
}#breakpoint:after{
content: "Tablet";
}}
@media only screen and (max-width:480px){
body{
background: #54A743;
}#breakpoint:after{
content: "Wide Phone";
}}
@media only screen and (max-width:320px){
body{
background: #FF9900;
}#breakpoint:after{
content: "Phone";
}}
@media only screen and (max-width:240px){
body{
background:#3284D6 ;
}#breakpoint:after{
content: "Small Phone";
}}
@media (orientation: portrait){
#orientation:before{
content: "portrait";
}}
@media (orientation: landscape){
#orientation:before{
content: "landscape";
}}
</style>
</head>
<body>
<div id="sqLogBoard">
<br/>
<span style="font-size: 17px;font-weight:bold;line-height: 20px;display: inline-block;">
==================
</br>
Device Reporter:
</br>
==================
</span>
</span>
<br/>
<br/>
<span style="font-size: 12px">
<span style="font-size: 12px">
Device Size Width:
<span id="width" style="color:#fff">
</span>
</span>
<br/>
<span style="font-size: 12px;">
Device Size Height:
<span id="height" style="color:#fff">
</span>
</span>
</span>
<br/>
<span style="font-size: 12px">
CURRENT BREAKPOINT:
<span id="breakpoint" style="color:#fff">
</span>
</span>
<br/>
<span style="font-size: 12px">
ORIENTATION:
<span id="oriontation1" style="color:#fff">
<span id="orientation">
</span>
</span>
</span>
<br/>
<span style="font-size: 12px">
USER AGENT:
<span id="useragent" style="color:#fff">
<script>
document.write(navigator.userAgent);
</script>
</span>
</span>
<br/>
</div>
</body>
</html>