-
Notifications
You must be signed in to change notification settings - Fork 3
/
ipadmini.html
73 lines (63 loc) · 1.42 KB
/
ipadmini.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
66
67
68
69
70
71
72
73
<!DOCTYPE HTML>
<html manifest="" lang="fr-FR">
<head>
<meta charset="UTF-8">
<title>MyVera - iPad mini</title>
<style type="text/css">
#ipad {
}
#ipad.landscape {
background: url('skin/ipadmini_landscape.png');
width: 1278px;
height: 841px;
}
#ipad.portrait {
background: url('skin/ipadmini_portrait.png');
width: 846px;
height: 1278px;
}
#ipad #frame {
border: none;
background: #fff;
position: relative;
left: 38px;
top: 58px;
}
#ipad.landscape #frame {
width: 1024px;
height: 750px;
}
#ipad.portrait #frame {
width: 768px;
height: 1004px;
}
#frame::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }
#frame::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.75); -webkit-border-radius: 4px; border-radius: 4px; width: 4px; height: 4px; }
.button {
width: 40px;
height: 40px;
margin: 25px;
display: block;
float: left;
text-align: center;
cursor: pointer;
}
.button#rotate {
background: url('skin/rotate.png');
}
</style>
</head>
<body>
<script type="text/javascript">
function change_orient() {
var ipadformat = document.getElementById("ipad");
if(ipadformat.className=="landscape") ipadformat.className= "portrait";
else ipadformat.className= "landscape";
}
</script>
<div id="ipad" class="landscape">
<div class="buttons"><div class="button" id="rotate" onclick="change_orient()"></div></div>
<iframe id="frame" src="./index.html"></iframe>
</div>
</body>
</html>