Commit 5193619a authored by Jacob Thornton's avatar Jacob Thornton

clean up redundant google prettify code

parent fd844c6d
$(document).ready(function(){ $(document).ready(function(){
// Google code prettify // Google code prettify
// ================ // ====================
// cache $(window), as it is used in scroll spy logic later on
var $window = $(window);
$window.load(function() { prettyPrint();
// prettyPrint cannot be set as the event handler to load directly; see
// http://google-code-prettify.googlecode.com/svn/trunk/README.html
prettyPrint();
});
// scroll spy logic // scroll spy logic
// ================ // ================
var activeTarget, var activeTarget,
position = {}, position = {},
$window = $(window),
nav = $('body > .topbar li a'), nav = $('body > .topbar li a'),
targets = nav.map(function () { targets = nav.map(function () {
return $(this).attr('href'); return $(this).attr('href');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment