-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresponsive.html
More file actions
85 lines (85 loc) · 1.65 KB
/
responsive.html
File metadata and controls
85 lines (85 loc) · 1.65 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Responsive View</title>
<style>
body {
margin: 0;
padding: 20px;
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
height: 100vh;
}
#controls {
margin-bottom: 10px;
}
#content {
display: flex;
flex-grow: 1;
}
#frameContainer {
border: 2px solid #007bff;
margin-right: 20px;
}
#deviceFrame {
border: none;
}
#infoPanel {
flex-grow: 1;
overflow-y: auto;
}
#deviceInfo {
margin-bottom: 10px;
}
select, button {
margin: 5px;
padding: 5px;
}
button {
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
#mediaQueryInfo {
margin-top: 20px;
padding: 10px;
background-color: #f0f0f0;
border-radius: 5px;
}
#mediaQueryInfo h3 {
margin-top: 0;
}
#mediaQueryInfo pre {
margin: 5px 0;
padding: 5px;
background-color: #e0e0e0;
border-radius: 3px;
}
</style>
</head>
<body>
<div id="controls">
<select id="deviceSelect"></select>
<button id="refreshButton">Refresh</button>
<label>
<input type="checkbox" id="landscapeToggle"> Landscape Mode
</label>
</div>
<div id="content">
<div id="frameContainer">
<iframe id="deviceFrame"></iframe>
</div>
<div id="infoPanel">
<div id="deviceInfo"></div>
<div id="mediaQueryInfo"></div>
</div>
</div>
<script src="responsive.js"></script>
</body>
</html>