fix error

This commit is contained in:
rulingcom committed 2021-09-16 03:43:37 +00:00
1 parent 9183085bbd
commit d33fc25c3f
2 files changed
+16 -4

No files matched your search

+4 -4
View File
@@ -427,7 +427,7 @@
orbit.setColumn('.left-column', '.right-column');
// 自適應網頁使用,當網頁載入時,如果視窗寬度小於769,就執行orbit.nav.setDropdown函數
if ($(window).width() < 769) {
if ($(window).outerWidth() < 769) {
// orbit.nav.setDropdown();
orbit.MobileMenu();
$('.mobile-menu').append($('.modules-menu'));
@@ -441,7 +441,7 @@
// 自適應網頁使用,當使用者改變瀏覽器寬度時呼叫orbit.nav.setDropdown函數
$(window).resize(function() {
if ($(window).width() < 769) {
if ($(window).outerWidth() < 769) {
if (resizeTimer) clearTimeout(resizeTimer);
$('.outdropdowns').before($('.header-nav'));
resizeTimer = setTimeout(function() {
@@ -715,7 +715,7 @@ function transdate(){
$(document).ready(function() {
//RWD 自動縮放headerbannner
function headerH() {
if ($(window).width() < 769) {
if ($(window).outerWidth() < 769) {
const navH = $('.layout-header .navbar-header').outerHeight();
}
@@ -839,7 +839,7 @@ function transdate(){
$(document).resize(function() {
$('.modules-menu-level-1').css('left','-'+$('.outdropdowns .dropdowns').offset().left+'px');
if ($(window).width() < 769){
if ($(window).outerWidth() < 769){
$('.modules-menu-level-1').css('left','')
}