index.html 999 Bytes
Newer Older
Claudio Valerio's avatar
Claudio Valerio committed
1 2 3 4 5 6 7 8 9
<html>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Template</title>
        <!--Scripts-->
        <script type="text/javascript" src="scripts/jquery-1.6.2.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
10 11 12 13 14 15 16 17 18 19 20
                var lang = (window.sankore)?sankore.locale().substr(0,2):"en"; //local language

                $.ajax({
                    type: 'POST',
                    url: 'locales/' + lang + '/index.html',
                    statusCode: {
                        404: function() {
                            window.location.href = 'locales/en/index.html';
                        },
                        200: function(){
                            window.location.href = 'locales/' + lang + '/index.html';
Claudio Valerio's avatar
Claudio Valerio committed
21
                        }
22 23
                    }
                });      
Claudio Valerio's avatar
Claudio Valerio committed
24 25 26 27 28
            });
        </script>
    </head>

    <body>
29
        
Claudio Valerio's avatar
Claudio Valerio committed
30 31
    </body>

Claudio Valerio's avatar
Claudio Valerio committed
32
</html>