Sha256: 28a183039ba7faa44150197c3cb05ab11081d71baa4870f4431a53c5a37f61b5

Contents?: true

Size: 733 Bytes

Versions: 9

Compression:

Stored size: 733 Bytes

Contents

(function($){$.fn.scrollToTop=function(options){var config={"speed":800};if(options){$.extend(config,{"speed":options})}return this.each(function(){var $this=$(this);$(window).scroll(function(){if($(this).scrollTop()>100){$this.fadeIn()}else{$this.fadeOut()}});$this.click(function(e){e.preventDefault();$("body, html").animate({scrollTop:0},config.speed)})})};$.fn.scrollBodyToTop=function(options){var config={"speed":800};if(options){$.extend(config,{"speed":options})}return this.each(function(){var $this=$(this);$(".placeholder").scroll(function(){if($(this).scrollTop()>100){$this.fadeIn()}else{$this.fadeOut()}});$this.click(function(e){e.preventDefault();$(".placeholder").animate({scrollTop:0},config.speed)})})}})(jQuery);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jekyll-theme-mdui-0.4.0 assets/js/jquery.scrollToTop.js
jekyll-theme-mdui-0.3.0 assets/js/jquery.scrollToTop.js
jekyll-theme-mdui-0.2.5 assets/js/jquery.scrollToTop.js
jekyll-theme-mdui-0.2.4 assets/js/jquery.scrollToTop.js
jekyll-theme-mdui-0.2.3 assets/js/jquery.scrollToTop.js
jekyll-theme-mdui-0.2.2 assets/js/jquery.scrollToTop.js
jekyll-theme-mdui-0.2.1 assets/js/jquery.scrollToTop.js
jekyll-theme-mdui-0.2.0 assets/js/jquery.scrollToTop.js
jekyll-theme-mdui-0.1.0 assets/js/jquery.scrollToTop.js