This commit is contained in:
杜恒
2021-03-02 13:09:36 +08:00
parent 336e6a63f8
commit a5170bd15c
3 changed files with 15 additions and 22 deletions

View File

@@ -10,11 +10,22 @@
DOCUMENT_TITLE: '<?php $this->options->JDocumentTitle() ?>',
LAZY_LOAD: '<?php _getLazyload() ?>',
BIRTHDAY: '<?php $this->options->JBirthDay() ?>',
MOTTO: '<?php _getAsideAuthorMotto() ?>',
SHIELD: <?php echo $this->options->JShieldF12 === 'on' ? 'true' : 'false' ?>,
MOTTO: '<?php _getAsideAuthorMotto() ?>'
}
function detectIE(){var n=window.navigator.userAgent,e=n.indexOf("MSIE ");if(e>0){return parseInt(n.substring(e+5,n.indexOf(".",e)),10)}if(n.indexOf("Trident/")>0){var r=n.indexOf("rv:");return parseInt(n.substring(r+3,n.indexOf(".",r)),10)}var i=n.indexOf("Edge/");return i>0&&parseInt(n.substring(i+5,n.indexOf(".",i)),10)};
function detectIE() {
var n = window.navigator.userAgent,
e = n.indexOf("MSIE ");
if (e > 0) {
return parseInt(n.substring(e + 5, n.indexOf(".", e)), 10)
}
if (n.indexOf("Trident/") > 0) {
var r = n.indexOf("rv:");
return parseInt(n.substring(r + 3, n.indexOf(".", r)), 10)
}
var i = n.indexOf("Edge/");
return i > 0 && parseInt(n.substring(i + 5, n.indexOf(".", i)), 10)
};
detectIE() && (alert('当前站点不支持IE浏览器或您开启了兼容模式请使用其他浏览器访问或关闭兼容模式。'), (location.href = 'https://www.baidu.com'))
</script>
<?php