diff --git a/module/user/js/login.js b/module/user/js/login.js index 6f0b180b46..0f75c98f81 100644 --- a/module/user/js/login.js +++ b/module/user/js/login.js @@ -18,5 +18,62 @@ $(document).ready(function() }); }); mBtn.attr('title', mBtn.attr('data-original-title')); - + showNotice(); }) + +/** + * Show browser notice + * + * @access public + * @return void + */ +function showNotice() +{ + var show = false; + var type = ''; + /* IE 6,7. */ + if($.browser.msie && $.browser.version <= 7) + { + show = true; + type = 'incompatible'; + } + + /* Souhu */ + if(window.clientInformation.userAgent.indexOf('MetaSr') >= 0) + { + show = true; + type = 'notice'; + } + else if(window.clientInformation.userAgent.indexOf('LBBROWSER') >= 0) + { + show = true; + type = 'notice'; + } + else if(window.clientInformation.userAgent.indexOf('QQBrowser') >= 0) + { + show = true; + type = 'notice'; + } + else if(window.clientInformation.userAgent.indexOf('TheWorld') >= 0) + { + show = true; + type = 'notice'; + } + else if(window.clientInformation.userAgent.indexOf('BIDUBrowser') >= 0) + { + show = true; + type = 'notice'; + } + else if(window.clientInformation.userAgent.indexOf('Maxthon') >= 0) + { + show = true; + type = 'notice'; + } + /* 360. */ + else if($.browser.chrome && !(window.clientInformation && window.clientInformation.mediaDevices)) + { + show = true; + type = 'notice'; + } + if(show) $('body').prepend('
' + browser[type] + '