1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
2 "http://www.w3.org/TR/html4/strict.dtd"> |
|
3 |
|
4 <html lang="<?php echo($actual); ?>"> |
|
5 <head> |
|
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
7 <title>Live Video and Annotation</title> |
|
8 <meta http-equiv="X-UA-Compatible" content="IE=8" /> |
|
9 |
|
10 <!-- Framework CSS --> |
|
11 <link rel="stylesheet" href="<?php echo(registry_url('blueprint-screen','css'));?>" type="text/css" media="screen, projection"/> |
|
12 <link rel="stylesheet" href="<?php echo(registry_url('blueprint-print','css'));?>" type="text/css" media="print"/> |
|
13 <!--[if lt IE 8]><link rel="stylesheet" href="<?php echo(registry_url('blueprint-ie','css'));?>" type="text/css" media="screen, projection"><![endif]--> |
|
14 <link rel="stylesheet" href="<?php echo(registry_url('blueprint-plugins-fancy-type','css'));?>" type="text/css" media="screen, projection"/> |
|
15 <link rel="stylesheet" href="<?php echo(registry_url('custom','css'));?>" type="text/css" media="screen, projection"/> |
|
16 <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen"> |
|
17 |
|
18 <style type="text/css"> |
|
19 .hidden { |
|
20 display: none; |
|
21 } |
|
22 |
|
23 #onglets { |
|
24 float: left; width: 441px; margin: 5px 25px 0; list-style: none; |
|
25 border-left: 1px solid #999; padding: 0; |
|
26 } |
|
27 |
|
28 #onglets li { |
|
29 float: left; text-transform: uppercase; background: url(../res/css/twcx-img/bg_onglet.png) repeat-x; |
|
30 line-height: 12px; font-size: 12px; height: 12px; padding: 6px 10px; font-weight: bold; |
|
31 border: 1px #999; border-style: solid solid solid none; margin-top: 1px; |
|
32 } |
|
33 |
|
34 #onglets a { |
|
35 text-decoration: none; color: #666666; |
|
36 } |
|
37 |
|
38 #onglets a:hover { |
|
39 color: #0099ff; |
|
40 } |
|
41 |
|
42 #onglets li.selected { |
|
43 background-position: 0 -22px; padding-bottom: 8px; border-bottom: none; margin-top: 0; |
|
44 } |
|
45 |
|
46 #onglets li.selected a { |
|
47 color: #333333; |
|
48 } |
|
49 |
|
50 div.ifwrap { |
|
51 float: left; border: 5px solid #ffffff; background: #999999; padding: 1px; width: 500px; height: 375px; |
|
52 } |
|
53 |
|
54 .ifwrap iframe { |
|
55 width: 500px; height: 375px; background: #000000; border: none; padding: 0; margin: 0; |
|
56 } |
|
57 </style> |
|
58 |
|
59 <!-- JAVASCRIPT --> |
|
60 <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
|
61 <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script> |
|
62 <script type="text/javascript" src="<?php echo(registry_url('jquery-tools','js'))?>"></script> |
|
63 <script type="text/javascript" src="<?php echo(registry_url('tw-widget','js'))?>"></script> |
|
64 |
|
65 <!-- FONT --> |
|
66 <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'> |
|
67 <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'> |
|
68 <link href='<?php echo(registry_url('Geo','font'))?>' rel='stylesheet' type='text/css'> |
|
69 |
|
70 <script type="text/javascript"> |
|
71 $(document).ready(function() { |
|
72 |
|
73 $("#onglets a").click(function() { |
|
74 $("div.ifwrap").hide(); |
|
75 $("#onglets li").removeClass("selected"); |
|
76 $(this).parent().addClass("selected"); |
|
77 var hr = $(this).attr("href"); |
|
78 if (hr[0] == '#') { |
|
79 $(hr).show(); |
|
80 } else { |
|
81 $("#iframeWrap").show(); |
|
82 $("#graphFrame").attr("src", hr); |
|
83 } |
|
84 return false; |
|
85 }); |
|
86 |
|
87 doTimer(); |
|
88 //$("txt").hide(); |
|
89 $(".loginbutton").click(function() { |
|
90 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true"; |
|
91 }); |
|
92 $("#IDENTIFIER").click(function() { |
|
93 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true"; |
|
94 }); |
|
95 |
|
96 $("#messageSuccess").hide(); |
|
97 $("#messageFailed").hide(); |
|
98 |
|
99 |
|
100 function add_grammar(value) { |
|
101 $('#status').val($('#status').val()+value+" "); |
|
102 $('#status').change(); |
|
103 } |
|
104 |
|
105 // BUTTONS |
|
106 $("#positive").click(function(){ |
|
107 add_grammar("++"); |
|
108 }); |
|
109 $("#negative").click(function(){ |
|
110 add_grammar("--"); |
|
111 }); |
|
112 $("#reference").click(function(){ |
|
113 add_grammar("=="); |
|
114 }); |
|
115 $("#question").click(function(){ |
|
116 add_grammar("??"); |
|
117 }); |
|
118 |
|
119 // SEND TWEETS |
|
120 $("#sendTweet").click(function(){ |
|
121 var MyStatus = $('#status').val(); |
|
122 $.post('tweet_ajax.php', {status:MyStatus} |
|
123 ,function(data) { |
|
124 |
|
125 if(data=="true"){ |
|
126 $("#messageSuccess").show('fast'); |
|
127 $("#messageSuccess").delay(800).hide('slow'); |
|
128 $('#status').val("<?php echo($config['hashtag']); ?>"); |
|
129 $('#status').change(); |
|
130 }else{ |
|
131 $("#error").text(data); |
|
132 $("#messageFailed").show('fast'); |
|
133 $("#messageFailed").delay(800).hide('slow'); |
|
134 } |
|
135 |
|
136 }); |
|
137 |
|
138 }); |
|
139 |
|
140 $("#status").bind("change keyup paste blur focus",function() { |
|
141 newval = 140-$("#status").val().length; |
|
142 $('#tweetCounter').val(newval); |
|
143 if(newval < 0) { |
|
144 $('#tweetCounter').addClass("tweetCounterNegative"); |
|
145 } |
|
146 else { |
|
147 $('#tweetCounter').removeClass("tweetCounterNegative"); |
|
148 } |
|
149 }); |
|
150 |
|
151 $(".timeFrame").tooltip(); |
|
152 /* |
|
153 * Lightbox button |
|
154 */ |
|
155 |
|
156 $("#Program").fancybox({ |
|
157 'width' : '75%', |
|
158 'height' : '75%', |
|
159 'autoScale' : false, |
|
160 'transitionIn' : 'none', |
|
161 'transitionOut' : 'none', |
|
162 'type' : 'iframe' |
|
163 }); |
|
164 |
|
165 $("#ACCES").click(function() { |
|
166 $.fancybox.close(); |
|
167 }); |
|
168 |
|
169 // Buttons |
|
170 |
|
171 |
|
172 }); |
|
173 |
|
174 //<!-- LIMIT TEXTAREA: |
|
175 function imposemax(Object) { |
|
176 return (Object.value.length <= 140); |
|
177 }; |
|
178 // End --> |
|
179 |
|
180 //<!-- TIMER |
|
181 var c=0; |
|
182 var t; |
|
183 var timer_is_on=0; |
|
184 |
|
185 function timedCount() |
|
186 { |
|
187 document.getElementById('txt').value=c; |
|
188 c = c+1; |
|
189 t = window.setTimeout("timedCount()",1000); |
|
190 $(".twtr-ft").hide(); |
|
191 $(".twtr-hd").hide(); |
|
192 //twtr-tweet |
|
193 $(".twtr-tweet").each(colorTweetings); |
|
194 |
|
195 } |
|
196 |
|
197 function colorTweetings (){ |
|
198 var tweettemp = $(this).html(); |
|
199 if (tweettemp.search(/\x3F\x3F/)!=-1){ |
|
200 $(this).css({'background-color': '#bfdbec','color':"#000"}); |
|
201 } |
|
202 if (tweettemp.search(/\x2B\x2B/)!=-1){ |
|
203 $(this).css({'background-color': '#c5e7cd','color':"#fff"}); |
|
204 } |
|
205 if (tweettemp.search(/\x2D\x2D/)!=-1){ |
|
206 $(this).css({'background-color': '#f6ced0','color':"#fff"}); |
|
207 } |
|
208 if (tweettemp.search(/\x3D\x3D/)!=-1){ |
|
209 $(this).css({'background-color': '#ecedc1','color':"#000"}); |
|
210 } |
|
211 }; |
|
212 |
|
213 |
|
214 |
|
215 function doTimer() |
|
216 { |
|
217 if (!timer_is_on) |
|
218 { |
|
219 timer_is_on=1; |
|
220 timedCount(); |
|
221 } |
|
222 } |
|
223 |
|
224 function stopCount() |
|
225 { |
|
226 clearTimeout(t); |
|
227 timer_is_on=0; |
|
228 } |
|
229 // |
|
230 //--> |
|
231 </script> |
|
232 |
|
233 <script type="text/javascript"> |
|
234 |
|
235 var _gaq = _gaq || []; |
|
236 _gaq.push(['_setAccount', 'UA-23581291-1']); |
|
237 _gaq.push(['_trackPageview']); |
|
238 _gaq.push(['_setAllowAnchor', true]); |
|
239 |
|
240 (function() { |
|
241 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
|
242 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
243 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
|
244 })(); |
|
245 |
|
246 </script> |
|
247 |
|
248 </head> |
|
249 <body> |
|
250 <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div> |
|
251 <div class="container"> |
|
252 <img src="<?php echo($head_logo); ?>" class="Producteur logo"> |
|
253 <div id="minilogo" style="height:5px;top:5px;"></div> |
|
254 <ul class="menu"> |
|
255 <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>" class="menuLink"> |
|
256 <?php print $translate->_("Accueil"); ?> </a></li> |
|
257 <li class="menuUnderline" ><a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'> |
|
258 <?php print $translate->_("Programme"); ?></a></li> |
|
259 <li ><a href="../about.php" class="menuLink" > |
|
260 <?php print $translate->_("A propos"); ?></a></li> |
|
261 |
|
262 </ul> |
|
263 |
|
264 <ul class="menu" > |
|
265 <li class="menuUnderline"><a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" > |
|
266 <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> /> |
|
267 <?php print $translate->_("Japonais"); ?></a></li> |
|
268 <li class="menuUnderline"><a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink"> |
|
269 <img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> /> |
|
270 <?php print $translate->_("Français"); ?></a></li> |
|
271 <li ><a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink"> |
|
272 <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> /> |
|
273 <?php print $translate->_("Anglais"); ?></a></li> |
|
274 </ul> |
|
275 |
|
276 |
|
277 <ul id="onglets"> |
|
278 <li class="selected"> |
|
279 <a href="#vlWrap"><?php echo($translate->_('Video')); ?></a> |
|
280 </li> |
|
281 <?php if (isset($config['semantic_board']) && $config['semantic_board']) { ?> |
|
282 <li> |
|
283 <a href="semanticboard.php?small=1&theme=jour"><?php echo($translate->_('SemanticBoard')); ?></a> |
|
284 </li> |
|
285 <?php } ?> |
|
286 <?php if (isset($config['knowtex_url'])) { ?> |
|
287 <li> |
|
288 <a href="<?php echo $config['knowtex_url'] ?>"><?php echo($translate->_('SocialGraph')); ?></a> |
|
289 </li> |
|
290 <?php } ?> |
|
291 </ul> |
|
292 <div class="ifwrap" id="vlWrap"> |
|
293 <?php if ($config['islive']):?> |
|
294 <div class="videoLivePlayer"> |
|
295 <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="500" height="375"> |
|
296 <param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" /> |
|
297 <param name="allowfullscreen" value="true" /> |
|
298 <param name="allowscriptaccess" value="always" /> |
|
299 <param name="wmode" value="transparent" /> |
|
300 <param name="flashvars" value="autostart=true&live=true&image=<?php echo($big_visual_url); ?>&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&controlbar=none&autostart=true" /> |
|
301 <embed |
|
302 type="application/x-shockwave-flash" |
|
303 id="player2" |
|
304 name="player2" |
|
305 src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" |
|
306 width="500" |
|
307 height="375" |
|
308 allowscriptaccess="always" |
|
309 allowfullscreen="true" |
|
310 wmode="transparent" |
|
311 flashvars="autostart=true&live=true&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&image=<?php echo($big_visual_url); ?>&controlbar=none&autostart=true" |
|
312 |
|
313 /> |
|
314 </object> |
|
315 |
|
316 </div> |
|
317 <?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?> |
|
318 <div class="videoLivePlayer"> |
|
319 <?php echo($config['islive_embed']); ?> |
|
320 </div> |
|
321 <?php else: ?> |
|
322 <div class="videoLivePlayer"> |
|
323 <img src="<?php echo($big_visual_url); ?>" width="500" height="375" /> |
|
324 </div> |
|
325 <?php endif; ?> |
|
326 |
|
327 </div> |
|
328 <div class="ifwrap hidden" id="iframeWrap"> |
|
329 <iframe id="graphFrame"></iframe> |
|
330 </div> |
|
331 |
|
332 <div class="videoLiveProgram"> |
|
333 |
|
334 <div class="arrowContainer"> |
|
335 <div class="arrow"> </div> |
|
336 </div> |
|
337 <div class="videoLiveProgramTitle"> |
|
338 <b><?php echo($translate->_('config__title')); ?></b></div> |
|
339 <div class="videoLiveProgramDescription"> |
|
340 <br><?php echo($translate->_('config__description')); ?></div> |
|
341 |
|
342 |
|
343 </div> |
|
344 |
|
345 <div class="tweetWriter"> |
|
346 <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3> |
|
347 <form action="tweet.php" method="post" id="statusform" > |
|
348 <?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){ |
|
349 echo("<div class='loginbutton' ><a href='".URL_ROOT."$rep/client.php?CONNECT=true' class='loginlink'> |
|
350 ".$translate->_("Vous n'êtes pas connecté.")."</a></div>"); |
|
351 }else{ |
|
352 echo("<textarea name='status' id='status' rows='3' cols='50' onkeypress='return imposemax(this);'>$config[hashtag]</textarea>"); |
|
353 } |
|
354 ?> |
|
355 |
|
356 |
|
357 <div id="messageSuccess" style="background-color:lightgreen;"> |
|
358 <?php print $translate->_("Envoyé"); ?><br><br> |
|
359 </div> |
|
360 |
|
361 <div id="messageFailed" style="background-color:red;"> |
|
362 <?php print $translate->_("Erreur1"); ?><div id="error"> </div><br/><br> |
|
363 </div> |
|
364 |
|
365 |
|
366 |
|
367 <a class="button_w" href="#" id="sendTweet" style="float:right;margin-right:15px;margin-left:35px;width:70px;" > |
|
368 <span><?php print $translate->_("Envoyer"); ?></span> |
|
369 </a> |
|
370 <!--<button name="s" type="button" id="sendTweet" |
|
371 style="float:right;margin-right:15px;margin-left:35px;width:70px;" >Envoyer</button>--> |
|
372 <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?> |
|
373 <input id="tweetCounter" value="<?php echo(140-strlen($config['hashtag']));?>" disabled="disabled" size="3"/> |
|
374 <?php endif;?> |
|
375 <a |
|
376 |
|
377 id="positive" |
|
378 title="accord" |
|
379 class="tweetButton">++</a> |
|
380 <a |
|
381 |
|
382 id="negative" |
|
383 title="désaccord" |
|
384 class="tweetButton">--</a> |
|
385 <a |
|
386 |
|
387 id="reference" |
|
388 title="reference" |
|
389 class="tweetButton">==</a> |
|
390 <a |
|
391 |
|
392 id="question" |
|
393 title="question" |
|
394 class="tweetButton"> ??</a> |
|
395 </form> |
|
396 </div> |
|
397 |
|
398 <div class="tweetReader"> |
|
399 <script> |
|
400 new TWTR.Widget({ |
|
401 version: 2, |
|
402 type: 'search', |
|
403 search: '<?php echo($config['hashtag']); ?>', |
|
404 interval: 3000, |
|
405 title: '', |
|
406 subject: '', |
|
407 width: 377, |
|
408 height: 450, |
|
409 theme: { |
|
410 shell: { |
|
411 background: '#ffffff', |
|
412 color: '#ffffff' |
|
413 }, |
|
414 tweets: { |
|
415 background: '#ffffff', |
|
416 color: '#444444', |
|
417 links: '#1985b5' |
|
418 } |
|
419 }, |
|
420 features: { |
|
421 scrollbar: true, |
|
422 loop: false, |
|
423 live: true, |
|
424 hashtags: true, |
|
425 timestamp: true, |
|
426 avatars: true, |
|
427 toptweets: true, |
|
428 behavior: 'all' |
|
429 } |
|
430 }).render().start(); |
|
431 </script> |
|
432 </div> |
|
433 |
|
434 <div class="footer"> |
|
435 <hr> |
|
436 <?php |
|
437 echo($translate->_('config__partenaires')); |
|
438 |
|
439 if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){ |
|
440 echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>"); |
|
441 } |
|
442 ?> |
|
443 <input type="hidden" id="txt"/> |
|
444 |
|
445 </div> |
|
446 |
|
447 |
|
448 </div> |
|
449 |
|
450 </body> |
|
451 </html> |
|