User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

start [09.02.2016 10:47]
start [01.10.2019 13:38] (current)
Line 1: Line 1:
 +<​html>​
 +<script type="​text/​javascript">​
  
 +var Destination = new Array();
 +
 +Destination["​en-us"​] = "​http://​wiki.cloudservices.no/​doku.php/​no:​start";​
 +Destination["​en"​] = "​http://​wiki.cloudservices.no/​doku.php/​no:​start";​
 +Destination["​no"​] = "​http://​wiki.cloudservices.no/​doku.php/​no:​start";​
 +
 +var DefaultDestination = "​http://​wiki.cloudservices.no/​doku.php/​no:​start";​
 +
 +var lang = navigator.language ? navigator.language :
 +           ​navigator.browserlanguage ? navigator.browserlanguage : 
 +           ​navigator.systemLanguage ? navigator.systemLanguage : 
 +           ​navigator.userLanguage ? navigator.userLanguage : 
 +           '​---';​
 +lang = lang.toLowerCase();​
 +var dest = new String();
 +for( var t in Destination ) {
 +   if( t == lang ) {
 +      dest = Destination[t];​
 +      break;
 +      }
 +   }
 +if( dest.length == 0 ) {
 +   lang = lang.substr(0,​2);​
 +   for( var t in Destination ) {
 +      if( t == lang ) {
 +         dest = Destination[t];​
 +         ​break;​
 +         }
 +      }
 +   }
 +if( dest.length == 0 ) { dest = DefaultDestination;​ }
 +if( dest.length > 0 ) { location.href = dest; }
 +</​script>​
 +</​html>​