增加全屏功能(天元)
This commit is contained in:
parent
0200629413
commit
f7672e3e02
|
@ -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 快捷键进行操作。");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue