PageSourceSearch

https://liblime.com/wp-content/themes/inovado/framework/js/waypoints-sticky.js?ver=1.4

js liblime.com collected 2026-10-01 11:37:58 UTC 1,610 bytes, 54 lines download raw bytes

1// Generated by CoffeeScript 1.4.0
2
3/*
4Sticky Elements Shortcut for jQuery Waypoints - v2.0.2
5Copyright (c) 2011-2013 Caleb Troughton
6Dual licensed under the MIT license and GPL license.
7https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt
8*/
9
10
11(function() {
12
13  (function(root, factory) {
14    if (typeof define === 'function' && define.amd) {
15      return define(['jquery', 'waypoints'], factory);
16    } else {
17      return factory(root.jQuery);
18    }
19  })(this, function($) {
20    var defaults, wrap;
21    defaults = {
22      wrapper: '<div class="sticky-wrapper" />',
23      stuckClass: 'stuck'
24    };
25    wrap = function($elements, options) {
26      $elements.wrap(options.wrapper);
27      $elements.each(function() {
28        var $this;
29        $this = $(this);
30        $this.parent().height($this.outerHeight());
31        return true;
32      });
33      return $elements.parent();
34    };
35    return $.waypoints('extendFn', 'sticky', function(options) {
36      var $wrap, originalHandler;
37      options = $.extend({}, $.fn.waypoint.defaults, defaults, options);
38      $wrap = wrap(this, options);
39      originalHandler = options.handler;
40      options.handler = function(direction) {
41        var $sticky, shouldBeStuck;
42        $sticky = $(this).children(':first');
43        shouldBeStuck = direction === 'down' || direction === 'right';
44        $sticky.toggleClass(options.stuckClass, shouldBeStuck);
45        if (originalHandler != null) {
46          return originalHandler.call(this, direction);
47        }
48      };
49      $wrap.waypoint(options);
50      return this;
51    });
52  });
53
54}).call(this);

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.