Fix
This commit is contained in:
parent
12f4fa4df0
commit
47f6f9dde2
|
@ -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(){
|
||||
|
|
|
@ -164,6 +164,9 @@
|
|||
}
|
||||
& ul {
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 100%;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
&:last-child {
|
||||
|
|
Loading…
Reference in New Issue