Outiref

Code source de l'URL : http://www.webacappella.com

<!doctype html>
<html>

<head>

	<meta charset="utf-8">
	<title>Multilingual website index</title>

	<meta name="description" content=""/>

	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>

	<meta name="robots" content="noindex, follow">
	<meta name="generator" content="WebAcappellaFx (1.4.32)" />


	<script>
                function getFirstBrowserLanguage()
                {
                    var nav = window.navigator;
                    var browserLanguagePropertyKeys = ['language', 'browserLanguage', 'systemLanguage', 'userLanguage'];
                    var i = 0;
                    var language = "";

                    // support for HTML 5.1 "navigator.languages"
                    if (Array.isArray(nav.languages)) {
                      for (i = 0; i < nav.languages.length; i++) {
                        language = nav.languages[i];
                        if (language && language.length) {
                          return language;
                        }
                      }
                    }
                    // support for other well known properties in browsers
                    for (i = 0; i < browserLanguagePropertyKeys.length; i++) {
                      language = nav[browserLanguagePropertyKeys[i]];
                      if (language && language.length) {
                        return language;
                      }
                    }
                    return "";
                };

                function normalizeLangIsoCode(code)
                {
                        return code.replace("-", "_").toLowerCase();
                }
                function extractLangCode(code)
                {
                        code = normalizeLangIsoCode(code);
                        var i = code.indexOf("_");
                        if (i>-1) return code.substring(0,i);
                        return code;
                }

                function findBestUrl()
                {
                        var mapUrls = [];
                        
                            mapUrls["fr"] = "fr/index.html";
                        
                            mapUrls["en_US"] = "en/index.html";
                        
                            mapUrls["pt"] = "pt_BR/index.html";
                        
                            mapUrls["de"] = "de/index.html";
                        
                            mapUrls["it"] = "it/index.html";
                        
                            mapUrls["ja"] = "ja/index.html";
                        
                            mapUrls["zh"] = "zh/index.html";
                        
                            mapUrls["nl"] = "nl/index.html";
                        
                            mapUrls["pl"] = "pl/index.html";
                        
                            mapUrls["es"] = "es/index.html";
                        

                        var iso_browser = getFirstBrowserLanguage();

                        var  iso_code= normalizeLangIsoCode(iso_browser);
                        var  lang=extractLangCode(iso_code);
                        for (var key in mapUrls)
                        {
                                var key2 = key.toLowerCase();
                                if (key2===iso_code) return mapUrls[key];
                        }
                        for (var key in mapUrls)
                        {
                                var lng2 = extractLangCode(key);
                                if (lng2===lang) return mapUrls[key];
                        }

                        return "fr/index.html";
                }

                var url = findBestUrl();

		
			document.location.href = url; 
		
		


	</script>
</head>

<body>

	<!--  AUTO_LANG_REDIRECT   -->

<div style='display:flex;margin:30px;justify-content: center;flex-direction: column;'>
	<div style='display:flex;justify-content: center;margin:20px;'>
		<h1>
			WAFX Multilingual website index
		</h1>
	</div>
	<div style='display:flex;flex-direction: column;'>
		
		<div style='display:flex;justify-content: center;margin:10px;'>
			<h2>
			<a href="fr/index.html">Français ( fr/index.html )</a>
			</h2>
		</div>
		
		<div style='display:flex;justify-content: center;margin:10px;'>
			<h2>
			<a href="en/index.html">American English ( en/index.html )</a>
			</h2>
		</div>
		
		<div style='display:flex;justify-content: center;margin:10px;'>
			<h2>
			<a href="pt_BR/index.html">Português do Brasil ( pt_BR/index.html )</a>
			</h2>
		</div>
		
		<div style='display:flex;justify-content: center;margin:10px;'>
			<h2>
			<a href="de/index.html">Deutsch ( de/index.html )</a>
			</h2>
		</div>
		
		<div style='display:flex;justify-content: center;margin:10px;'>
			<h2>
			<a href="it/index.html">Italiano ( it/index.html )</a>
			</h2>
		</div>
		
		<div style='display:flex;justify-content: center;margin:10px;'>
			<h2>
			<a href="ja/index.html">日本語 ( ja/index.html )</a>
			</h2>
		</div>
		
		<div style='display:flex;justify-content: center;margin:10px;'>
			<h2>
			<a href="zh/index.html">简体中文 ( zh/index.html )</a>
			</h2>
		</div>
		
		<div style='display:flex;justify-content: center;margin:10px;'>
			<h2>
			<a href="nl/index.html">Nederlands ( nl/index.html )</a>
			</h2>
		</div>
		
		<div style='display:flex;justify-content: center;margin:10px;'>
			<h2>
			<a href="pl/index.html">Polski ( pl/index.html )</a>
			</h2>
		</div>
		
		<div style='display:flex;justify-content: center;margin:10px;'>
			<h2>
			<a href="es/index.html">Español de España ( es/index.html )</a>
			</h2>
		</div>
		

	</div>
</div>


</body>
</html>