diff options
author | davehauenstein <davehauenstein@d4e419ec-0920-11de-bbfd-a7c1bc4c261e> | 2009-04-17 20:41:52 +0000 |
---|---|---|
committer | davehauenstein <davehauenstein@d4e419ec-0920-11de-bbfd-a7c1bc4c261e> | 2009-04-17 20:41:52 +0000 |
commit | d50002c3b430b192e1ecec4126bf31f13cd6e5f6 (patch) | |
tree | d7edaa9a0089258545e93b393412ddff3e6a9e16 /index.htm | |
parent | 023a90eba43c51519943f58724fa51d373a1974d (diff) | |
download | readability-simple-d50002c3b430b192e1ecec4126bf31f13cd6e5f6.tar.bz2 readability-simple-d50002c3b430b192e1ecec4126bf31f13cd6e5f6.zip |
added aditional files for spanish support, added redirect if coming from a spanish language preferred browser
git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@35 d4e419ec-0920-11de-bbfd-a7c1bc4c261e
Diffstat (limited to 'index.htm')
-rwxr-xr-x | index.htm | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -5,6 +5,27 @@ <link rel="stylesheet" href="css/readability-home.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="js/readability-start.js"></script>
+ <script type="text/javascript">
+ languagesAvailable = ['es'];
+ language = (navigator.language || navigator.userLanguage);
+ languageCode = language.replace(/-.*/,'').toLowerCase();
+ if(languageCode != 'en')
+ {
+ languageIsAvailable = false;
+ for(l in languagesAvailable)
+ {
+ if(languagesAvailable[l] == languageCode)
+ {
+ languageIsAvailable = true;
+ break;
+ }
+ }
+ if(languageIsAvailable)
+ {
+ window.location = "http://lab.arc90.com/experiments/readability/" + languageCode;
+ }
+ }
+ </script>
</head>
<body>
|