|  | 
| 1 | 1 | <!DOCTYPE html> | 
| 2 | 2 | <html lang="zh"> | 
| 3 |  | - | 
| 4 | 3 | <head> | 
| 5 | 4 | <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | 
| 6 | 5 |  <script> | 
| @@ -4112,6 +4111,31 @@ <h4 class="text-gray"><i class="linecons-tag" style="margin-right: 7px;" id="UED | 
| 4112 | 4111 |  <!-- 锚点平滑移动 --> | 
| 4113 | 4112 |  <script type="text/javascript"> | 
| 4114 | 4113 |  $(document).ready(function() { | 
|  | 4114 | + $(document).on('click', '.has-sub', function(){ | 
|  | 4115 | + var _this = $(this) | 
|  | 4116 | + if(!$(this).hasClass('expanded')) { | 
|  | 4117 | + setTimeout(function(){ | 
|  | 4118 | + _this.find('ul').attr("style","") | 
|  | 4119 | + }, 300); | 
|  | 4120 | + | 
|  | 4121 | + } else { | 
|  | 4122 | + $('.has-sub ul').each(function(id,ele){ | 
|  | 4123 | + var _that = $(this) | 
|  | 4124 | + if(_this.find('ul')[0] != ele) { | 
|  | 4125 | + setTimeout(function(){ | 
|  | 4126 | + _that.attr("style","") | 
|  | 4127 | + }, 300); | 
|  | 4128 | + } | 
|  | 4129 | + }) | 
|  | 4130 | + } | 
|  | 4131 | + }) | 
|  | 4132 | + $('.user-info-menu .hidden-sm').click(function(){ | 
|  | 4133 | + if($('.sidebar-menu').hasClass('collapsed')) { | 
|  | 4134 | + $('.has-sub.expanded > ul').attr("style","") | 
|  | 4135 | + } else { | 
|  | 4136 | + $('.has-sub.expanded > ul').show() | 
|  | 4137 | + } | 
|  | 4138 | + }) | 
| 4115 | 4139 |  $("#main-menu li ul li").click(function() { | 
| 4116 | 4140 |  $(this).siblings('li').removeClass('active'); // 删除其他兄弟元素的样式 | 
| 4117 | 4141 |  $(this).addClass('active'); // 添加当前元素的样式 | 
|  | 
0 commit comments