Advertisement
Ortund

Untitled

Feb 11th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.16 KB | None | 0 0
  1. $("nav ul li").each(function()
  2. {
  3.     target = $("section#" + $(this).attr("id"));
  4.    
  5.     $("html").attr("data-page-id") = $(this).attr("id");
  6.    
  7.     target.scrollTop();
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement