-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (79 loc) · 2.89 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="守護來自大自然的真誠、連結身體的活力、溫柔守護您的健康">
<meta property="og:title" content="德信生技台灣官方網站"/>
<meta property="og:description" content="守護來自大自然的真誠、連結身體的活力、溫柔守護您的健康" />
<meta property="og:image" content="www.healthcome.tw/assets/images/index/index-1.jpg"/>
<meta property="og:site_name" content="德信生技"/>
<title>首頁 | 德信生技台灣官方網站</title>
<link rel="SHORTCUT ICON" href="/favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Coming+Soon" rel="stylesheet">
<link href="https://fonts.googleapis.com/earlyaccess/notosanstc.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/earlyaccess/notosanssc.css" rel="stylesheet">
<link href="/assets/css/v2/common.css" rel="stylesheet">
<link href="/assets/css/v2/index.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="/assets/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<section role="index">
<div class="logo">
<img src="/assets/images/logo.png" title="首頁 | 德信生技" alt="首頁 | 德信生技">
</div>
<ul id="nav_index">
<li>
<a href="story.html" title="緣起故事 | 德信生技">
<span class="en">Story</span>
<span class="ch">起源故事</span>
</a>
</li>
<li>
<a href="about.html" title="關於我們 | 德信生技">
<span class="en">About</span>
<span class="ch">關於我們</span>
</a>
</li>
<li>
<a href="products.html" title="精選品牌 | 德信生技">
<span class="en">Products</span>
<span class="ch">精選品牌</span>
</a>
</li>
<li>
<a href="news.html" title="最新消息 | 德信生技">
<span class="en">News</span>
<span class="ch">最新消息</span>
</a>
</li>
</ul>
</section>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
var num = 1
function autoChangeBgImages() {
setTimeout(function() {
if ( num > 3 ) {
num = 1
} else {
num++
}
var image = '/assets/images/index/index-'+num+'.jpg'
$('section[role="index"]').css({
'background-image': 'url(' +image+ ')',
})
autoChangeBgImages()
}, 3000)
}
autoChangeBgImages()
// $('#nav_index').on('click', 'a', function(e) {
// if ( $(this).attr('href') == 'news.html' ) {
// e.preventDefault()
// }
// })
</script>
</body>
</html>