Line 78: | Line 78: | ||
<script> | <script> | ||
+ | |||
+ | $(document).ready(function(){ | ||
+ | $(document).scroll(function(){ | ||
+ | if ($(this).scrollTop() > 50) { | ||
+ | $('#goToTop').css({"display":"auto"}); | ||
+ | } else { | ||
+ | $('#goToTop').css({"display":"none"}); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | |||
+ | |||
var myIndex = 0; | var myIndex = 0; | ||
carousel(); | carousel(); |
Revision as of 00:51, 14 October 2016