File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
$ ( document ) . ready ( function ( ) {
2
2
3
+ // Google code prettify
4
+ // ================
5
+
6
+ // cache $(window), as it is used in scroll spy logic later on
7
+ var $window = $ ( window ) ;
8
+
9
+ $window . load ( function ( ) {
10
+ // prettyPrint cannot be set as the event handler to load directly; see
11
+ // http://google-code-prettify.googlecode.com/svn/trunk/README.html
12
+ prettyPrint ( ) ;
13
+ } ) ;
14
+
15
+
3
16
// scroll spy logic
4
17
// ================
5
18
6
19
var activeTarget ,
7
- $window = $ ( window ) ,
8
20
position = { } ,
9
21
nav = $ ( 'body > .topbar li a' ) ,
10
22
targets = nav . map ( function ( ) {
@@ -127,4 +139,4 @@ $(document).ready(function(){
127
139
128
140
} ) ;
129
141
130
- } ) ;
142
+ } ) ;
Original file line number Diff line number Diff line change 29
29
< link rel ="apple-touch-icon " sizes ="114x114 " href ="images/apple-touch-icon-114x114.png ">
30
30
</ head >
31
31
32
- < body onload =" prettyPrint(); " >
32
+ < body >
33
33
34
34
<!-- Topbar
35
35
================================================== -->
@@ -1383,4 +1383,4 @@ <h3>Operations and grid system</h3>
1383
1383
</ div >
1384
1384
1385
1385
</ body >
1386
- </ html >
1386
+ </ html >
Original file line number Diff line number Diff line change 25
25
26
26
< div class ="topbar ">
27
27
< div class ="fill ">
28
- < div class ="container fixed ">
28
+ < div class ="container ">
29
29
< h3 > < a href ="# "> Project name</ a > </ h3 >
30
30
< ul >
31
31
< li class ="active "> < a href ="# "> Home</ a > </ li >
@@ -71,4 +71,4 @@ <h2>Heading</h2>
71
71
</ div > <!-- /container -->
72
72
73
73
</ body >
74
- </ html >
74
+ </ html >
You can’t perform that action at this time.
0 commit comments