generated from xdlumia/iphone7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
439 lines (421 loc) · 12.1 KB
/
index.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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="640px,initial-scale=0.5,maximum-scale=1,user-scalable=no" />
<!-- 兼容IE,chrome=1试用的前提是必须安装了chrome浏览器 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- 兼容国内浏览器,直接采用高速模式渲染页面 -->
<meta name="renderer" content="webkit">
<title>纯css3写iphon7模型</title>
<link rel="stylesheet" href="http://dreamwq.com/home/css/swiper.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrap">
<div class="front">
<div class="mute"></div>
<div class="volume">
<span></span>
<span></span>
</div>
<div class="onoff"></div>
<div class="front-bg">
<div class="speaker"><div class="camera"><span></span></div></div>
<div class="home"><span></span></div>
<!-- 屏幕 -->
<!-- 熄屏状态 -->
<div class="putout"></div>
<div class="screen">
<!-- 状态栏 -->
<div class="status-bar">
<div class="status-left"><span class="signal"></span>中国移动</div>
<span class="lock"></span>
<span class="tatus-time">15:45</span>
<div class="battery">
90%
<div>
<span></span>
<span></span>
</div>
</div>
</div>
<!-- 锁屏状态 -->
<div class="lock-statu">
<!-- 时间 -->
<div class="times">
<div class="time"></div>
<div class="date"></div>
</div>
<div class="footer">
<div class="text">按下主屏幕按钮以解锁</div>
<div class="camera-lock"><span></span><span></span></div>
</div>
</div>
<div class="unlock">
<!-- 图标内容 -->
<div class="content swiper-container">
<div class="swiper-wrapper">
<ul class="swiper-slide">
<li>
<a class="icon">
<div class="qq">
<div class="head">
<span class="eye"></span>
<span class="eye"></span>
<span class="zui"></span>
</div>
<div class="weijin"><span></span></div>
<div class="wing"></div>
<div class="body"><span></span></div>
<div class="foot"></div>
</div>
</a>
<div class="name">QQ</div>
</li>
<li>
<a class="icon">
<div class="wechat">
<span class="big">
<span></span>
</span>
<span class="small">
<span></span>
</span>
</div>
</a>
<div class="name">微信</div>
</li>
<li>
<a class="icon">
<div class="keep">
<span></span>
</div>
</a>
<div class="name">Keep</div>
</li>
<li>
<a class="icon">
<div class="ithome">
<span><em></em></span>
</div>
</a>
<div class="name">IT之家</div>
</li>
<li>
<a class="icon">
<div class="duokan"><span></span></div>
</a>
<div class="name">多看阅读</div>
</li>
<li>
<div class="mes-tips">6</div>
<a class="icon">
<div class="ico-tips">
<span><em></em></span>
<span></span>
<span></span>
</div>
</a>
<div class="name">提示</div>
</li>
<li>
<a class="icon">
<div class="weather">
<div> <span></span></div>
</div>
</a>
<div class="name">天气</div>
</li>
<li>
<a class="icon">
<div class="clock">
<div class="clockinfo">
<div id="number">
<div><span>12</span></div>
<div><span>1</span></div>
<div><span>2</span></div>
<div><span>3</span></div>
<div><span>4</span></div>
<div><span>5</span></div>
<div><span>6</span></div>
<div><span>7</span></div>
<div><span>8</span></div>
<div><span>9</span></div>
<div><span>10</span></div>
<div><span>11</span></div>
</div>
<div id="houre"></div>
<div id="minute"></div>
<div id="second"></div>
</div>
</div>
</a>
<div class="name">时钟</div>
</li>
<li>
<a class="icon">
<div class="calendar">
<span class="ico-week">星期四</span>
<span class="ico-day">4</span>
</div>
</a>
<div class="name">日历</div>
</li>
<li>
<a class="icon">
<div class="ico-facebook">
<span><em></em></span>
<b></b>
</div>
</a>
<div class="name">Facebook</div>
</li>
<li>
<a class="icon">
<div class="ico-youtube"><span></span></div>
</a>
<div class="name">YouTube</div>
</li>
<li>
<a class="icon">
<div class="ico-chrome">
<div></div>
</div>
</a>
<div class="name">Chrome</div>
</li>
<li>
<div class="mes-tips">1</div>
<a class="icon">
<div class="ico-amap">
<span></span>
<div class="feiji">
<em></em>
<em></em>
</div>
</div>
</a>
<div class="name">高德地图</div>
</li>
<li>
<a class="icon">
<div class="ico-ele">
<div><span></span></div>
</div>
</a>
<div class="name">饿了吗</div>
</li>
<li>
<a class="icon">
<div class="ico-mistore">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</a>
<div class="name">小米商城</div>
</li>
<li>
<div class="mes-tips">6</div>
<a class="icon">
<div class="ico-didi">
<span><em></em></span>
</div>
</a>
<div class="name">滴滴出行</div>
</li>
<li>
<a class="icon">
<div class="ico-ofo">
<div><span><em></em></span></div>
</div>
</a>
<div class="name">ofo共享单车</div>
</li>
<!-- Authenticator -->
<li>
<a class="icon">
<div class="ico-authenticator">
<div><span><em></em></span></div>
</div>
</a>
<div class="name">Authenticator</div>
</li>
<!-- word -->
<li>
<a class="icon">
<div class="ico-word">
<span></span>
<span></span>
</div>
</a>
<div class="name">Word</div>
</li>
</ul>
<ul class="swiper-slide">
<li>
<a class="icon">
<div class="ico-gcloud">
<span></span>
<span></span>
<span></span>
</div>
</a>
<div class="name">云端硬盘</div>
</li>
<!-- FaceTime -->
<li>
<a class="icon">
<div class="ico-facetime">
<span><em></em></span>
</div>
</a>
<div class="name">FaceTime</div>
</li>
<!-- 提醒事项 -->
<li>
<a class="icon">
<div class="ico-dooo">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</a>
<div class="name">提醒事项</div>
</li>
<!-- 备忘录 -->
<li>
<a class="icon">
<div class="ico-note">
<span></span>
</div>
</a>
<div class="name">备忘录</div>
</li>
<!-- 计算器 -->
<li>
<a class="icon">
<div class="ico-calc">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</a>
<div class="name">计算器</div>
</li>
</ul>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
<div class="dock-bar">
<div class="glassbg"></div>
<ul>
<li>
<a class="icon">
<div class="phone">
<div>
<span></span>
<span></span>
</div>
</div>
</a>
<div class="name">电话</div>
</li>
<li>
<a class="icon">
<div class="ico-camera">
<div><span></span><span></span><span></span></div>
</div>
</a>
<div class="name">相机</div>
</li>
<li>
<a class="icon">
<div class="email">
<div></div>
</div>
</a>
<div class="name">邮件</div>
</li>
<li>
<a class="icon">
<div class="message">
<span></span>
</div>
</a>
<div class="name">短信</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tips-text">纯css3写的iphone手机模板<br>请用webkit核心浏览器打开,<br>请把浏览器页面缩小到50%查看效果更佳(ctry+鼠标滚轮键) <br>可以点击home键试一试<br>讨论+ 605233966 qq群<a target="_blank" href="http://shang.qq.com/wpa/qunwpa?idkey=777feed0ad60bf6ae1d933d518629176af89c391393ba1c11e127f7493d2d944"><img border="0" src="http://pub.idqqimg.com/wpa/images/group.png" alt="Web前端" title="Web前端"></a></div>
<script src='http://libs.baidu.com/jquery/2.1.1/jquery.min.js'></script>
<script src='http://dreamwq.com/home/js/swiper.min.js'></script>
<script>
// 获取日期
var myDate = new Date()
var week = "日一二三四五六";
var aweek = week.split('')
var oH=myDate.getHours();
var oM=myDate.getMinutes();
var oS=myDate.getSeconds();
var oMon=myDate.getMonth()+1;
var oDay=myDate.getDate();
var i = myDate.getDay();
if (oM<10) {
omi = "0"+oM
}else{
omi = myDate.getMinutes();
}
$('.times .time').html(oH+'<i></i>'+omi);
$('.times .date').html(oMon+'月'+oDay+'日'+' 星期'+aweek[i]);
$('.tatus-time').text(oH+":"+omi)
$('.ico-week').text('星期'+aweek[i])
$('.ico-day').text(oDay)
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
});
$('.home span').on('click',function(){
if($('.putout').css('display') === 'block'){
$('.putout').hide();
}else{
$('.lock-statu,.content,.dock-bar,.swiper-pagination,.screen .lock,.screen .tatus-time').addClass('act');
setTimeout(function(){
$('.lock-statu').hide();
},500)
}
})
// 时钟
function colornum(){
var oHoure=document.getElementById("houre");
var oMinute=document.getElementById("minute");
var oSecond=document.getElementById("second");
var nowTime=new Date();
var nowHoure=nowTime.getHours();
var nowMinute=nowTime.getMinutes();
var nowSecond=nowTime.getSeconds();
var houreDeg=(nowMinute/60)*30;
var minuteDeg=(nowSecond/60)*6;
oHoure.style.WebkitTransform="rotate("+ (nowHoure * 30+houreDeg) + "deg)";
oMinute.style.WebkitTransform="rotate("+ (nowMinute * 6+ minuteDeg) + "deg)";
oSecond.style.WebkitTransform="rotate("+ (nowSecond * 6) + "deg)";
}
colornum();
setInterval(colornum,1000);
$('.onoff').on('click',function(){
$('.lock-statu,.content,.dock-bar,.swiper-pagination,.screen .lock,.screen .tatus-time').removeClass('act');
$('.lock-statu').show();
$('.putout').show()
})
</script>
</body>
</html>