PageSourceSearch

https://mokkedano.net/js/smoothScroll.js?v=336cea343ea15dac82038e3102a0b0374670c787

js mokkedano.net collected 2026-10-02 17:07:44 UTC 530 bytes, 19 lines download raw bytes

1(function($) {
2  $(function() {
3    $(".js-smoothScroll").click(function() {
4      try {
5        var fixed = $("header.siteHeader").hasClass("fixed");
6        var data_margin = $(this).data("margin");
7        var margin = ((data_margin ? data_margin : 0) + (fixed ? 0 : 55));
8
9        var $targetObject = $($(this).attr("href"));
10        var p = $targetObject.offset().top - margin;
11
12        $('html, body').animate({scrollTop:p}, 500);
13      }
14      catch (e) {}
15      return false;
16    });
17  });
18})(jQuery);
19

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.