forked from sbdomo/MyVera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iphone.html
82 lines (71 loc) · 1.7 KB
/
iphone.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
74
75
76
77
78
79
80
81
82
<!DOCTYPE HTML>
<html manifest="" lang="fr-FR">
<head>
<meta charset="UTF-8">
<title>MyVera - iPhone</title>
<style type="text/css">
body {
background: #000;
color: #fff;
font-family: 'Droid Sans', 'Liberation Sans', FreeSans, 'Helvetica Neue LT Std', 'Helvetica LT Std', Helvetica, Arial, Tahoma, 'Lucida Grande', 'Lucida Sans', sans-serif;
}
#device {
}
#device.landscape {
background: url('skin/iphone_landscape.png');
width: 713px;
height: 365px;
}
#device.portrait {
background: url('skin/iphone_portrait.png');
width: 365px;
height: 713px;
}
#device #frame {
border: none;
background: #fff;
position: relative;
}
#device.landscape #frame {
width: 480px;
height: 300px;
left: 48px;
top: 41px;
}
#device.portrait #frame {
width: 320px;
height: 460px;
left: 24px;
top: 83px;
}
#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-left: 30px;
margin-top: 15px;
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 deviceformat = document.getElementById("device");
if(deviceformat.className=="landscape") deviceformat.className= "portrait";
else deviceformat.className= "landscape";
}
</script>
<div id="device" class="portrait">
<div class="buttons"><div class="button" id="rotate" onclick="change_orient()"></div></div>
<iframe id="frame" src="./index.html"></iframe>
</div>
</body>
</html>