web/index.html
changeset 0 7f8907368bd5
child 2 128bc58ed2e8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/index.html	Fri Oct 18 17:54:44 2013 +0200
@@ -0,0 +1,214 @@
+<!doctype html>
+<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="fr"> <![endif]-->
+<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="fr"> <![endif]-->
+<!--[if IE 8]>    <html class="no-js lt-ie9" lang="fr"> <![endif]-->
+<!--[if gt IE 8]><!--> <html class="no-js" lang="fr"> <!--<![endif]-->
+<head>
+  <meta charset="utf-8">
+  <title>Digital Studies - Home</title>
+  <link rel="stylesheet" href="./lib/bootstrap/css/bootstrap.min.css">
+  <link rel="stylesheet" href="./css/ds.css">
+</head>
+<body>
+ <div id="wrapper">
+	<header class="navbar navbar-inverse" role="banner">
+	  <div class="container">
+	    <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
+	      <ul class="nav navbar-nav">
+	        <li>
+	          <a href="#"><img src="./img/logodsrose2" alt="Logo Digital Studies" /></a>
+	        </li>
+	      </ul>
+          <ul class="nav navbar-nav" style="float:right;">
+              <li><a href="#">Lien 1</a></li>
+              <li><a href="#">Lien 2</a></li>
+              <li><a href="#">Lien 3</a></li>
+              <li><a href="#">Lien 4</a></li>
+          </ul>
+	    </nav>
+	  </div>
+	</header>
+	<div class="container">
+    <div class="row divctn">
+      <div class="col-md-4">
+        <div class="videotitle">
+          <p><a class="videolink" data-videoid="0">Vidéo chapitrée du résumé</a> <button type="button" class="btn btn-info btn-xs" data-toggle="collapse" data-target="#abstract">Voir plus</button></p>
+          <div id="abstract" class="collapse"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </div>
+          </p>
+        </div>
+        <div class="videotitle">
+          <p><a class="videolink" data-videoid="1">Chapitre 1 : L'état et le numérique</a></p>
+        </div>
+        <div class="videotitle">
+          <p><a class="videolink" data-videoid="2">Chapitre 2 : Technologies, savoirs et sociétés</a></p>
+        </div>
+        <div class="videotitle">
+          <p><a class="videolink" data-videoid="3">Chapitre 3 : Qui pour guider une politique du numérique : le marché ? ou la recherche académique ?</a></p>
+        </div>
+        <div class="videotitle">
+          <p><a class="videolink" data-videoid="4">Chapitre 4 : La polémique, mère de tous savoirs</a></p>
+        </div>
+        <div class="videotitle">
+          <p><a class="videolink" data-videoid="5">Chapitre 5 : La catégorisation contributive</a></p>
+        </div>
+        <div class="videotitle">
+          <p><a class="videolink" data-videoid="6">Chapitre 6 : Sur l'industrie éditoriale numérisée</a></p>
+        </div>
+        <div class="videotitle">
+          <p><a class="videolink" data-videoid="7">Chapitre 7 : Propositions pour France Université Numérique</a></p>
+        </div>
+        <div class="videotitle">
+          <p><a class="videolink" data-videoid="full">Vidéo complète chapitrée</a></p>
+        </div>
+      </div>
+      <div class="col-md-8" id="videocontainer">Pour commencer, cliquez sur "Vidéo chapitrée du résumé" ou "Vidéo complète chapitrée"</div>
+    </div>
+	</div>
+    <footer>
+      <div class="container row">
+        <div class="footer-img col-md-6">
+            <a href="http://www.iri.centrepompidou.fr" target="_blank"><img src="./img/logo_IRI_footer.png" alt="Logo IRI" /></a>
+            <a href="http://arsindustrialis.org/" target="_blank"><img src="./img/logoarsindustrialis.jpg" alt="Logo ars" /></a>
+            <a href="http://pharmakon.fr/" target="_blank"><img src="./img/logo_pharmakon.png" alt="Logo Pharmakon" /></a>
+        </div>
+        <div class="col-md-6">
+          <div class="text-right" id="copyright-version">©2013 <a href="http://www.iri.centrepompidou.fr" target="_blank">IRI</a></div>
+        </div>
+      </div>
+    </footer>
+  </div>
+  <script type="text/javascript" src="./lib/jquery-1.9.1.js"></script>
+  <script type="text/javascript" src="./lib/bootstrap/js/bootstrap.min.js"></script>
+  <script type="text/javascript">
+
+    var iframes = {
+      "0" : "<iframe src='http://ldt.iri.centrepompidou.fr//ldtplatform/ldt/embediframe/?content_id=53574ae4-49e9-11e2-b4ad-00145ea4a2be&project_id=a94ee060-49e9-11e2-b4ad-00145ea4a2be&createannotation=True&tag_titles=&polemic=all&annotations_list=True&autostart=True&annotation=True' width='570' height='1300' seamless='seamless'></iframe>",
+      "1" : "<p>iframe à venir, vidéo n°1</p>",
+      "2" : "<p>iframe à venir, vidéo n°2</p>",
+      "3" : "<p>iframe à venir, vidéo n°3</p>",
+      "4" : "<p>iframe à venir, vidéo n°4</p>",
+      "5" : "<p>iframe à venir, vidéo n°5</p>",
+      "6" : "<p>iframe à venir, vidéo n°6</p>",
+      "7" : "<p>iframe à venir, vidéo n°7</p>",
+      "full" : "<iframe src='http://ldt.iri.centrepompidou.fr//ldtplatform/ldt/embediframe/?content_id=62083f72-363c-11e3-8068-00145ea4a2be&project_id=032aebaa-37de-11e3-a863-00145ea4a2be&createannotation=True&tag_titles=&polemic=all&annotations_list=True&autostart=True&annotation=True' width='570' height='1300' seamless='seamless'></iframe>",
+    };
+
+    $(function() {
+      $(".videolink").click(function(e){
+        playVideo($(this).attr("data-videoid"));
+      });
+    });
+
+    function displayIframe(n){
+      console.log("displayIframe " + n);
+      $("#videocontainer").html(iframes[n]);
+    }
+    
+    function playVideo(n){
+      if (n=="1" || n=="2" || n=="3" || n=="4" || n=="5" || n=="6" || n=="7") {
+        $("#videocontainer").html("<p>à venir, vidéo n°" + n + "</p>");
+      }
+      else{
+        var s = ''
+ + '<p class="text-right"><a href="#" onclick="displayIframe(\'__NUM_JSON__\');return false;">Ajouter votre commentaire sur cette vidéo</a></p>'
+ + '<div>'
+ + '<div style="float:left; width:550px;" id="wrapper_player_project_a94ee060-49e9-11e2-b4ad-00145ea4a2be"><div>'
+ + '<div id="player_project_a94ee060-49e9-11e2-b4ad-00145ea4a2be_embed" class="iri_player_embed"></div>'
+ + '<script type="text/javascript" src="./lib/metadataplayer/LdtPlayer-core.js"><\/script>'
+ + '<script type="text/javascript">'
+ + 'if (typeof jQuery == "undefined") {'
+ + '    jQuery = IriSP.jQuery;'
+ + '   }'
+ + '    var metadatas = {metadata: {url: "./json/data__NUM_JSON__.json"}};'
+ + '    var metadata_key = "metadata";'
+ + '  IriSP.libFiles.defaultDir = "./js";'
+ + '  IriSP.libFiles.locations.jwPlayerSWF = "./player.swf";'
+ + '  IriSP.libFiles.locations.cssjQueryUI = "./css/jquery-ui.css";'
+ + '  IriSP.language = "fr-fr";'
+ + '  IriSP.widgetsDir = "./lib/metadataplayer";'
+ + '  var _metadata = {'
+ + '      url: metadatas[metadata_key].url,'
+ + '      format: "ldt"'
+ + '  };'
+ + '  var _config = {'
+ + '      width: "550",'
+ + '      container: "player_project_a94ee060-49e9-11e2-b4ad-00145ea4a2be_embed",'
+ + '      css: "./lib/metadataplayer/LdtPlayer-core.css",'
+ + '      default_options: {'
+ + '          metadata: _metadata'
+ + '      },'
+ + '      widgets: ['
+ + '          {'
+ + '              type: "AutoPlayer",'
+ + '              height: "300",'
+ + '              autostart:  true,'
+ + '              url_transform: function(url) { if(url.substr(url.length - 4).toLowerCase()==".flv"){ return url.replace("/ddc_player/video/","/ddc_player/flv:video/"); } return url.replace("/ddc_player/video/","/ddc_player/mp4:video/"); }'
+ + '          },'
+ + '          {'
+ + '              type: "Polemic",'
+ + '              annotation_type: false,'
+ + '              defaultcolor: "#585858",'
+ + '              foundcolor: "#fc00ff",'
+ + '              polemics : ['
+ + '                      {'
+ + '                          "name" : "OK",'
+ + '                          "keywords" : [ "++" ],'
+ + '                          "color" : "#1d973d"'
+ + '                      },'
+ + '                      {'
+ + '                          "name" : "KO",'
+ + '                          "keywords" : [ "--" ],'
+ + '                          "color" : "#ce0a15"'
+ + '                      },'
+ + '                      {'
+ + '                          "name" : "REF",'
+ + '                          "keywords" : [ "==", "http://" ],'
+ + '                          "color" : "#c5a62d"  '
+ + '                      },'
+ + '                      {'
+ + '                          "name" : "Q",'
+ + '                          "keywords" : [ "?" ],'
+ + '                          "color" : "#036aae"'
+ + '                      }'
+ + '                  ]'
+ + '          }'
+ + '          ,{'
+ + '              type: "Slider"'
+ + '          }'
+ /*+ '          ,{'
+ + '              type: "AnnotationsList",'
+ + '              container: "AnnotationsList_ext",'
+ + '              ajax_url: "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/1.0/segments/bytimecode/{{media}}/{{begin}}/{{end}}",'
+ + '              ajax_granularity : 300000,'
+ + '              default_thumbnail : "./css/imgs/video_sequence.png",'
+ + '              show_audio: true,'
+ + '              rtmp_streamer: "rtmp://media.iri.centrepompidou.fr/ddc_micro_record/"'
+ + '          }'*/
+ + '          ,{'
+ + '              type: "Controller"'
+ + '          }'
+ + '          ,{'
+ + '              type: "Segments",'
+ + '              annotation_type: ["chap","découpage"]'
+ + '          }'
+ + '          ,{'
+ + '              type: "Annotation"'
+ + '          }'
+ + '          ,{'
+ + '              type: "Mediafragment"'
+ + '          }'
+ + '      ]'
+ + '  };'
+ + '  _myPlayer = new IriSP.Metadataplayer(_config);'
+ + '  <\/script>'
+ + '  </div>'
+ + '</div>'
+ + '<div style="float:left; width:400px;" id="AnnotationsList_ext"></div>'
+ + '</div>';
+      
+        $("#videocontainer").html(s.replace(/__NUM_JSON__/g, n));
+      }
+    }
+  </script>
+</body>
+</html>
\ No newline at end of file