|
288
|
1 |
{% extends "base.html" %} |
|
|
2 |
{% load static %} |
|
|
3 |
|
|
|
4 |
{% block title %}{{block.super}} > {{datasheet.title}}{% endblock %} |
|
|
5 |
|
|
|
6 |
{% block css_import %} |
|
|
7 |
{{block.super}} |
|
|
8 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/additionnal_renkan.css' %}" /> |
|
|
9 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/lib/renkan/css/renkan.css' %}" /> |
|
|
10 |
<style type="text/css"> |
|
|
11 |
.rnk-wrapper, .rnk-container{ |
|
|
12 |
width: 100%; |
|
|
13 |
} |
|
|
14 |
.rnk-container{ |
|
|
15 |
height: 100%; |
|
|
16 |
width: 100%; |
|
|
17 |
} |
|
|
18 |
.rnk-wrapper{ |
|
|
19 |
height: 100%; |
|
|
20 |
-webkit-box-sizing: border-box; |
|
|
21 |
-moz-box-sizing: border-box; |
|
|
22 |
box-sizing: border-box; |
|
|
23 |
} |
|
|
24 |
</style> |
|
|
25 |
{% endblock %} |
|
|
26 |
|
|
|
27 |
{% block js_import %} |
|
|
28 |
{{block.super}} |
|
|
29 |
<script src="{% static 'hdalab/lib/jquery.mousewheel.min.js' %}"></script> |
|
|
30 |
<script src="{% static 'hdalab/lib/underscore-min.js' %}"></script> |
|
|
31 |
<script src="{% static 'hdalab/lib/backbone.js' %}"></script> |
|
|
32 |
<script src="{% static 'hdalab/lib/backbone-relational.js' %}"></script> |
|
|
33 |
<script src="{% static 'hdalab/lib/paper.js' %}"></script> |
|
|
34 |
<script type="text/javascript"> |
|
|
35 |
var require = { |
|
|
36 |
baseUrl: "{% static 'hdalab/ntm/' %}" |
|
|
37 |
}; |
|
|
38 |
</script> |
|
|
39 |
<script src="{% static 'hdalab/lib/require.js' %}"></script> |
|
|
40 |
<script src="{% static 'hdalab/lib/renkan/renkan.js' %}"></script> |
|
|
41 |
<script type="text/javascript"> |
|
|
42 |
|
|
|
43 |
function startRenkan(){ |
|
|
44 |
var _renkan = new Rkns.Renkan({ |
|
|
45 |
static_url : "{% static 'hdalab/lib/renkan/' %}", |
|
|
46 |
search: [ |
|
|
47 |
{ |
|
|
48 |
type: "Ldt" |
|
|
49 |
}, |
|
|
50 |
{ |
|
|
51 |
type: "Wikipedia", |
|
|
52 |
lang: "fr" |
|
|
53 |
}, |
|
|
54 |
{ |
|
|
55 |
type: "Wikipedia", |
|
|
56 |
lang: "ja" |
|
|
57 |
} |
|
|
58 |
], |
|
|
59 |
bins: [ |
|
|
60 |
{ |
|
|
61 |
type: "ResourceList", |
|
|
62 |
title: "Ressources", |
|
|
63 |
list: [ |
|
|
64 |
{ |
|
|
65 |
url: "http://www.histoiredesarts.culture.fr/", |
|
|
66 |
title: "Histoire des arts", |
|
|
67 |
description: "Portail Histoire des arts sur culture.fr", |
|
|
68 |
image: "http://www.culture.fr/extension/culture_fr/design/culture/images/favicon.ico" |
|
|
69 |
}, |
|
|
70 |
{ |
|
|
71 |
url: "http://www.google.com/", |
|
|
72 |
title: "Google", |
|
|
73 |
description: "Search engine", |
|
|
74 |
image: "http://www.google.fr/images/srpr/logo4w.png" |
|
|
75 |
}, |
|
|
76 |
"Polemic Tweet http://www.polemictweet.com", |
|
|
77 |
"Twitter http://www.twitter.com/" |
|
|
78 |
] |
|
|
79 |
} |
|
|
80 |
], |
|
|
81 |
/*property_files: [ "data/properties.json" ], |
|
|
82 |
node_fill_color: false*/ |
|
|
83 |
language: "fr" |
|
|
84 |
}); |
|
|
85 |
Rkns.jsonIO(_renkan, { |
|
289
|
86 |
url: "{% url 'renkan_get_put' %}" + window.location.search |
|
288
|
87 |
}); |
|
|
88 |
}; |
|
|
89 |
</script> |
|
|
90 |
{% endblock %} |
|
|
91 |
|
|
|
92 |
{% block main_content %} |
|
|
93 |
<div class="rnk-wrapper"> |
|
|
94 |
<div class="rnk-container"> |
|
|
95 |
<div id="renkan"></div> |
|
|
96 |
</div> |
|
|
97 |
</div> |
|
|
98 |
{% endblock %} |