教程帮助界面更改
This commit is contained in:
27
Host/wwwroot/help_style/js/nav.js
Normal file
27
Host/wwwroot/help_style/js/nav.js
Normal file
@@ -0,0 +1,27 @@
|
||||
$(function(){
|
||||
// navhelp收缩展开
|
||||
$('.navhelp-item>a').on('click',function(){
|
||||
if (!$('.navhelp').hasClass('navhelp-mini')) {
|
||||
if ($(this).next().css('display') == "none") {
|
||||
//展开未展开
|
||||
$('.navhelp-item').children('ul').slideUp(300);
|
||||
$(this).next('ul').slideDown(300);
|
||||
$(this).parent('li').addClass('navhelp-show').siblings('li').removeClass('navhelp-show');
|
||||
}else{
|
||||
//收缩已展开
|
||||
$(this).next('ul').slideUp(300);
|
||||
$('.navhelp-item.navhelp-show').removeClass('navhelp-show');
|
||||
}
|
||||
}
|
||||
});
|
||||
//navhelp-mini切换
|
||||
$('#mini').on('click',function(){
|
||||
if (!$('.navhelp').hasClass('navhelp-mini')) {
|
||||
$('.navhelp-item.navhelp-show').removeClass('navhelp-show');
|
||||
$('.navhelp-item').children('ul').removeAttr('style');
|
||||
$('.navhelp').addClass('navhelp-mini');
|
||||
}else{
|
||||
$('.navhelp').removeClass('navhelp-mini');
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user