0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-25 16:24:20 +01:00
synapse/docs/client-server/web/files/jquery.slideto.min.js

1 line
369 B
JavaScript

(function(b){b.fn.slideto=function(a){a=b.extend({slide_duration:"slow",highlight_duration:3E3,highlight:true,highlight_color:"#FFFF99"},a);return this.each(function(){obj=b(this);b("body").animate({scrollTop:obj.offset().top},a.slide_duration,function(){a.highlight&&b.ui.version&&obj.effect("highlight",{color:a.highlight_color},a.highlight_duration)})})}})(jQuery);