--- a/timeline/timeline.html Tue Aug 13 11:14:25 2013 +0200
+++ b/timeline/timeline.html Tue Aug 13 13:16:26 2013 +0200
@@ -6,14 +6,14 @@
<title>Tests Timeline</title>
<meta name="description" content="" />
<meta name="author" content="Institut de Recherche et d'Innovation (IRI)" />
- <link rel="stylesheet" type="text/css" href="css/jquery-ui.min.css" />
+ <link rel="stylesheet" type="text/css" href="lib/jquery-ui.min.css" />
<link rel="stylesheet" type="text/css" href="css/timeline.css" />
<style type="text/css">
h1 {
text-align: center; font-size: 20px; font-weight: bold; margin: 5px;
}
#timeline {
- width: 950px; margin: 5px auto; text-align: center;
+ width: 780px; margin: 5px auto; text-align: center;
}
</style>
<script type="text/javascript" src="lib/jquery.min.js"> </script>
@@ -24,22 +24,25 @@
<script type="text/javascript" src="js/timeline.js"> </script>
<script type="text/javascript">
var _tl;
- $(function() {
+ $.getJSON(
+ 'http://anarchy2.solicis.fr/api/back/user?process=orm_entity_authenticate&login=anarchy@solicis.fr&password=anarchy&callback=?',
+ function(data) {
+ var token = data.data[0].token;
+ console.log(token);
_tl = new Tlns.Classes.Timeline({
- url_univers: 'data/api_univers.json',
- urls_occurrences: [
- {
- url: 'data/api_occurrence_publication.json',
- type: 'publication'
- },
- {
- url: 'data/api_occurrence_narrative.json',
- type: 'narrative'
- }],
+ email: 'anarchy@solicis.fr',
+ token: token,
+ linelabels: [
+ "Les jalons de l'histoire",
+ "L'actualité",
+ "Les appels à contribuer",
+ "Les Persos d'Anarchy"
+ ],
+ api_endpoint: "http://anarchy2.solicis.fr/api/cms/content?callback=?",
container: "timeline",
level: 1,
sync_now: false,
- central_time: Date.parse("2012-07-26T00:00:00Z")
+ central_time: Date.parse("2013-07-18T00:00:00Z")
});
});
</script>