Difference between revisions of "Team:TP CC-SanDiego/test-abishek"
Rachellian7 (Talk | contribs) |
Rachellian7 (Talk | contribs) |
||
Line 18: | Line 18: | ||
var mn = $("#nav-wrapper"); | var mn = $("#nav-wrapper"); | ||
var mn2 = $("#nav"); | var mn2 = $("#nav"); | ||
− | + | var nextdiv = $("#content-wrapper"); | |
if($(window).scrollTop() > winheight){ | if($(window).scrollTop() > winheight){ | ||
mn.addClass("fixed"); | mn.addClass("fixed"); | ||
mn2.addClass("marginRight") | mn2.addClass("marginRight") | ||
− | + | nextdiv.css("padding-top", "50px"); | |
} | } | ||
else{ | else{ | ||
mn.removeClass("fixed"); | mn.removeClass("fixed"); | ||
mn2.removeClass("marginRight") | mn2.removeClass("marginRight") | ||
− | + | nextdiv.css("padding-top", "0px"); | |
} | } | ||
}); | }); |
Revision as of 07:17, 14 September 2015
Project Overview
Lorem Ipsum Dolor Dot. God I hate typing this over and over again. Seriously there is no good filler text here.
Project Overview
Lorem Ipsum Dolor Dot. God I hate typing this over and over again. Seriously there is no good filler text here.