We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd844c6 commit 5193619Copy full SHA for 5193619
docs/assets/js/application.js
@@ -1,23 +1,16 @@
1
$(document).ready(function(){
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
+ prettyPrint();
15
16
// scroll spy logic
17
// ================
18
19
var activeTarget,
20
position = {},
+ $window = $(window),
21
nav = $('body > .topbar li a'),
22
targets = nav.map(function () {
23
return $(this).attr('href');
0 commit comments