Skip to Content

JavaScript File

URL: https://tools.hostboxonline.com/assets/site_new/js/jquery.sticky.js
HTTP Status: 200 OK
MIME Type: text/javascript
Last Modified: Mon, 12 Feb 2018 04:50:00 GMT
Download Time: Less than a second
Cookies: None
Size: 10 KB
HTTP Headers:  29 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1// Sticky Plugin v1.0.4 for jQuery

2// =============

3// Author: Anthony Garand

4// Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk)

5// Improvements by Leonardo C. Daronco (daronco)

6// Created: 02/14/2011

7// Date: 07/20/2015

8// Website: http://stickyjs.com/

9// Description: Makes an element on the page stick on the screen as you scroll

10// It will only set the 'top' and 'position' of your element, you

11// might need to adjust the width in some cases.

12

13(function (factory) {

14 if (typeof define === 'function' && define.amd) {

15 // AMD. Register as an anonymous module.

16 define(['jquery'], factory);

17 } else if (typeof module === 'object' && module.exports) {

18 // Node/CommonJS

19 module.exports = factory(require('jquery'));

20 } else {

21 // Browser globals

22 factory(jQuery);

23 }

24}(function ($) {

25 var slice = Array.prototype.slice; // save ref to original slice()

26 var splice = Array.prototype.splice; // save ref to original slice()

27

28 var defaults = {

29 topSpacing: 0,

30 bottomSpacing: 0,

31 className: 'is-sticky',

32 wrapperClassName: 'sticky-wrapper',

33 center: false,

34 getWidthFrom: '',

35 widthFromWrapper: true, // works only when .getWidthFrom is empty

36 responsiveWidth: false,

37 zIndex: 'auto'

38 },

39 $window = $(window),

40 $document = $(document),

...

</html>