File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 36
36
href ="{{ site.baseurl }}/{{ css }} "
37
37
>
38
38
{% endfor %}
39
+
40
+ < script src ="{{ site.baseurl }}/js/jquery.min.js "> </ script >
39
41
</ head >
40
42
< body >
41
43
42
44
{{ content }}
43
45
44
- < script src ="{{ site.baseurl }}/js/jquery.min.js "> </ script >
45
46
< script src ="{{ site.baseurl }}/js/highlight.pack.js "> </ script >
46
47
< script src ="{{ site.baseurl }}/js/bootstrap.min.js "> </ script >
47
48
{% for js in page.extraJS %}
48
49
< script src ="{{ site.baseurl }}/{{ js }} "> </ script >
49
50
{% endfor %}
50
- < script >
51
- $ ( document ) . ready ( function ( ) {
52
- $ ( 'pre code' ) . each ( function ( i , block ) {
53
- hljs . highlightBlock ( block ) ;
54
- } ) ;
55
-
56
- if ( window . location . hash . length > 0 ) {
57
- window . scrollTo ( 0 , $ ( window . location . hash ) . offset ( ) . top - 90 ) ;
58
- }
59
- } ) ;
60
- </ script >
61
-
51
+ < script src ="{{ site.baseurl }}/js/dottydoc.js "> </ script >
62
52
< script >
63
53
( ( window . gitter = { } ) . chat = { } ) . options = {
64
54
room : 'lampepfl/dotty'
Original file line number Diff line number Diff line change
1
+ $ ( document ) . ready ( function ( ) {
2
+ // Code hilighting (requires hilight.js to be loaded)
3
+ $ ( 'pre code' ) . each ( function ( i , block ) {
4
+ hljs . highlightBlock ( block ) ;
5
+ } ) ;
6
+ // Autoscroll to anchor
7
+ if ( window . location . hash . length > 0 ) {
8
+ window . scrollTo ( 0 , $ ( window . location . hash ) . offset ( ) . top - 90 ) ;
9
+ }
10
+ } )
You can’t perform that action at this time.
0 commit comments