Difference between revisions of "Team:Cambridge-JIC/TestHome"
Line 11: | Line 11: | ||
<script> | <script> | ||
+ | $(window).ready(function(){ | ||
+ | |||
$(window).on("scroll", function(){ | $(window).on("scroll", function(){ | ||
Line 27: | Line 29: | ||
$(".downarrow").hide() | $(".downarrow").hide() | ||
} | } | ||
+ | |||
+ | }); | ||
+ | |||
+ | $(".downarrow").each(function(){ | ||
+ | $(this).on("click", function(){ | ||
+ | console.log($(this).parents("section").next().top()) | ||
+ | }) | ||
+ | $(this).css("cursor", "pointer") | ||
+ | }) | ||
}); | }); |
Revision as of 01:20, 4 August 2015