17 <script type="text/javascript" src="lib/underscore-min.js"> </script> |
17 <script type="text/javascript" src="lib/underscore-min.js"> </script> |
18 <script type="text/javascript" src="lib/mustache.js"> </script> |
18 <script type="text/javascript" src="lib/mustache.js"> </script> |
19 <script type="text/javascript" src="js/timeline.js"> </script> |
19 <script type="text/javascript" src="js/timeline.js"> </script> |
20 <script type="text/javascript"> |
20 <script type="text/javascript"> |
21 var _tl; |
21 var _tl; |
22 $.getJSON( |
22 $/*.getJSON*/( |
23 'http://anarchy2.solicis.fr/api/back/user?process=orm_entity_authenticate&login=anarchy@solicis.fr&password=anarchy&callback=?', |
23 /* 'http://anarchy2.solicis.fr/api/back/user?process=orm_entity_authenticate&login=anarchy@solicis.fr&password=anarchy&callback=?', |
|
24 */ |
24 function(data) { |
25 function(data) { |
25 var token = data.data[0].token; |
26 /* var token = data.data[0].token; |
26 console.log(token); |
27 console.log(token); |
|
28 */ |
27 _tl = new Tlns.Classes.Timeline({ |
29 _tl = new Tlns.Classes.Timeline({ |
28 email: 'anarchy@solicis.fr', |
30 email: 'anarchy@solicis.fr', |
29 token: token, |
31 token: "token", |
30 api_endpoint: "http://anarchy2.solicis.fr/api/cms/content?callback=?", |
32 api_endpoint: "data/solicis.json",//"http://anarchy2.solicis.fr/api/cms/content?callback=?", |
31 container: "timeline", |
33 container: "timeline", |
32 sync_now: false, |
34 sync_now: false, |
33 central_time: Date.now(),//Date.parse("2013-07-18T00:00:00Z"), |
35 central_time: Date.now(),//Date.parse("2013-07-18T00:00:00Z"), |
34 maxtime: Date.now(), |
36 maxtime: Date.now(), |
35 picto_url: "img/", |
37 picto_url: "img/", |
36 url_base: "http://anarchy2.solicis.fr" |
38 url_base: "http://anarchy2.solicis.fr" |
37 }); |
39 }); |
38 }); |
40 }); |
39 </script> |
41 </script> |
40 </head> |
42 </head> |
41 |
43 |
42 <body> |
44 <body> |
43 <h1>Tests Timeline</h1> |
45 <h1>Tests Timeline</h1> |