Skip to content

Commit

Permalink
small JS cleanup for doc site script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrburke committed Jan 22, 2011
1 parent 3ec712f commit 2302203
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ $(document).ready(function($) {

// if window is larger than #nav then #nav == fixed, if #nav is larger than window #nav == relative
$(window).bind("load resize", function(){
var w = jQuery(window).height();
var h = jQuery('#nav').outerHeight();
jQuery("#nav").css("position",(w < h) ? ("relative") : ("fixed"));
var w = $(window).height();
var h = $("#nav").outerHeight();
$("#nav").css("position",(w < h) ? ("relative") : ("fixed"));
});

// done!
Expand Down

0 comments on commit 2302203

Please sign in to comment.