File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 ">
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
- < link rel ="stylesheet " href ="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1 /css/bootstrap.min.css " integrity ="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh " crossorigin ="anonymous ">
6
+ < link rel ="stylesheet " href ="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0 /css/bootstrap.min.css " integrity ="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk " crossorigin ="anonymous ">
7
7
< link href ="/assets/css/style.css " rel ="stylesheet ">
8
- < link rel ="
stylesheet "
href ="
//cdn.jsdelivr.net/gh/highlightjs/[email protected] /build /styles/monokai.min.css"
>
8
+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3 /styles/monokai.min.css ">
9
9
< link rel ="apple-touch-icon " href ="icon.png ">
10
10
< meta name ="theme-color " content ="#fafafa ">
11
11
< link href ="https://fonts.googleapis.com/css?family=Asap " rel ="stylesheet ">
58
58
</ div >
59
59
</ div >
60
60
61
- < script src ="https://ajax.googleapis.com/ajax/libs/jquery/3.4 .1/jquery.min.js "> </ script >
61
+ < script src ="https://ajax.googleapis.com/ajax/libs/jquery/3.5 .1/jquery.min.js "> </ script >
62
62
< script src ="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.2.2/anchor.min.js "> </ script >
63
- < script src ="
//cdn.jsdelivr.net/gh/highlightjs/[email protected] /build /highlight.min.js "
> </ script >
63
+ < script src ="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3 /highlight.min.js "> </ script >
64
64
< script src ="/assets/js/app.js "> </ script >
65
65
</ body >
66
66
</ html >
Original file line number Diff line number Diff line change 1
1
$ ( ( ) => {
2
+ // anchor-js
3
+ anchors . options . visible = 'always' ;
4
+ anchors . add ( ) ;
5
+
6
+ // highlight.js
7
+ hljs . initHighlighting ( ) ;
8
+
2
9
$ ( ".sidebar-sticky .icon" ) . on ( "click" , function ( e ) {
3
10
$ ( this ) . siblings ( "ul" ) . toggle ( ) ;
4
11
this . classList . toggle ( "icon-opened" ) ;
5
12
} ) ;
6
-
7
- hljs . initHighlightingOnLoad ( ) ;
8
-
9
- anchors . options . visible = 'always' ;
10
- anchors . add ( ) ;
11
-
12
13
$ ( `.sidebar-content a[href='${ window . location . pathname } ']` )
13
14
. attr ( "class" , "active-link" )
14
- . parents ( 'ul' ) . show ( ) ;
15
+ . parents ( 'ul' )
16
+ . show ( ) ;
15
17
} ) ;
You can’t perform that action at this time.
0 commit comments