front_idill/src/index.html
changeset 77 205409da0f32
parent 67 d130980a7ef1
child 79 9eff85166868
equal deleted inserted replaced
76:eae52b187e29 77:205409da0f32
    34     <body>
    34     <body>
    35         <!-- Scripts principaux. -->
    35         <!-- Scripts principaux. -->
    36         <script type="text/javascript">
    36         <script type="text/javascript">
    37             function loadMenu(textElements)
    37             function loadMenu(textElements)
    38 			{
    38 			{
       
    39 				//Si on est sur une tablette, on passe directement dans le mode d'interaction tablette.
       
    40 				if('ontouchstart' in document.documentElement)
       
    41 				{
       
    42 					window.location.replace('./index_souris.html');
       
    43 				}
       
    44 				
    39 				var form = "<div id='choice'><p id='caution'>" + textElements.caution + "</p><input id='MI' type='button' /><br ><input id='KI' type='button' /></div>";
    45 				var form = "<div id='choice'><p id='caution'>" + textElements.caution + "</p><input id='MI' type='button' /><br ><input id='KI' type='button' /></div>";
    40 				
    46 				
    41 				$('body').css({
    47 				$('body').css({
    42 				'background-image': 'url("./img/background.png")',
    48 				'background-image': 'url("./img/background.png")',
    43 				'background-repeat': 'repeat'
    49 				'background-repeat': 'repeat'
    48 				{
    54 				{
    49 					color: '#FFF',
    55 					color: '#FFF',
    50 					'font-size': '20px'
    56 					'font-size': '20px'
    51 				});
    57 				});
    52 				$('#MI').attr('value', textElements.mouse);
    58 				$('#MI').attr('value', textElements.mouse);
    53 				$('#MI').css('padding', '10px').click(function()
    59 				$('#MI').css(
       
    60 				{
       
    61 					'padding': '30px',
       
    62 					'font-size': '20px'
       
    63 				
       
    64 				}).click(function()
    54 				{
    65 				{
    55 					window.location.replace('./index_souris.html');
    66 					window.location.replace('./index_souris.html');
    56 				});
    67 				});
    57 				$('#KI').attr('value', textElements.kinect);
    68 				$('#KI').attr('value', textElements.kinect);
    58 				$('#KI').css('padding', '10px').click(function()
    69 				$('#KI').css(
       
    70 				{
       
    71 					'padding': '30px',
       
    72 					'font-size': '20px'
       
    73 				}).click(function()
    59 				{
    74 				{
    60 					window.location.replace('./index_kinect.html');
    75 					window.location.replace('./index_kinect.html');
    61 				});
    76 				});
    62 				
    77 				
    63 				$('#choice').css(
    78 				$('#choice').css(