-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
470 lines (453 loc) · 15.5 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
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
<!doctype html>
<html lang="">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>apple_index</title>
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<!-- Place favicon.ico in the root directory -->
<!-- build:css styles/vendor.css -->
<!-- bower:css -->
<!-- endbower -->
<!-- endbuild -->
<!-- build:css styles/main.css -->
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild -->
</head>
<body>
<!--[if lt IE 10]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<input type="checkbox" id="check">
<nav id="globalnav">
<div class="gn-content">
<ul class="gn-header">
<li class="gn-item gn-button">
<label for="check"></label>
<span class="gn-menuicon-top"><span></span></span>
<span class="gn-menuicon-bottom"><span></span></span>
</li>
<li class="gn-item gn-apple">
<a href=""><span>apple</span></a>
</li>
<li class="gn-item gn-bag">
<a href=""><span>bag</span></a>
</li>
</ul>
<ul class="gn-list">
<li class="gn-item gn-apple"><a href="" class="gn-link"><span>apple</span></a></li>
<li class="gn-item gn-mac"><a href="" class="gn-link"><span>mac</span></a></li>
<li class="gn-item gn-ipad"><a href="" class="gn-link"><span>ipad</span></a></li>
<li class="gn-item gn-iphone"><a href="" class="gn-link"><span>iphone</span></a></li>
<li class="gn-item gn-watch"><a href="" class="gn-link"><span>watch</span></a></li>
<li class="gn-item gn-tv"><a href="" class="gn-link"><span>tv</span></a></li>
<li class="gn-item gn-music"><a href="" class="gn-link"><span>music</span></a></li>
<li class="gn-item gn-support"><a href="" class="gn-link"><span>support</span></a></li>
<li class="gn-item gn-search"><a href="" class="gn-link"><span>search</span></a></li>
<li class="gn-item gn-bag"><a href="" class="gn-link"><span>bag</span></a></li>
</ul>
</div>
</nav>
<div class="gallery-container">
<div class=banner-inner>
<nav class="circle">
<ul >
<li role="presentation"><a href="#" class="dian current"></a></li>
<li role="presentation"><a href="#" class="dian"></a></li>
<li role="presentation"><a href="#" class="dian"></a></li>
</ul>
</nav>
<butt class="paddlenav-arrow pre"></butt>
<butt class="paddlenav-arrow next"></butt>
<div class="banner">
<section class="gallery-item iphone_pro">
<div class="hero-content">
<a href="" class="backing-link"></a>
<div class="copy">
<div class="copy-inner">
<h2 class="product-pro iphone_se"><span>iPhone SE</span></h2>
<h3 class="product-text">A big step for small.</h3>
<ul class="links">
<li>
<a href="" data-analytics-title="learn more - iphone-se">Learn more
<span class="icon icon-chevronright"></span>
</a>
</li>
<li>
<a href="" data-analytics-title="watch the keynote - iphone-se">Watch the keynote
<span class="icon icon-play"></span>
</a>
</li>
</ul>
</div>
</div>
<div class="hero-wrapper">
<figure class="hero-image">
<div class="hero-image-inner iphone_se"></div>
</figure>
</div>
</div>
</section>
<section class="gallery-item ipad_pro">
<div class="hero-content">
<a href="" class="backing-link"></a>
<div class="copy">
<div class="copy-inner">
<h2 class="product-pro ipad_pro"><span>ipad_pro</span></h2>
<h3 class="product-text">Super. Computer. Now in two sizes.</h3>
<ul class="links">
<li>
<a href="">Learn more<span class="icon icon-chevronright"></span></a>
</li>
<li>
<a href="">Watch the film<span class="icon icon-play"></span></a>
</li>
<li>
<a href="">Watch the keynote<span class="icon icon-play"></span></a>
</li>
</ul>
</div>
</div>
<div class="hero-wrapper">
<figure class="hero-image">
<div class="hero-image-inner ipad_pro_family"></div>
</figure>
</div>
</div>
</section>
<section class="gallery-item watch">
<div class="hero-content">
<a href="" class="backing-link"></a>
<div class="copy">
<div class="copy-inner">
<h2 class="product-pro watch"><span>Apple Watch</span></h2>
<h3 class="product-text">You. At a glance.</h3>
<ul class="links">
<li>
<a href="" data-analytics-click="prop3:/iphone-se/,prefix:h" data-analytics-title="learn more - iphone-se">Learn more<span class="icon icon-chevronright"></span></a>
</li>
<li>
<a href="" data-analytics-title="watch the keynote - iphone-se">Watch the keynote<span class="icon icon-play"></span></a>
</li>
</ul>
</div>
</div>
<div class="hero-wrapper">
<figure class="hero-image">
<div class="hero-image-inner apple_watch_trio"></div>
</figure>
</div>
</div>
</section>
</div>
</div>
</div>
<ul class="aside">
<li class="large-3 medium-6 small-12"><a><span>iphone_6s</span></a></li>
<li class="large-3 medium-6 small-12"><a><span>Apple_tv</span></a></li>
<li class="large-3 medium-6 small-12"><a><span>Macbook</span></a></li>
<li class="large-3 medium-6 small-12"><a><span>Bettertogther</span></a></li>
</ul>
<div class="redcross-wrapper">
<div class="redcross-banner">
<span class="redcross-logo"></span>
<span class="redcross-copy">
Canada Wildfires Relief
<a href="" class="redcross-help">Donate to help
<span class="icon gt"></span>
</a>
</span>
</div>
<div class="exchange">
<a href="" class="more">AC Wall Plug Adapter Recall Program
<span class="icon gt"></span>
</a>
</div>
</div>
<footer id="footer">
<div class="footer-inner">
<nav class="with-5-col">
<div class="col">
<input type="checkbox" name="" id="a">
<div class="section">
<label for="a">
<h3>Shop and Learn</h3>
</label>
<ul>
<li><a href="">Mac</a></li>
<li><a href="">iPad</a></li>
<li><a href="">iPhone</a></li>
<li><a href="">Watch</a></li>
<li><a href="">TV</a></li>
<li><a href="">Music</a></li>
<li><a href="">iTunes</a></li>
<li><a href="">iPod</a></li>
<li><a href="">Accessories</a></li>
<li><a href="">Gift Cards</a></li>
</ul>
</div>
</div>
<div class="col">
<input type="checkbox" name="" id="b">
<div class="section">
<label for="b">
<h3>Apple Store</h3>
</label>
<ul>
<li><a href="">Find a Store</a></li>
<li><a href="">Genius Bar</a></li>
<li><a href="">Workshops and Learning</a></li>
<li><a href="">Youth Programs</a></li>
<li><a href="">Apple Store App</a></li>
<li><a href="">Refurbished</a></li>
<li><a href="">Financing</a></li>
<li><a href="">Reuse and Recycling</a></li>
<li><a href="">Order Status</a></li>
<li><a href="">Shopping Help</a></li>
</ul>
</div>
</div>
<div class="col">
<input type="checkbox" name="" id="c">
<div class="section">
<label for="c">
<h3>For Education</h3>
</label>
<ul>
<li><a href="">Apple and Education</a></li>
<li><a href="">Shop for College</a></li>
</ul>
</div>
<input type="checkbox" name="" id="d">
<div class="section">
<label for="d">
<h3>For Business</h3>
</label>
<ul>
<li><a href="">Apple and Business</a></li>
<li><a href="">Shop for Business</a></li>
</ul>
</div>
</div>
<div class="col">
<input type="checkbox" name="" id="e">
<div class="section">
<label for="e">
<h3>Account</h3>
</label>
<ul>
<li><a href="">Manage Your Apple ID</a></li>
<li><a href="">Apple Store Account</a></li>
<li><a href="">iCloud.com</a></li>
</ul>
</div>
<input type="checkbox" name="" id="f">
<div class="section">
<label for="f">
<h3>Apple Values</h3>
</label>
<ul>
<li><a href="">Environment</a></li>
<li><a href="">Supplier Responsibility</a></li>
<li><a href="">Accessibility</a></li>
<li><a href="">Privacy</a></li>
<li><a href="">Inclusion and Diversity</a></li>
<li><a href="">Education</a></li>
</ul>
</div>
</div>
<div class="col">
<input type="checkbox" name="" id="g">
<div class="section">
<label for="g">
<h3>About Apple</h3>
</label>
<ul>
<li><a href="">Apple Info</a></li>
<li><a href="">Job Opportunities</a></li>
<li><a href="">Press Info</a></li>
<li><a href="">Investors</a></li>
<li><a href="">Events</a></li>
<li><a href="">Hot News</a></li>
<li><a href="">Contact Apple</a></li>
</ul>
</div>
</div>
</nav>
<section class="gf-footer">
<div class="gf-shop" x-ms-format-detection="none">
More ways to shop: Visit an
<a href="/retail/">Apple Store</a>,
<span class="nowrap">call 1-800-MY-APPLE, or
<a href="">find a reseller</a>
</span>.
</div>
<div class="gf-locale">
<a class="gf-locale-link" href="" title="Choose your country or region">
<span class="gf-locale-flag" data-hires="false"></span>
United States
</a>
</div>
<div class="gf-legal">
<div class="gf-legal-copyright">Copyright © 2016 Apple Inc. All rights reserved.
</div>
<div class="gf-legal-links">
<a class="legal-link" href="/privacy/privacy-policy/">Privacy Policy</a>
<a class="legal-link" href="/legal/internet-services/terms/site.html">Terms of Use
</a>
<a class="legal-link" href="/us/shop/goto/help/sales_refunds">Sales and Refunds</a>
<a class="legal-link" href="/legal/">Legal</a>
<a class="legal-link" href="/sitemap/">Site Map</a>
</div>
</div>
</section>
</div>
</footer>
<!-- banner -->
<script src="scripts/jquery-1.12.0.js"></script>
<!-- <script>
var slide=$(".banner");
var width=slide.find('.gallery-item:eq(0)').outerWidth();
var flag=true;
var t=setInterval(move,2000);
function move(){
if(!flag){return;}
flag=false;
slide.animate({left:-width},600,function(){
$(this).append($(this).find('.gallery-item:eq(0)')).css('left',0);
flag=true;
})
}
function move1(){
if(!flag){return;}
flag=false;
slide.find('.gallery-item:last').insertBefore(slide.find('.gallery-item:first'));
slide.css('left',-width + 'px').animate({left:0},600,function(){
flag = true;
})
}
$('.banner-inner').on('mouseenter',function(){
clearInterval(t);
});
$('.banner-inner').on('mouseleave',function(){
t=setInterval(move,2000);
});
$('.pre').on('click',move);
$('.next').on('click',move1);
</script> -->
<script>
$(document).ready(function() {
var length,
currentIndex = 0,
interval,
hasStarted = false, //是否已经开始轮播
t = 3000; //轮播时间间隔
length = $('.gallery-item').length;
//将除了第一张图片隐藏
$('.gallery-item:not(:first)').hide();
//将第一个dian设为激活状态
$('.dian:first').addClass('current');
//隐藏向前、向后翻按钮
$('.paddlenav-arrow').hide();
//鼠标上悬时显示向前、向后翻按钮,停止滑动,鼠标离开时隐藏向前、向后翻按钮,开始滑动
$('.gallery-item, .pre, .next').hover(function() {
stop();
$('.paddlenav-arrow').show();
}, function() {
$('.paddlenav-arrow').hide();
start();
});
$('.dian').hover(function(e) {
stop();
var preIndex = $(".dian").filter(".current").index();
currentIndex = $(this).index();
play(preIndex, currentIndex);
}, function() {
start();
});
$('.pre').unbind('click');
$('.pre').bind('click', function() {
pre();
});
$('.next').unbind('click');
$('.next').bind('click', function() {
next();
});
/**
* 向前翻页
*/
function pre() {
var preIndex = currentIndex;
currentIndex = (--currentIndex + length) % length;
play(preIndex, currentIndex);
}
/**
* 向后翻页
*/
function next() {
var preIndex = currentIndex;
currentIndex = ++currentIndex % length;
play(preIndex, currentIndex);
}
/**
* 从preIndex页翻到currentIndex页
* preIndex 整数,翻页的起始页
* currentIndex 整数,翻到的那页
*/
function play(preIndex, currentIndex) {
$('.gallery-item').eq(preIndex).fadeOut(500)
.parent().children().eq(currentIndex).fadeIn(1000);
$('.dian').removeClass('current');
$('.dian').eq(currentIndex).addClass('current');
}
/**
* 开始轮播
*/
function start() {
if(!hasStarted) {
hasStarted = true;
interval = setInterval(next, t);
}
}
/**
* 停止轮播
*/
function stop() {
clearInterval(interval);
hasStarted = false;
}
//开始轮播
start();
});
</script>
<!-- banner -->
<!-- 原来的 -->
<!-- <div class="hero-unit">
<h1>'Allo, 'Allo!</h1>
<p>You now have</p>
<ul>
<li>HTML5 Boilerplate</li>
<li>Sass</li>
<li>jQuery</li>
</ul>
</div> -->
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='https://www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X');ga('send','pageview');
</script>
<!-- build:js scripts/vendor.js -->
<!-- bower:js -->
<script src="/bower_components/jquery/dist/jquery.js"></script>
<!-- endbower -->
<!-- endbuild -->
<!-- build:js scripts/main.js -->
<script src="scripts/main.js"></script>
<!-- endbuild -->
</body>
</html>