# HG changeset patch # User Raphael Velt # Date 1366101656 -7200 # Node ID 4c377df665697365c4847d24fabe8f07abae1c43 # Parent 90ce8f55e35013746f54f72455d912ea3185822c Style adjustments for Hanna Arendt diff -r 90ce8f55e350 -r 4c377df66569 web/hanna-arendt/arendt-background.jpg Binary file web/hanna-arendt/arendt-background.jpg has changed diff -r 90ce8f55e350 -r 4c377df66569 web/hanna-arendt/index.php --- a/web/hanna-arendt/index.php Tue Apr 16 09:29:36 2013 +0200 +++ b/web/hanna-arendt/index.php Tue Apr 16 10:40:56 2013 +0200 @@ -8,87 +8,80 @@ * Do we already have a valid Access Token or need to go get one? */ -if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) ) { - +if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])) { + $_SESSION['TWITTER_REDIRECT_URL'] = URL_ROOT . basename(__DIR__) . '/' . basename(__FILE__); // Permanent redirection header("HTTP/1.1 301 Moved Permanently"); - header("Location: client.php?CONNECT=true&rep=".basename(__DIR__)); + header("Location: client.php?CONNECT=true&rep=" . basename(__DIR__)); exit(); - + } - ?> - - - Avant-Première Hanna Arendt : Tweet Wall - - - - + + + Avant-Première Hanna Arendt : Tweet Wall + + + + + - - - - - - + + + + + + + + + + + + + +
+
+ + - - - - - - - -
- - - -
+
-
-
- - - -
-
-
- - -
-
- Rechercher par polémique :
-
-
-
- -
-
    -
    -
    -
    -
    -
    -
    - +
    +
    + + + +
    +
    +
    + + +
    +
    + Rechercher par polémique : +
    +
    +
    +
    + +
    +
      +
      +
      +
      +
      +
      +
      +
      - + \ No newline at end of file diff -r 90ce8f55e350 -r 4c377df66569 web/hanna-arendt/paris.php --- a/web/hanna-arendt/paris.php Tue Apr 16 09:29:36 2013 +0200 +++ b/web/hanna-arendt/paris.php Tue Apr 16 10:40:56 2013 +0200 @@ -30,6 +30,7 @@ + @@ -46,47 +47,40 @@ - -
      - -
      +
      + +
      -
      -
      - - - -
      -
      -
      - - -
      -
      - Rechercher par polémique :
      -
      -
      -
      - -
      -
        -
        -
        -
        -
        -
        -
        - +
        +
        + + + +
        +
        +
        + + +
        +
        + Rechercher par polémique : +
        +
        +
        +
        + +
        +
          +
          +
          +
          +
          +
          +
          +
          - + \ No newline at end of file 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); diff -r 90ce8f55e350 -r 4c377df66569 web/hanna-arendt/style.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/hanna-arendt/style.css Tue Apr 16 10:40:56 2013 +0200 @@ -0,0 +1,42 @@ +body { + background: #222222; +} + + +#main { + position: absolute; background: url(arendt-background.jpg); + left: 50%; top: 50%; width: 1400px; height: 875px; + margin-top: -437px; margin-left: -700px; +} + +#visionplayer_1101 { + position: absolute; margin: 5px; width: 836px; height: 440px; left: 34px; top: 227px; +} + +#vizcontainer { + position: absolute; left: 915px; top: 158px; width: 452px; height: 507px; overflow: hidden; +} + +#tweetlist { + background: #222222; color: #cccccc; +} + +li.tweet { + background: none; +} + +.full p.tweet_text { + color: #ffffff; +} + +#inp_q, #recherche_annot { + background: #555555; color: #cccccc; +} + +li.tweet, li.placeholder { + border-color: #666666; +} + +li.full { + border-right: 10px solid #ff0 !important; +} \ No newline at end of file