增加全屏功能(天元)

This commit is contained in:
hexl21 2017-01-22 18:05:27 +08:00
parent 0200629413
commit f7672e3e02
1 changed files with 11 additions and 0 deletions

View File

@ -219,4 +219,15 @@ function initScrollState() {
} else {
$('.tab_right>a').addClass('active');
}
}
function fullPage() {
if ($.util.supportsFullScreen) {
if ($.util.isFullScreen()) {
$.util.cancelFullScreen();
} else {
$.util.requestFullScreen();
}
} else {
alert("当前浏览器不支持全屏 API请更换至最新的 Chrome/Firefox/Safari 浏览器或通过 F11 快捷键进行操作。");
}
}