|
1 <!DOCTYPE html> |
|
2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" th:lang="${#ctx.getLocale().toLanguageTag()}"> |
|
3 <head> |
|
4 <meta charset="utf-8" /> |
|
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
6 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
|
7 |
|
8 <title>RENKAN</title> |
|
9 <meta name="description" content="" /> |
|
10 <meta name="author" content="Institut de Recherche et d'Innovation" /> |
|
11 <link rel="icon" href="../../static/img/favicon.ico" th:href="@{/static/img/favicon.ico}" type="image/x-icon" /> |
|
12 <script src="lib/jquery.min.js" th:src="@{/static/lib/jquery.min.js}" ></script> |
|
13 <script src="lib/jquery.mousewheel.min.js" th:src="@{/static/lib/jquery.mousewheel.min.js}"></script> |
|
14 <script src="lib/underscore-min.js" th:src="@{/static/lib/underscore-min.js}"></script> |
|
15 <script src="lib/backbone.js" th:src="@{/static/lib/backbone.js}"></script> |
|
16 <script src="lib/backbone-relational.js" th:src="@{/static/lib/backbone-relational.js}"></script> |
|
17 <script src="lib/paper.js" th:src="@{/static/lib/paper.js}"></script> |
|
18 <script type="text/javascript" th:inline="javascript"> |
|
19 /*<![CDATA[*/ |
|
20 var require = { |
|
21 baseUrl: /*[[@{/static/js/}]]*/"" |
|
22 }; |
|
23 /*]]>*/ |
|
24 </script> |
|
25 <script src="js/config.js" th:src="@{/static/js/config.js}"></script> |
|
26 <script type="text/javascript" th:inline="javascript"> |
|
27 var cowebConfig = { |
|
28 baseUrl: window.location.protocol + '//' + window.location.host, |
|
29 adminUrl : dojoConfig.baseUrl+'ocw_admin', |
|
30 debug: /*[[${coweb_debug}]]*/false, |
|
31 useWebSockets: /*[[${coweb_websockets}]]*/false |
|
32 }; |
|
33 </script> |
|
34 <script type="text/javascript" src="lib/dojo/dojo.js" data-dojo-config="isDebug: true, parseOnLoad: true" th:src="@{/static/lib/dojo/dojo.js}"></script> |
|
35 <script type="text/javascript" th:inline="javascript"> |
|
36 /*<![CDATA[*/ |
|
37 function startRenkan() { |
|
38 var renkan_config = { |
|
39 static_url : /*[[@{/static/}]]*/ "", |
|
40 read_only: true, |
|
41 bins: [ |
|
42 { |
|
43 type: "Wikipedia", |
|
44 lang: "en", |
|
45 search: "Digital Humanities" |
|
46 }, |
|
47 { |
|
48 type: "Wikipedia", |
|
49 lang: "ja", |
|
50 search: "Digital Humanities" |
|
51 }, |
|
52 { |
|
53 title: "LDT Project", |
|
54 type: "Ldt", |
|
55 ldt_type: "Project", |
|
56 project_id: "67280b1c-ff30-11e0-a82d-00145ea49a02", |
|
57 ldt_platform: "http://ldt.iri.centrepompidou.fr/" |
|
58 } |
|
59 ], |
|
60 search: [ |
|
61 { |
|
62 type: "Wikipedia", |
|
63 lang: "fr" |
|
64 }, |
|
65 { |
|
66 type: "Wikipedia", |
|
67 lang: "en" |
|
68 }, |
|
69 { |
|
70 type: "Wikipedia", |
|
71 lang: "ja" |
|
72 } |
|
73 ], |
|
74 property_files: [ |
|
75 /*[[@{/static/data/properties.json}]]*/ "data/properties.json", |
|
76 ], |
|
77 }; |
|
78 var space_config = /*[[${space.binConfig}?${space.binConfig}:'{}']]*/"{}"; |
|
79 space_config = JSON.parse(space_config || "{}"); |
|
80 var _renkan = new Rkns.Renkan($.extend({}, renkan_config, space_config)); |
|
81 var corenkanConfig = { |
|
82 projectId: /*[[${project.id}]]*/"new_project", |
|
83 renkan : _renkan |
|
84 }; |
|
85 |
|
86 require({corenkanConfig: corenkanConfig}, ["corenkan"], function(corenkan) { |
|
87 corenkan.app.onStatusChange = function(status) { |
|
88 }; |
|
89 }); |
|
90 } |
|
91 /*]]>*/ |
|
92 </script> |
|
93 <script src="js/renkan.js" th:src="@{/static/js/renkan.js}"></script> |
|
94 <link rel="stylesheet" href="css/renkan.css" th:href="@{/static/css/renkan.css}"/> |
|
95 <link rel="stylesheet" href="../../static/css/style.css" th:href="@{/static/css/style.css}"/> |
|
96 <link rel="stylesheet" href="../../static/css/renkanProject.css" th:href="@{/static/css/renkanProject.css}"/> |
|
97 </head> |
|
98 <body> |
|
99 <header><a href="/" th:href="@{/}">RENKAN</a> > <a href=".." th:href="@{'/s/'+${space.id}}">Space</a></header> |
|
100 <div id="renkan-wrapper"> |
|
101 <div id="renkan-container"> |
|
102 <div id="renkan"></div> |
|
103 </div> |
|
104 </div> |
|
105 <footer id="footer" th:include="fragment/pageFragment :: footerFragment"> |
|
106 <div id="version">© <span class="version-date">2014</span> <a href="http://www.iri.centrepompidou.fr" target="_blanck">IRI</a> - Version <span class="version-version">0.0</span></div> |
|
107 </footer> |
|
108 </body> |
|
109 </html> |