3
3
4
4
< head >
5
5
< script >
6
- < script async src = "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" > </ script >
6
+ < script async src = "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" >
7
+ </ script >
7
8
< script >
8
9
( adsbygoogle = window . adsbygoogle || [ ] ) . push ( {
9
10
google_ad_client : "ca-pub-8550836177608334" ,
@@ -4050,21 +4051,25 @@ <h4 class="text-gray"><i class="linecons-tag" style="margin-right: 7px;" id="UED
4050
4051
</ div >
4051
4052
<!-- 锚点平滑移动 -->
4052
4053
< script type ="text/javascript ">
4053
- // $(document).ready(function() {
4054
- // $("#main-menu li ul li").click(function() {
4055
- // $(this).siblings('li').removeClass('active'); // 删除其他兄弟元素的样式
4056
- // $(this).addClass('active'); // 添加当前元素的样式
4057
- // });
4058
- // $("a.smooth").click(function() {
4059
- // $("html, body").animate({
4060
- // scrollTop: $($(this).attr("href")).offset().top - 30
4061
- // }, {
4062
- // duration: 500,
4063
- // easing: "swing"
4064
- // });
4065
- // });
4066
- // return false;
4067
- // });
4054
+ $ ( document ) . ready ( function ( ) {
4055
+ $ ( "#main-menu li ul li" ) . click ( function ( ) {
4056
+ $ ( this ) . siblings ( 'li' ) . removeClass ( 'active' ) ; // 删除其他兄弟元素的样式
4057
+ $ ( this ) . addClass ( 'active' ) ; // 添加当前元素的样式
4058
+ } ) ;
4059
+ $ ( "a.smooth" ) . click ( function ( ev ) {
4060
+ ev . preventDefault ( ) ;
4061
+
4062
+ public_vars . $mainMenu . add ( public_vars . $sidebarProfile ) . toggleClass ( 'mobile-is-visible' ) ;
4063
+ ps_destroy ( ) ;
4064
+ $ ( "html, body" ) . animate ( {
4065
+ scrollTop : $ ( $ ( this ) . attr ( "href" ) ) . offset ( ) . top - 30
4066
+ } , {
4067
+ duration : 500 ,
4068
+ easing : "swing"
4069
+ } ) ;
4070
+ } ) ;
4071
+ return false ;
4072
+ } ) ;
4068
4073
4069
4074
var href = "" ;
4070
4075
var pos = 0 ;
@@ -4076,23 +4081,8 @@ <h4 class="text-gray"><i class="linecons-tag" style="margin-right: 7px;" id="UED
4076
4081
e . preventDefault ( ) ;
4077
4082
href = $ ( this ) . attr ( "href" ) ;
4078
4083
pos = $ ( href ) . position ( ) . top - 30 ;
4079
- $ ( "html,body" ) . animate ( {
4080
- scrollTop : pos
4081
- } , 500 ) ;
4082
4084
} ) ;
4083
4085
</ script >
4084
- <!-- Global site tag (gtag.js) - Google Analytics -->
4085
- < script async src ="https://www.googletagmanager.com/gtag/js?id=UA-111463289-1 "> </ script >
4086
- < script >
4087
- window . dataLayer = window . dataLayer || [ ] ;
4088
-
4089
- function gtag ( ) {
4090
- dataLayer . push ( arguments ) ;
4091
- }
4092
- gtag ( 'js' , new Date ( ) ) ;
4093
-
4094
- gtag ( 'config' , 'UA-111463289-1' ) ;
4095
- </ script >
4096
4086
<!-- Bottom Scripts -->
4097
4087
< script src ="../assets/js/bootstrap.min.js "> </ script >
4098
4088
< script src ="../assets/js/TweenMax.min.js "> </ script >
0 commit comments