| author | ymh <ymh.work@gmail.com> |
| Thu, 14 Mar 2013 00:29:09 +0100 | |
| changeset 77 | 4f2511a70880 |
| parent 59 | 69924ca1b233 |
| child 80 | 5295e118320b |
| permissions | -rw-r--r-- |
|
47
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
<!DOCTYPE html> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
<html lang="fr" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" > |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
<head> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
<meta charset="utf-8" /> |
| 51 | 5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
47
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
| 59 | 7 |
<title>RENKAN</title> |
|
47
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
<meta name="description" content="" /> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
<meta name="author" content="Institut de Recherche et d'Innovation" /> |
| 59 | 10 |
<link rel="icon" href="favicon.ico" th:href="@{/static/img/favicon.ico}" type="image/x-icon" /> |
|
47
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
<script src="lib/jquery.min.js" th:src="@{/static/lib/jquery.min.js}" ></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
<script src="lib/jquery.mousewheel.min.js" th:src="@{/static/lib/jquery.mousewheel.min.js}"></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
<script src="lib/underscore-min.js" th:src="@{/static/lib/underscore-min.js}"></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
<script src="lib/backbone.js" th:src="@{/static/lib/backbone.js}"></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
<script src="lib/backbone-relational.js" th:src="@{/static/lib/backbone-relational.js}"></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
<script src="lib/paper.js" th:src="@{/static/lib/paper.js}"></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
<script src="js/main.js" th:src="@{/static/js/main.js}"></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
<script src="js/i18n.js" th:src="@{/static/js/i18n.js}"></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
<script src="js/models.js" th:src="@{/static/js/models.js}"></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
<script src="js/twitter-bin.js" th:src="@{/static/js/twitter-bin.js}"></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
21 |
<script src="js/wikipedia-bin.js" th:src="@{/static/js/wikipedia-bin.js}"></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
<script src="js/ldtjson-bin.js" th:src="@{/static/js/ldtjson-bin.js}"></script> |
| 77 | 23 |
<script src="js/list-bin.js" th:src="@{/static/js/list-bin.js}"></script> |
|
47
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
24 |
<script src="js/paper-renderer.js" th:src="@{/static/js/paper-renderer.js}"></script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
25 |
<script type="text/javascript" src="js/config.js" th:src="@{/static/js/config.js}"></script> |
| 54 | 26 |
<script type="text/javascript" src="lib/dojo/dojo.js" data-dojo-config="isDebug: true, parseOnLoad: true" th:src="@{/static/lib/dojo/dojo.js}"></script> |
|
47
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
27 |
<script type="text/javascript" th:inline="javascript"> |
| 54 | 28 |
$(function() { |
| 77 | 29 |
var renkan_config = { |
|
47
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
30 |
url: /*[[@{/rest/projects/}+${project.id}]]*/ "data/simple-persist.php", |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
31 |
static_url : /*[[@{/static/}]]*/ "", |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
32 |
bins: [ |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
33 |
{ |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
34 |
bin: Rkns.Wikipedia.Bin, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
35 |
lang: "en", |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
36 |
search: "Digital Humanities" |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
37 |
}, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
38 |
{ |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
39 |
bin: Rkns.Wikipedia.Bin, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
40 |
lang: "ja", |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
41 |
search: "Digital Humanities" |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
42 |
}, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
43 |
{ |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
44 |
bin: Rkns.Twitter.Bin, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
45 |
search: "Digital Humanities" |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
46 |
}, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
47 |
{ |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
48 |
title: "LDT Project", |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
49 |
bin: Rkns.Ldt.ProjectBin, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
50 |
project_id: "67280b1c-ff30-11e0-a82d-00145ea49a02", |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
51 |
ldt_platform: "http://ldt.iri.centrepompidou.fr/" |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
52 |
} |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
53 |
], |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
54 |
search: [ |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
55 |
{ |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
56 |
type: Rkns.Wikipedia.Search, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
57 |
lang: "fr" |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
58 |
}, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
59 |
{ |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
60 |
type: Rkns.Wikipedia.Search, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
61 |
lang: "en" |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
62 |
}, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
63 |
{ |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
64 |
type: Rkns.Wikipedia.Search, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
65 |
lang: "ja" |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
66 |
}, |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
67 |
{ |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
68 |
type: Rkns.Twitter.Search |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
69 |
} |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
70 |
], |
| 77 | 71 |
}; |
72 |
var space_config = /*[[${space.binConfig}?${space.binConfig}:'{}']]*/"{}"; |
|
73 |
space_config = JSON.parse(space_config); |
|
74 |
for ( var i in (('bins' in space_config)?space_config.bins:[])) { |
|
75 |
var bin_def = space_config.bins[i]; |
|
76 |
bin_def.bin = eval(bin_def.bin); |
|
77 |
} |
|
78 |
for ( var i in (('search' in space_config)?space_config.search:[])) { |
|
79 |
var search_def = space_config.search[i]; |
|
80 |
search_def.type = eval(bin_def.type); |
|
81 |
} |
|
82 |
var _renkan = new Rkns.Renkan($.extend({}, renkan_config, space_config)); |
|
| 54 | 83 |
var corenkanConfig = { |
84 |
projectId: /*[[${project.id}]]*/"new_project", |
|
85 |
renkan : _renkan |
|
86 |
}; |
|
87 |
||
88 |
require({corenkanConfig: corenkanConfig}, ["corenkan"], function(corenkan) { |
|
89 |
corenkan.app.onStatusChange = function(status) { |
|
90 |
if(status == "ready") { |
|
| 77 | 91 |
_renkan.renderer.autoScale(); |
| 54 | 92 |
} |
93 |
}; |
|
94 |
}); |
|
|
47
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
95 |
}); |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
96 |
</script> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
97 |
<link rel="stylesheet" href="css/renkan.css" th:href="@{/static/css/renkan.css}"/> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
98 |
<style type="text/css"> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
99 |
</style> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
100 |
</head> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
101 |
|
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
102 |
<body> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
103 |
<div id="renkan"></div> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
104 |
</body> |
|
267d67791e05
first stabilization of editing a renkan.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
105 |
</html> |