This commit is contained in:
rulingcom committed 2021-09-22 15:09:30 +00:00
1 parent 12f4fa4df0
commit 47f6f9dde2
2 files changed
+21 -1

No files matched your search

+18 -1
View File
@@ -791,6 +791,20 @@ function transdate(){
// });
// });// //選單
$(document).ready(function() {
$('li.active > span.fa-caret-down').addClass('fa-caret-up').removeClass('fa-caret-down');
window.has_hover = false;
if($(window).outerWidth(true) >= 768){
window.has_hover = true;
}
$('.sitemenu-item.level-1').hover(function(){
if(window.has_hover){
$(this).find(".sitemenu-dropdown-toggle").addClass("fa-caret-up").removeClass('fa-caret-down');
}
},function(){
if(window.has_hover){
$(this).find(".sitemenu-dropdown-toggle").addClass("fa-caret-down").removeClass('fa-caret-up');
}
})
var title_wrapper = $("<div class=\"title-wraper col-sm-12\"></div>")
title_wrapper.append($('.view_count.pull-right,.page-module-title,#main-content .index-title,.i-member-status-title:eq(0),#main-content > * > [class*="-title"]'));
$('.row.pagerow').prepend(title_wrapper);
@@ -842,7 +856,10 @@ function transdate(){
if ($(window).outerWidth() < 769){
$('.modules-menu-level-1').css('left','')
}
window.has_hover = false;
if($(window).outerWidth(true) >= 768){
window.has_hover = true;
}
});
$(window).load(function(){