-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
116 lines (107 loc) · 3.74 KB
/
index.hbs
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
<!DOCTYPE HTML>
<!--
Read Only by HTML5 UP
html5up.net | @n33co
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>{{title}}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="assets/css/main.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
</head>
<body>
<!-- Header -->
<section id="header">
<header>
<h1 id="logo"><a href="#">{{title}}</a></h1>
</header>
<nav id="nav">
<ul>
{{#each section}}
<li><a href="#{{this.id}}" class="nav_a">{{this.title}}</a></li>
{{/each}}
</ul>
</nav>
</section>
<!-- Wrapper -->
<div id="wrapper">
<!-- Main -->
<div id="main">
{{#each section}}
<section id="{{this.id}}">
<div class="container">
<header class="major">
<h2>{{this.title}}</h2>
</header>
{{#each this.content}}
<p style="font-size: 1.5em;"><strong>{{{this.sub_title}}}</strong></p>
<p style="margin-bottom: 2em; text-align: justify; text-justify:inter-ideograph;">{{{this.sub_detail}}}</p>
{{/each}}
</div>
</section>
{{/each}}
</div>
<!-- Footer -->
<section id="footer">
<div class="container">
<ul class="copyright">
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</div>
</section>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrollzer.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>
<script type="text/javascript" charset="utf-8">
var now_url = document.URL;
var now_url_split = now_url.split('#');
if (now_url_split.length == 1 || now_url_split[now_url_split.length - 1] === "") {
$(".nav_a").each(function(index) {
if (index === 0) {
$(this).addClass('active');
}
else {
$(this).removeClass('active')
.addClass('scrollzer-locked');
}
});
}
else {
$(".nav_a").each(function(index) {
var now_slash = $(this).attr('href');
if (now_slash == "#" + now_url_split[now_url_split.length - 1]) {
$(this).addClass('active');
}
else {
$(this).removeClass('active')
.addClass('scrollzer-locked');
}
});
}
$("a").click(function() {
var now_slash = $(this).attr('href');
if (now_slash === '#') {
$(".nav_a").each(function(index) {
if (index === 0) {
$(this).addClass('active');
}
else {
$(this).removeClass('active')
.addClass('scrollzer-locked');
}
});
}
})
</script>
</body>
</html>