liquid_feedback_frontend
annotate static/js/browser_warning.js @ 252:eb6d04201f81
Show evil browser notice as inlined warning instead of opening an evil popup
author | Ingo Bormuth <mail@ibormuth.de> |
---|---|
date | Fri Dec 30 04:02:37 2011 +0100 (2011-12-30) |
parents | afd9f769c7ae |
children |
rev | line source |
---|---|
bsw/jbe@5 | 1 function evilBrowser() { |
bsw/jbe@5 | 2 return (navigator.appName == "Microsoft Internet Explorer" || ! window.addEventListener); |
bsw/jbe@5 | 3 } |
bsw/jbe@5 | 4 |
bsw/jbe@5 | 5 function checkBrowser(message) { |
bsw/jbe@5 | 6 if (evilBrowser()) { |
mail@252 | 7 document.getElementById("layout_warning").innerHTML += '<div class="slot_warning">' + message + '</div>' ; |
bsw/jbe@5 | 8 } |
bsw/jbe@5 | 9 } |