We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b05bb8 commit 5c275c6Copy full SHA for 5c275c6
index.html
@@ -3,14 +3,19 @@
3
---
4
5
<script type="text/javascript">
6
- $.ajax({
+/* $.ajax({
7
url: "http://ajaxhttpheaders.appspot.com",
8
dataType: 'jsonp',
9
success: function(headers) {
10
language = headers['Accept-Language'];
11
redirectSite(language);
12
}
13
});
14
+*/
15
+$.ready(function() {
16
+ var userLang = navigator.language || navigator.userLanguage;
17
+ redirectSite(language);
18
+});
19
20
function redirectSite(lang) {
21
if(lang.indexOf('it')>=0) {
@@ -19,7 +24,7 @@
24
window.location.href="en/index.html";
25
26
22
- </script>
27
+</script>
23
28
29
<div class="row">
30
<div class="col-md-12">
0 commit comments