-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (121 loc) · 5.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Skeletor Documentation">
<title>Skeletor - Skeletor.accordion</title>
<link href='https://fonts.googleapis.com/css?family=Roboto:200,300,400,500,700,700italic,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.min.css">
<!-- Base template styles -->
<style>.header-content-wrap,main{margin:0 auto;max-width:1200px}body,html,main{height:100%}*,:after,:before{box-sizing:border-box}body{font-family:Roboto,sans-serif;font-size:14px;line-height:2;color:#e8e8e9;background:#263238}.site-header{position:fixed;top:0;z-index:90;width:100%;color:#fff;background:#673ab7;box-shadow:0 1.5px 3px rgba(0,0,0,.24),0 3px 8px rgba(0,0,0,.05)}.site-header h1{padding:0;font-size:26px;font-weight:400;line-height:1}.header-content-wrap{display:block;padding:0 40px}main{position:relative}.content-section{position:relative;padding:120px 40px;min-height:100%;background:#37474f;box-shadow:0 1.5px 3px rgba(0,0,0,.3),0 3px 8px rgba(0,0,0,.1)}</style>
<!-- /Base template styles -->
<!-- Core plugin styles -->
<link rel="stylesheet" type="text/css" href="skeletor.accordion.css">
<!-- /Core plugin styles -->
</head>
<body>
<header class="site-header">
<div class="header-content-wrap">
<h1 class="page-title">Skeletor.accordion</h1>
</div>
</header>
<main>
<section class="content-section">
<div class="accordion js-accordion">
<div class="accordion__item">
<header class="accordion__header">
Lorem ipsum dolor sit amet
</header>
<section class="accordion__section">
<div class="accordion__body">
Qui offendit convenire ea. Vis eirmod graecis mentitum in. Scripta delectus an quo. Equidem elaboraret nam et,
</div>
</section>
</div>
<div class="accordion__item">
<header class="accordion__header">
Tota lucilius abhorreant nam et
</header>
<section class="accordion__section">
<div class="accordion__body">
Quem delectus reprimique eum ut. Labore admodum accommodare ut cum, has soluta assentior at. Reque placerat definitionem cum ea. Eos in facer mundi virtute, liber noluisse suscipit eam cu. Per quidam delectus at, et vel case pertinax vulputate, lobortis adipiscing eu vim.
</div>
</section>
</div>
<div class="accordion__item">
<header class="accordion__header">
Mollis diceret necessitatibus eu eum
</header>
<section class="accordion__section">
<div class="accordion__body">
Quo persequeris appellantur ex. Stet graece latine ex nec, tota illum explicari nam ne. Ne timeam mediocrem disputando vis. Et sea quem nusquam detracto. Vix ad agam omnes honestatis. Nam vitae eirmod no.
</div>
</section>
</div>
</div>
<div class="accordion js-accordion">
<div class="accordion__item">
<header class="accordion__header">
Lorem ipsum dolor sit amet
</header>
<section class="accordion__section">
<div class="accordion__body">
Qui offendit convenire ea. Vis eirmod graecis mentitum in. Scripta delectus an quo. Equidem elaboraret nam et,
</div>
</section>
</div>
<div class="accordion__item">
<header class="accordion__header">
Tota lucilius abhorreant nam et
</header>
<section class="accordion__section">
<div class="accordion__body">
Quem delectus reprimique eum ut. Labore admodum accommodare ut cum, has soluta assentior at. Reque placerat definitionem cum ea. Eos in facer mundi virtute, liber noluisse suscipit eam cu. Per quidam delectus at, et vel case pertinax vulputate, lobortis adipiscing eu vim.
</div>
</section>
</div>
</div>
<div class="accordion js-accordion-another">
<div class="accordion__item">
<header class="accordion__header">
Lorem ipsum dolor sit amet
</header>
<section class="accordion__section">
<div class="accordion__body">
Qui offendit convenire ea. Vis eirmod graecis mentitum in. Scripta delectus an quo. Equidem elaboraret nam et,
</div>
</section>
</div>
<div class="accordion__item">
<header class="accordion__header">
Tota lucilius abhorreant nam et
</header>
<section class="accordion__section">
<div class="accordion__body">
Quem delectus reprimique eum ut. Labore admodum accommodare ut cum, has soluta assentior at. Reque placerat definitionem cum ea. Eos in facer mundi virtute, liber noluisse suscipit eam cu. Per quidam delectus at, et vel case pertinax vulputate, lobortis adipiscing eu vim.
</div>
</section>
</div>
</div>
</section>
</main>
<script src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.2.0/require.js"></script>
<script>
require.config({
paths: {
'jquery': '//code.jquery.com/jquery-3.0.0.min',
'velocity': '//cdnjs.cloudflare.com/ajax/libs/velocity/1.2.3/velocity.min',
'skeletor.core': '../../skeletor.core/skeletor.core',
}
})
require(['skeletor.accordion'], function(){
$('.js-accordion').each(function(){
new Skeletor.Accordion($(this));
})
new Skeletor.Accordion($('.js-accordion-another'),{singleOpen: false});
//$('.js-accordion:eq(1)').skeletor('open',1)
})
</script>
</body>
</html>