diff -r 90ce8f55e350 -r 4c377df66569 web/hanna-arendt/script.js --- a/web/hanna-arendt/script.js Tue Apr 16 09:29:36 2013 +0200 +++ b/web/hanna-arendt/script.js Tue Apr 16 10:40:56 2013 +0200 @@ -479,7 +479,7 @@ if (tweet.annotations.length) { html += '
'; for (var i in tweet.annotations) { - html += '
'; + html += '
'; } html += '
'; } @@ -877,17 +877,17 @@ var startY = twCx.tlHeight - startTl * twCx.scaleY, endY = twCx.tlHeight - ( endTl + 1 ) * twCx.scaleY, path = "M0 " + twCx.tlHeight + "C" + .7*twCx.deltaX + " " + twCx.tlHeight + " " + .3*twCx.deltaX + " " + startY + " " + twCx.deltaX + " " + startY + "L" + twCx.tlWidth + " " + startY + "L" + twCx.tlWidth + " " + endY + "L" + twCx.deltaX + " " + endY + "C" + .3*twCx.deltaX + " " + endY + " " + .7*twCx.deltaX + " 0 0 0"; - twCx.tlPaper.path( path ).attr({ "stroke" : "none", "fill" : "#000080", "opacity" : .2 }); + twCx.tlPaper.path( path ).attr({ "stroke" : "none", "fill" : "#8080c0", "opacity" : .2 }); } // dessin de la date de début twCx.tlPaper.text(twCx.deltaX / 2, twCx.tlHeight - 7, new Date(twCx.tlOnDisplay[0].start).toTimeString().substr(0,5)) - .attr({ "text-anchor" : "middle", "font-size": "9px" }); + .attr({ "text-anchor" : "middle", "font-size": "9px", "fill": "#cccccc" }); // dessin de la date de fin twCx.tlPaper.text(twCx.deltaX / 2, 7, new Date(twCx.tlOnDisplay[twCx.tlOnDisplay.length - 1].end).toTimeString().substr(0,5)) - .attr({ "text-anchor" : "middle", "font-size": "9px" }); + .attr({ "text-anchor" : "middle", "font-size": "9px", "fill": "#cccccc" }); for (var i = 0; i < twCx.tlOnDisplay.length; i++) { var n = 0, @@ -904,8 +904,8 @@ // Si on est à une demi-heure, on trace un axe secondaire + heure if (i < twCx.tlOnDisplay.length - 1 && !(twCx.tlOnDisplay[i].end % 1800000)) { - twCx.tlPaper.path("M0 "+posY+"L" + twCx.tlWidth +" "+posY).attr({"stroke":"#ccc"}); - twCx.tlPaper.text(twCx.deltaX / 2, posY, new Date(twCx.tlOnDisplay[i].end).toTimeString().substr(0,5)).attr({ "text-anchor" : "middle", "font-size": "9px" }); + twCx.tlPaper.path("M0 "+posY+"L" + twCx.tlWidth +" "+posY).attr({"stroke":"#555"}); + twCx.tlPaper.text(twCx.deltaX / 2, posY, new Date(twCx.tlOnDisplay[i].end).toTimeString().substr(0,5)).attr({ "text-anchor" : "middle", "font-size": "9px", "fill": "#cccccc" }); } } @@ -1044,7 +1044,7 @@ var html = ''; for (var j in annotations) { if (j != "default") { - html += '' + annotations[j].display_name + ' ' + html += '' + annotations[j].display_name + ' ' } } $("#rech_list_annot").html(html);