# HG changeset patch # User veltr # Date 1379612069 -7200 # Node ID 7d1c2c21d8914036a9c5b2145b1c509ab3576c38 # Parent 907a53a35a95ca6cf978a952d2be69006ef99a24 Added pictos diff -r 907a53a35a95 -r 7d1c2c21d891 timeline/css/base.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/timeline/css/base.css Thu Sep 19 19:34:29 2013 +0200 @@ -0,0 +1,55 @@ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} + +ul, li { + list-style: none; +} + +input::-moz-focus-inner /*Remove button padding in FF*/ +{ + border: 0; + padding: 0; +} + +table { + border-collapse: separate; border-spacing: 0; +} + +th, td { + vertical-align: top; +} + +img a { + border: none; +} + +body { + font-size: 10px; font-family: Arial, Helvetica, sans-serif; +} + +/* FRONT PAGE SPECIFIC */ + +h1 { + text-align: center; font-size: 20px; font-weight: bold; margin: 5px; +} +#timeline { + width: 780px; margin: 5px auto; text-align: center; +} \ No newline at end of file diff -r 907a53a35a95 -r 7d1c2c21d891 timeline/css/timeline.css --- a/timeline/css/timeline.css Wed Sep 04 18:23:51 2013 +0200 +++ b/timeline/css/timeline.css Thu Sep 19 19:34:29 2013 +0200 @@ -1,52 +1,3 @@ -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -ul, li { - list-style: none; -} - -input::-moz-focus-inner /*Remove button padding in FF*/ -{ - border: 0; - padding: 0; -} - -table { - border-collapse: separate; border-spacing: 0; -} - -th, td { - vertical-align: top; -} - -img a { - border: none; -} - -body { - font-size: 10px; font-family: Arial, Helvetica, sans-serif; -} - -/************************************************/ - .Tl-Main { font-family: Arial, Helvetica, sans-serif; text-align: left; position: relative; @@ -123,7 +74,7 @@ } .Tl-Occurrence { - width: 38px; height: 38px; cursor: pointer; border: 2px solid rgba(255,255,255,.9); + width: 32px; height: 32px; cursor: pointer; border: 2px solid rgba(255,255,255,.9); } .Tl-Occurrence img { diff -r 907a53a35a95 -r 7d1c2c21d891 timeline/img/flash.png Binary file timeline/img/flash.png has changed diff -r 907a53a35a95 -r 7d1c2c21d891 timeline/img/previously.png Binary file timeline/img/previously.png has changed diff -r 907a53a35a95 -r 7d1c2c21d891 timeline/img/regle.png Binary file timeline/img/regle.png has changed diff -r 907a53a35a95 -r 7d1c2c21d891 timeline/img/roman.png Binary file timeline/img/roman.png has changed diff -r 907a53a35a95 -r 7d1c2c21d891 timeline/img/sondage.png Binary file timeline/img/sondage.png has changed diff -r 907a53a35a95 -r 7d1c2c21d891 timeline/img/struggle.png Binary file timeline/img/struggle.png has changed diff -r 907a53a35a95 -r 7d1c2c21d891 timeline/img/temoignage.png Binary file timeline/img/temoignage.png has changed diff -r 907a53a35a95 -r 7d1c2c21d891 timeline/js/timeline.js --- a/timeline/js/timeline.js Wed Sep 04 18:23:51 2013 +0200 +++ b/timeline/js/timeline.js Thu Sep 19 19:34:29 2013 +0200 @@ -119,8 +119,14 @@ height : 225, min_width : 400, min_height : 100, - main_width : 700, - linelabels : [], + main_width : 726, + linelabels : [ + "RDV", + "Actu", + "Appels", + "Persos" + ], + picto_url: "img/", timescales : [{ label : "Semaine", span : 7 * 86400 * 1000, @@ -154,22 +160,58 @@ occurrences: [], grid_spacing: 12, tooltip_date_format: '{{dayOfMonth}} {{shortMonthName}} {{year}} {{0hours}}:{{0minutes}}', - statuses: { - "valide": "Validée", - "a_valider": "A valider", - "a_realiser": "A réaliser" - }, - class_labels: { - "Cms\\Previously": "Précédemment", - "Cms\\Chapter": "Chapitre", - "Cms\\Article": "Article", - "Cms\\Poll": "Sondage", - "Cms\\CallWitness": "Appel à Témoins", - "Cms\\CallCharacter": "Appel à Personnage", - "Cms\\Message": "Message", - "Cms\\Rule": "Règle", - "Cms\\Video": "Vidéo", - "Cms\\SweetCadaver": "Cadavre exquis" + class_info: { + "Cms\\Previously": { + label: "Précédemment", + univers_id: 0, + picto: "previously.png", + show: true + }, + "Cms\\Chapter": { + label: "Roman", + univers_id: 0, + picto: "roman.png", + show: true + }, + "Cms\\FlashTrash": { + label: "JT", + univers_id: 0, + picto: "flash.png", + show: true + }, + "Cms\\Article": { + label: "Article", + univers_id: 1, + show: true + }, + "Cms\\Poll": { + label: "Sondage", + univers_id: 2, + picto: "sondage.png", + show: true + }, + "Cms\\CallWitness": { + label: "Appel à Témoins", + univers_id: 2, + picto: "temoignage.png", + show: true + }, + "Cms\\Rule": { + label: "Règle du jour", + univers_id: 2, + picto: "regle.png", + show: true + }, + "Cms\\CallCharacter": { + label: "Appel à Personnage", + univers_id: 3, + show: true + }, + "Cms\\SweetCadaver": { + label: "Cadavre exquis", + univers_id: 3, + show: true + } }, maxtime: false, url_base: "" @@ -191,7 +233,7 @@ Tlns.Templates.Univers = '