Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <script>
  2. var bLocale = 'raw'; // can be used at any other place
  3. function processHeaders(headers) {
  4. bLocale = headers['Accept-Language'];
  5. comma = headers.indexOf(',');
  6. if (comma > 0) bLocale = bLocale.substring(0, comma);
  7. }
  8. </script>
  9. <script type="application/javascript" src="http://ajaxhttpheaders.appspot.com?callback=processHeaders"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement