Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var bLocale = 'raw'; // can be used at any other place
- function processHeaders(headers) {
- bLocale = headers['Accept-Language'];
- comma = headers.indexOf(',');
- if (comma > 0) bLocale = bLocale.substring(0, comma);
- }
- </script>
- <script type="application/javascript" src="http://ajaxhttpheaders.appspot.com?callback=processHeaders"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement