PageSourceSearch

https://occna.org/public/scripts/scroll-to-top/scripts/bttt.min.js

js occna.org collected 2026-10-02 14:09:26 UTC 756 bytes, 2 lines download raw bytes

1
2"use strict";var btttButton=$("#back-to-the-top");var offset=0;var animationEasing=btttButton.data("animation");var scrollSpeed=btttButton.data("speed");var scrollOffset=btttButton.data("offset");(function(a){a(document).ready(function(){if(btttButton.attr("href")!=undefined){if(a(btttButton.attr("href")).length>0){var b=a(btttButton.attr("href")).offset();offset=b.top}}a(window).scroll(function(){var c=a(window).scrollTop();if(c>(window.scrollOffset+offset)){btttButton.addClass("bttt-active")}else{btttButton.removeClass("bttt-active")}});btttButton.on("click",function(d){d.preventDefault();var c=a(window).scrollTop();var f=Math.round((c*1000)/window.scrollSpeed);a("html, body").animate({scrollTop:offset},f,window.animationEasing)})})})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.