PageSourceSearch

https://snowhill.org/wp-content/themes/Snowhill/scripts/pin.js?ver=1

js snowhill.org collected 2026-10-02 06:37:54 UTC 903 bytes, 41 lines download raw bytes

1$(window).load(function() {
2  var $body, $pins, $window, pinOffset;
3 
4  $window = $(window);
5  $pins = $('.pin');
6  $body = $('body');
7  pinOffset = 0;
8  
9  $pins.each(function(i, el) {
10    var $el, height;
11    $el = $(el);
12    height = $el.outerHeight();
13    $el.css({
14      marginBottom: "-=" + height,
15      top: pinOffset
16    }).data({
17      offset: $el.offset().top - pinOffset,
18      top: pinOffset
19    });
20    $el.after($('<div/>').css({
21      height: height,
22      marginTop: "+=" + height,
23      width: $el.outerWidth()
24    }));
25    return pinOffset += height;
26  });
27  
28  $window.scroll(function() {
29    var scrollTop;
30    scrollTop = $window.scrollTop();
31    return $pins.each(function(i, el) {
32      var $el;
33      $el = $(el);
34      if (scrollTop > $el.data().offset) {
35        return $el.addClass('pinned');
36      } else {
37        return $el.removeClass('pinned');
38      }
39    });
40  });
41});

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.