Difference between revisions of "Team:Greece/Project"

Line 46: Line 46:
 
                 // Change color of current link
 
                 // Change color of current link
 
                 $('a[href*="' +window.location.href+'"]').each(function() { $(this).css('color', '#000000'); });
 
                 $('a[href*="' +window.location.href+'"]').each(function() { $(this).css('color', '#000000'); });
 +
 +
(function($) {
 +
    $.fn.goTo = function() {
 +
        $('html, body').animate({
 +
            scrollTop: $(this).offset().top + 'px'
 +
        }, 1000);
 +
        return this; // for chaining...
 +
    }
 +
})(jQuery);
 
       });
 
       });
 
     </script>
 
     </script>

Revision as of 10:37, 20 September 2017

Loading...