-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
192 lines (153 loc) · 6.87 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="lib/bootstrap.min.css">
<script src="lib/jquery-3.4.1.min.js"></script>
<script src="lib/popper.min.js"></script>
<script src="lib/bootstrap.min.js"></script>
<!-- other libs -->
<script src="lib/papaparse.min.js"></script>
<script src="lib/jsrender.min.js"></script>
<script src="lib/fuse.min.js"></script>
<script src="lib/md5.min.js"></script>
<!-- code -->
<script src="catalog.js"></script>
<title>Catalogue</title>
<style>
body {
min-height: 75rem;
padding-top: 4.5rem;
}
</style>
</head>
<body>
<!-- title and nav -->
<nav class="navbar fixed-top navbar-dark bg-dark justify-content-between">
<a href="." class="navbar-brand cat-title">Catalogue</a>
<form class="form-inline" id="formSearch">
<input class="form-control mr-sm-2 cat-searchinput" name="search" type="search" id="search" placeholder="texte ou #mot-clef" aria-label="Filtrer" />
<div class="btn-group" role="group">
<button class="btn btn-clear my-2 my-sm-0 cat-searchReset" type="reset">Effacer</button>
<button class="btn btn-primary my-2 my-sm-0" type="submit">Trouver</button>
</div>
</form>
</nav>
<!-- alert box -->
<div class="container-fluid">
<div class="alert alert-primary" role="alert">
<a class="btn btn-secondary active" href="https://partage.e2.rie.gouv.fr/ethercalc/si_dreal_outils" target="_blank">édition</a>
Ce service est en phase de construction !<span class="glyphicon glyphicon-trash"></span>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-lg-8">
<!-- tag list -->
<div class="text-left" id="tagList">
</div>
</div>
<div class="col-lg-4">
<!-- results summary-->
<div class="text-right">
<span class="badge badge-primary" id="searchCount"></span> ressources trouvées
</div>
</div>
</div>
</div>
<!-- md list -->
<div class="container-fluid pull-right">
<div class="row" id="mdList">
</div>
</div>
<!--
templates
-->
<!-- md template -->
<script id="mdTemplate" type="text/x-jsrender">
<div class="col-sm-12 col-lg-4 mt-4">
<div class="card h-100">
<!-- elements importants -->
<div class="card-header">
<h4 class="card-title text-truncate">
<!-- dc:title -->
{{:title}}
</h4>
<!-- dc:publisher -->
<h6 class="card-subtitle mb-2 text-muted text-truncate">{{:publisher}}</h6>
</div>
<div class="card-body">
<p>
<!-- dc:subject -->
{{for subject}}
<a href="#" class="badge badge-light cat-mdsearchtag">{{:}}</a>
{{/for}}
</p>
<!-- dc:description -->
<p class="card-text">{{:description}}</p>
</div>
<div class="card-footer">
<!-- acces button -->
<a class="btn btn-outline-primary" href="{{:identifier}}" target="_blank">Accéder</a>
<!-- details button -->
<button class="btn btn-outline-secondary" type="button" data-toggle="modal" data-target="#md-{{:id}}">
Détails
</button>
</div>
<!-- infos detaillees -->
<div class="modal fade" id="md-{{:id}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<!-- dc:title -->
<h4 class="modal-title" id="exampleModalLabel">{{:title}}</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-header">
<!-- dc:subject -->
{{for subject}}
<span class="badge badge-light">{{:}}</span>
{{/for}}
</div>
<div class="modal-body">
<!-- dc:description -->
<p>{{:description}}</p>
<!-- meta:why -->
<p>{{:why}}</p>
<hr />
<!-- meta:audience -->
<h5>Pour qui ?</h5>
<p>{{:audience}}</p>
<hr />
<!-- meta:how -->
<h5>Comment ?</h5>
<p>{{:how}}</p>
<hr />
<!-- meta:help -->
<h5>Aide ?</h5>
<p><a href="{{:help}}" target="_blank">{{:help}}</a></p>
<hr />
<!-- attributs -->
<ul class="text-secondary">
<!-- dc:source -->
<li>service fourni par {{:publisher}}</li>
<li>conception {{:creator}}</li>
</ul>
</div>
<div class="modal-footer">
<a class="btn btn-outline-primary" href="{{:identifier}}" target="_blank">Accéder</a>
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Fermer</button>
</div>
</div>
</div>
</div>
</div>
</div>
</script>
</body>
</html>