front_idill/src/index.html
changeset 79 9eff85166868
parent 77 205409da0f32
--- a/front_idill/src/index.html	Wed Aug 08 18:42:01 2012 +0200
+++ b/front_idill/src/index.html	Thu Aug 16 14:32:19 2012 +0200
@@ -35,80 +35,80 @@
         <!-- Scripts principaux. -->
         <script type="text/javascript">
             function loadMenu(textElements)
-			{
-				//Si on est sur une tablette, on passe directement dans le mode d'interaction tablette.
-				if('ontouchstart' in document.documentElement)
-				{
-					window.location.replace('./index_souris.html');
-				}
-				
-				var form = "<div id='choice'><p id='caution'>" + textElements.caution + "</p><input id='MI' type='button' /><br ><input id='KI' type='button' /></div>";
-				
-				$('body').css({
-				'background-image': 'url("./img/background.png")',
-				'background-repeat': 'repeat'
-				});
-				$('body').append(form);
-				
-				$('#caution').css(
-				{
-					color: '#FFF',
-					'font-size': '20px'
-				});
-				$('#MI').attr('value', textElements.mouse);
-				$('#MI').css(
-				{
-					'padding': '30px',
-					'font-size': '20px'
-				
-				}).click(function()
-				{
-					window.location.replace('./index_souris.html');
-				});
-				$('#KI').attr('value', textElements.kinect);
-				$('#KI').css(
-				{
-					'padding': '30px',
-					'font-size': '20px'
-				}).click(function()
-				{
-					window.location.replace('./index_kinect.html');
-				});
-				
-				$('#choice').css(
-				{
-					position: 'absolute',
-					width: '60%'
-				});
-				$('#choice').css(
-				{
-					left: ($(window).width() - $('#choice').width()) / 2,
-					'text-align': 'center',
-					top: ($(window).height() - $('#choice').height()) / 2
-				});
-			}
-			
+            {
+                //Si on est sur une tablette, on passe directement dans le mode d'interaction tablette.
+                if('ontouchstart' in document.documentElement)
+                {
+                    window.location.replace('./index_souris.html');
+                }
+                
+                var form = "<div id='choice'><p id='caution'>" + textElements.caution + "</p><input id='MI' type='button' /><br ><input id='KI' type='button' /></div>";
+                
+                $('body').css({
+                'background-image': 'url("./img/background.png")',
+                'background-repeat': 'repeat'
+                });
+                $('body').append(form);
+                
+                $('#caution').css(
+                {
+                    color: '#FFF',
+                    'font-size': '20px'
+                });
+                $('#MI').attr('value', textElements.mouse);
+                $('#MI').css(
+                {
+                    'padding': '30px',
+                    'font-size': '20px'
+                
+                }).click(function()
+                {
+                    window.location.replace('./index_souris.html');
+                });
+                $('#KI').attr('value', textElements.kinect);
+                $('#KI').css(
+                {
+                    'padding': '30px',
+                    'font-size': '20px'
+                }).click(function()
+                {
+                    window.location.replace('./index_kinect.html');
+                });
+                
+                $('#choice').css(
+                {
+                    position: 'absolute',
+                    width: '60%'
+                });
+                $('#choice').css(
+                {
+                    left: ($(window).width() - $('#choice').width()) / 2,
+                    'text-align': 'center',
+                    top: ($(window).height() - $('#choice').height()) / 2
+                });
+            }
+            
             //Si la page a chargé, on charge le menu de sélection de mode.
             $(document).ready(function ()
             {
-				//Langues gérées.
-				var langs = ["fr", "en"];
-				var lang = navigator.language;
-				
-				//Si la langue n'est pas gérée, on met l'anglais pas défaut.
-				if(langs.indexOf(lang) == -1)
-				{
-					lang = "en";
-				}
-				
-				var path = 'lang/' + lang + '.json';
-				var textElements;
-				$.getJSON(path, function(data)
-				{
-					textElements = data.choice;
-					console.log(textElements);
-					loadMenu(textElements);
-				});
+                //Langues gérées.
+                var langs = ["fr", "en"];
+                var lang = navigator.language;
+                
+                //Si la langue n'est pas gérée, on met l'anglais pas défaut.
+                if(langs.indexOf(lang) == -1)
+                {
+                    lang = "en";
+                }
+                
+                var path = 'lang/' + lang + '.json';
+                var textElements;
+                $.getJSON(path, function(data)
+                {
+                    textElements = data.choice;
+                    console.log(textElements);
+                    loadMenu(textElements);
+                });
             });
         </script>
     </body>