diff options
m--------- | Modernizr | 0 | ||||
m--------- | spin.js | 0 | ||||
m--------- | when | 0 | ||||
-rw-r--r-- | www/warned.html | 15 |
4 files changed, 10 insertions, 5 deletions
diff --git a/Modernizr b/Modernizr -Subproject 1a7d74663f3edf0770a2146b934217fd7a54382 +Subproject 7ea2b19a6ad3e97c7649aabe75a823d55be48c9 diff --git a/spin.js b/spin.js -Subproject 7c0fde992df65b66e097e4bab6c2f8474bf3080 +Subproject 0271cbb28ac9a4be3910df937a586380ec25235 diff --git a/when b/when -Subproject 3697fc000435c9d9377f8329d7641f8f6d8cbfd +Subproject 42074c715039af32950c3dbcf144e403660d415 diff --git a/www/warned.html b/www/warned.html index 99779ed..e3daf67 100644 --- a/www/warned.html +++ b/www/warned.html @@ -1,11 +1,16 @@ <!DOCTYPE html> -<html><head> -<script> +<html><head><script> document.cookie = "warned=1; Expires=Tue, 19 Jan 2038 00:00:00 GMT; HttpOnly"; +var l = /language=[^&]*/.exec(location.search).replace(/[ \t]/g, '').split(","); +loop: for (var i = 0; i < l.length; i++) { + switch (l[i].split(';')[0]) { + case "en": var lang = "en"; break loop; + case "fr": var lang = "fr"; break loop; + } +} localStorage.persistent = { hdisable: location.search.indexOf("hdisable=on") > -1, - language: location.search.search("language=.*[=,]en") > -1 ? "en" : "fr" + language: lang || "en" }; location.replace("./"); -</script> -</head><body>If you're seeing this, something's gone wrong. Go back and report a bug.</body></html> +</script></head><body>If you're seeing this, something's gone wrong. Go back and try again, and if it still doesn't work, file a bug.</body></html> |