Difference between revisions of "Team:Cambridge-JIC/TestHome"
Line 12: | Line 12: | ||
<script> | <script> | ||
$(window).ready(function(){ | $(window).ready(function(){ | ||
+ | |||
+ | $(".downarrow").each(function(){ | ||
+ | if($(this).attr("id") !== "overlay") { | ||
+ | $(this).on("click", function(){ | ||
+ | console.log($(this).parents("section").next().offset().top) | ||
+ | }) | ||
+ | $(this).css("cursor", "pointer") | ||
+ | } | ||
+ | }) | ||
$(window).on("scroll", function(){ | $(window).on("scroll", function(){ | ||
Line 31: | Line 40: | ||
}); | }); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}); | }); |
Revision as of 01:39, 4 August 2015