Team:DTU-Denmark/Templates/StartPage
From 2013.igem.org
(Difference between revisions)
Line 35: | Line 35: | ||
$(".navigation").removeClass("stickToTop"); | $(".navigation").removeClass("stickToTop"); | ||
} | } | ||
- | <!-- here | + | <!-- here is added table of content fixing to screen --> |
- | + | if (scrollPos > 180) { | |
+ | $(".toc").addClass("stickBelowNavigation"); | ||
+ | } else { | ||
+ | $(".toc").removeClass("stickBelowNavigation"); | ||
+ | } | ||
}); | }); | ||
</script> | </script> |
Revision as of 08:30, 19 July 2013