]> git.ipfire.org Git - ipfire.org.git/blobdiff - templates/index.html
features page added spyscoll to navigation
[ipfire.org.git] / templates / index.html
index 234db580c93548cdc8f5015e0c012ba107750653..8377933085774b23ae4dea27bc6b0fa048c7c6ef 100644 (file)
@@ -16,8 +16,8 @@
                        </div>
                </div>
                
-               <div id="scrollto" class="page-scroll">
-                       <a href="#features" class="btn btn-outline-primary rounded-circle">
+               <div class="page-scroll">
+                       <a href="#features" class="btn btn-outline-primary rounded-circle scroll">
                                <svg class="icon i_lg i_arrow_down"><use xlink:href="#arrow_down"/></svg>
                        </a>
                </div>
                        </div>
                </div>
        </section>
+<script>
+$(document).ready(function () {
+       $('.scroll').on('click', function(event) {
+                       event.preventDefault();
+                       $('html, body').stop().animate({
+                               scrollTop: $('#features').offset().top -72
+                       }, 1000);
+       });
+});
+</script>
 {% end block %}