equal
deleted
inserted
replaced
25 IriSP.endpoints = { |
25 IriSP.endpoints = { |
26 annotations_by_timecode : "http://theend-integ.ftinfo.fr/theend/api/ldt/1.0/segments/bytimecode/__CONTENT_ID__/__BEGIN__/__END__", |
26 annotations_by_timecode : "http://theend-integ.ftinfo.fr/theend/api/ldt/1.0/segments/bytimecode/__CONTENT_ID__/__BEGIN__/__END__", |
27 post_annotation : "testdata/post-test.php", |
27 post_annotation : "testdata/post-test.php", |
28 tag_page : "tag.html?tag=__TAG__" |
28 tag_page : "tag.html?tag=__TAG__" |
29 }; |
29 }; |
30 if (typeof window.localStorage !== "undefined" && window.localStorage.getItem !== "undefined") { |
|
31 var res = window.localStorage.getItem("resolution") || "SD"; |
|
32 } else { |
|
33 var res = "SD"; |
|
34 } |
|
35 IriSP.video_url_transform = function(url) { |
|
36 return url.replace(/[SH]D(\.[a-z0-9]+)$/,res + "$1"); |
|
37 } |
|
38 $(function() { |
30 $(function() { |
39 IriSP.contentplayer({ |
31 IriSP.contentplayer({ |
40 project_url: "http://theend-integ.ftinfo.fr/theend/ldt/cljson/id/" + project |
32 project_url: "http://theend-integ.ftinfo.fr/theend/ldt/cljson/id/" + project |
41 }); |
|
42 |
|
43 $(".sdhdgroup").addClass(res); |
|
44 |
|
45 $(".sdhdbtn").click(function() { |
|
46 var newres = $(this).attr("title"); |
|
47 if (res !== newres) { |
|
48 window.localStorage.setItem("resolution", newres); |
|
49 document.location.reload(); |
|
50 } |
|
51 return false; |
|
52 }); |
33 }); |
53 }); |
34 }); |
54 </script> |
35 </script> |
55 |
36 |
56 </head> |
37 </head> |
121 |
102 |
122 <a id="btnChoice" class="btn" href="#" title="Choice"></a> |
103 <a id="btnChoice" class="btn" href="#" title="Choice"></a> |
123 </section> |
104 </section> |
124 <!-- /Controlbar container --> |
105 <!-- /Controlbar container --> |
125 </footer> |
106 </footer> |
|
107 |
|
108 <div class="lightBoxWrap"> |
|
109 <div class="lightBoxBg"></div> |
|
110 <div class="lightBox"> |
|
111 <a href="#" class="lightBoxClose">×</a> |
|
112 <h3>THE END, ETC. de Laetitia Masson.</h3> |
|
113 <div class="lightBoxScroll"> |
|
114 <p>À compléter</p> |
|
115 </div> |
|
116 </div> |
|
117 </div> |
|
118 |
126 <!-- Metanav FranceTV --> |
119 <!-- Metanav FranceTV --> |
127 <script src="http://static.francetv.fr/js/jquery.metanav-min.js" charset="utf-8"></script> |
120 <script src="http://static.francetv.fr/js/jquery.metanav-min.js" charset="utf-8"></script> |
128 <!-- JavaScript --> |
121 <!-- JavaScript --> |
129 </body> |
122 </body> |
130 </html> |
123 </html> |