web/prologue-the-end-etc.html
author ymh <ymh.work@gmail.com>
Fri, 08 Feb 2013 17:53:10 +0100
changeset 127 49f930abb58a
parent 124 8d2376eb825c
permissions -rw-r--r--
Added tag V01.23 for changeset 7b9e8c23fb5a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
     1
<!DOCTYPE html>
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
     2
<html lang="fr">
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
     3
	<head>
103
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 101
diff changeset
     4
		<meta charset="UTF-8">
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 101
diff changeset
     5
		<title>THE END, ETC. UNE EXPÉRIENCE WEB DE LAETITIA MASSON</title>
37
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
     6
		
124
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
     7
		<meta name="robots" content="noindex">
105
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 103
diff changeset
     8
		<meta name="description" content="MEMO PROD présente THE END, ETC. Une coproduction FRANCE TÉLÉVISIONS - MEMO PROD avec la participation du CENTRE NATIONAL DU CINÉMA ET DE L’IMAGE ANIMÉE. Un projet écrit et réalisé par LAETITIA MASSON">
103
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 101
diff changeset
     9
78
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    10
		<link rel="icon" href="static/res/img/favicon.ico" />		
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    11
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    12
		<!-- Mobile Specific Metas -->		
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    13
		<meta name="viewport" content="user-scalable=no">
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    14
		<!--
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    15
		<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" />
37
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
    16
		-->
78
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    17
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    18
		<!-- Test Smartphone  -->
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    19
	    <script src="static/res/js/incdetectmobile.js"></script>        
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    20
		<script>
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    21
			if (IsSmartphone()) { location.href = "mindex.html"; }	
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    22
		</script>
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    23
		<!-- Metanav FranceTV 	-->
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    24
		<script src="http://static.francetv.fr/js/jquery.metanav-min.js" charset="utf-8"></script>
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    25
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    26
		<link rel="stylesheet" href="static/res/css/style_1024.css" />
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    27
124
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    28
		<!-- tags FTV  Variables Xiti-->		
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    29
		<script>
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    30
		<!--//--><![CDATA[//><!--
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    31
			// Variables Xiti
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    32
			var xtsite = "511613";
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    33
			var xtn2 = "5";
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    34
			var xtpage = "Prologue";
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    35
		//--><!]]>
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    36
		</script>
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    37
		<noscript>
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    38
			<img width="1" height="1" alt="" src="http://logc238.xiti.com/hit.xiti?s=511613&s2=5&p=Prologue" >
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    39
		</noscript>
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    40
		<script src="http://static.francetv.fr/js/audience-min.js"></script>
37
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
    41
	</head>
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
    42
	<body>
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
    43
		<!-- div content - site takes the full height of browser -->	
78
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    44
		<div id="content" class="full_hightScreen pointer">
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    45
			<!-- div content_top - the elements takes the full height of "content_top" -->				
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    46
			<div id="content_top" onClick="gotoInterChoice();">
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    47
				<div id="topEmpty"></div>
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    48
				<section id="main">
124
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    49
	            	<video id="video" autoplay>
78
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    50
	           			<source src="http://dvvsyrlsr21oz.cloudfront.net/PROLOGUE-SD.mp4" type="video/mp4" />
101
537400166ebe tweak prologue
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 94
diff changeset
    51
	           			<source src="http://dvvsyrlsr21oz.cloudfront.net/PROLOGUE-SD.webm" type="video/webm" />
78
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    52
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    53
	  					<p>Votre navigateur ne gère pas l'élément video @todo</p>
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    54
					</video>
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    55
				</section>
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    56
				<div id="bottomEmpty"></div>
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    57
			</div>
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    58
			<!-- /div content_top -->
37
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
    59
		</div>	
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
    60
42
01415303372e écran choix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 41
diff changeset
    61
		<!-- JavaScript -->
01415303372e écran choix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 41
diff changeset
    62
        <script src="static/res/js/jquery-1.8.2.min.js"></script> 
78
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    63
        <script src="static/res/js/incresize.js"></script>
42
01415303372e écran choix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 41
diff changeset
    64
        <script>        
01415303372e écran choix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 41
diff changeset
    65
            $(function() {
01415303372e écran choix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 41
diff changeset
    66
				$("video").bind("ended", function() {
78
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    67
					gotoInterChoice();
42
01415303372e écran choix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 41
diff changeset
    68
				});
78
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    69
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    70
				var ipad = IsIpad();
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    71
				if (ipad) {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    72
					var footerHtmlCode = "<footer id='controlContainer'><section id='controlbarPlay'><div class='container_hcentering'><button id='btnPlayPause' class='btn txt_hidden' title='play' onClick='playVideo();'>Play/Pause</button> </div></section></footer>"; 
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    73
					$("#content").append(footerHtmlCode);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    74
				}
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    75
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    76
            	// Init the resize object
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    77
            	incResize.init("content", "topEmpty", "video", "bottomEmpty", ipad ? "controlContainer" : null, 40, 1388/586, true);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    78
            	incResize.resizeElements();
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    79
124
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    80
            	// Set the video poster
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    81
				$("#video").attr("poster", "static/res/img/poster_prologue.png"); 	
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 105
diff changeset
    82
78
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    83
				if (ipad) {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    84
				    document.onmousemove = function() {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    85
				    	showBarPointerOnAction(4000);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    86
		            };
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    87
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    88
				    document.ontouch = function() {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    89
				    	showBarPointerOnAction(8000);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    90
		            };
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    91
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    92
		            document.ontouchmove = function(e) {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    93
	    				e.preventDefault();
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    94
					};
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    95
				}
42
01415303372e écran choix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 41
diff changeset
    96
            });
78
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    97
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    98
        	var timeoutBarPointer;
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
    99
        	var goUp = false;
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   100
        	var canShowCursor = false;
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   101
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   102
            var showBarPointer = function(state) {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   103
            	if (state) {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   104
            		// Bar
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   105
		    		goUp = true;
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   106
		    		$("#controlbarPlay").stop(true);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   107
					$("#controlbarPlay").animate({bottom: 0}, 500, function() {goUp = false;})
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   108
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   109
					// Pointer
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   110
        			document.body.style.cursor = "default";
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   111
        			canShowCursor = false;
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   112
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   113
            	} else {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   114
            		// Bar
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   115
					$("#controlbarPlay").animate({bottom: -70}, 2000, function() {});
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   116
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   117
					// Pointer
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   118
        			document.body.style.cursor = "url(data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==), pointer";
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   119
        			setTimeout(function() {canShowCursor = true;}, 300);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   120
				}
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   121
            }
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   122
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   123
            var hideBarPointerTimeout = function(time) {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   124
            	timeoutBarPointer = setTimeout(function() {	
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   125
            		showBarPointer(false);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   126
            	}, time);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   127
        	};
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   128
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   129
        	var showBarPointerOnAction = function(hideTime) {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   130
		    	// Controls
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   131
		    	if (!goUp && canShowCursor) {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   132
	            	showBarPointer(true);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   133
	                if (timeoutBarPointer) {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   134
			            window.clearTimeout(timeoutBarPointer);	                	
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   135
	                }
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   136
					hideBarPointerTimeout(hideTime);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   137
            	}
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   138
            };   
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   139
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   140
			var hideBarAtPlay = true; 
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   141
            var playVideo = function() {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   142
            	var video = $('#video').get(0);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   143
            	if (video.paused) {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   144
        			video.play();
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   145
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   146
        			if (hideBarAtPlay) {
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   147
						// Hide bar and pointer in seconds
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   148
	            		hideBarPointerTimeout(4000);
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   149
	            		hideBarAtPlay = false;
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   150
	            	} 		
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   151
            	}  else {            		
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   152
        			video.pause();            		
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   153
            	}
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   154
        		$('#btnPlayPause').css({"background-position" : video.paused ? '-77px 0' : '-77px -17px'});
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   155
            }
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   156
            var gotoInterChoice = function() {
94
873b0e9ff7f6 update html
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 92
diff changeset
   157
				location.href = "instructions-the-end-etc.html";
78
8c3f0b94d056 big commit after problems
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 47
diff changeset
   158
            }
42
01415303372e écran choix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents: 41
diff changeset
   159
        </script>               
37
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
   160
	</body>
1f10a9688c1b interchoix
Edwin Razafimahatratra <edwin@robotalismsoft.com>
parents:
diff changeset
   161
</html>