liquid_feedback_frontend
view static/js/browser_warning.js @ 402:a42bc1f0ed45
Support to show documents inline instead of downloading
author | bsw |
---|---|
date | Wed Mar 07 19:30:52 2012 +0100 (2012-03-07) |
parents | eb6d04201f81 |
children |
line source
1 function evilBrowser() {
2 return (navigator.appName == "Microsoft Internet Explorer" || ! window.addEventListener);
3 }
5 function checkBrowser(message) {
6 if (evilBrowser()) {
7 document.getElementById("layout_warning").innerHTML += '<div class="slot_warning">' + message + '</div>' ;
8 }
9 }