This repository was archived by the owner on May 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (49 loc) · 1.43 KB
/
index.html
File metadata and controls
50 lines (49 loc) · 1.43 KB
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
<html>
<head>
<meta charset="UTF-8" />
<link rel='stylesheet' type='text/css' href='http://steatite.hypertopic.org/stylesheet.css' />
</head>
<body>
<h1>Vitraux de Troyes</h1>
<h2>Parcours "<span id="topic"></span>"</h2>
<script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
<script>
$.ajax({
url: 'http://argos2.hypertopic.org/topic/56e092d8a6179a788c74b618b29801c0/f1520229979b11428f94a004f880c022',
dataType: 'json',
success: function(data) {
for (var r of data.rows) {
if (r.value.item) {
var picture_id = r.value.item.id;
$('body').append('<div class="picture" id="'+picture_id+'"/>');
} else if (r.value.name) {
$('#topic').text(r.value.name);
}
}
$.ajax({
url: 'http://steatite.hypertopic.org/corpus/Vitraux - Bénel',
dataType: 'json',
success: function(data) {
for (var s of data.rows) {
if (s.value.thumbnail) {
$('#'+s.key[1]).append('<img src="'+s.value.thumbnail+'" />');
}
}
}
});
$.ajax({
url: 'http://argos2.hypertopic.org/corpus/Vitraux - Bénel',
dataType: 'json',
success: function(data) {
for (var s of data.rows) {
if (s.value.spatial) {
$('#'+s.key[1]).append('<div><a href="https://www.google.fr/maps/place/'+s.value.spatial+'">'+s.value.spatial+'</a></div>');
}
}
}
});
}
});
</script>
</body>
</html>