Difference between revisions of "Team:Greece/Model"

Line 13: Line 13:
 
     <!-- Call Jquery -->
 
     <!-- Call Jquery -->
 
     <script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
 
     <script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
 +
 +
    <!-- Plugin -->
 +
    <script>
 +
      (function($) {
 +
          $.fn.goTo = function() {
 +
            $('html, body').animate({
 +
                scrollTop: $(this).offset().top + 'px'
 +
            }, 1000);
 +
          return this; // for chaining...
 +
          }
 +
      })(jQuery);
 +
    </script>
  
 
     <!-- On document.ready -->
 
     <!-- On document.ready -->

Revision as of 10:45, 1 September 2017

Loading...