Sha256: 7c78984ee9dbeb8b8249d94404fe820337f50edbef62baf785f1236d06099810

Contents?: true

Size: 1.16 KB

Versions: 39

Compression:

Stored size: 1.16 KB

Contents

/*!
Waypoints Sticky Element Shortcut - 3.1.1
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
*/
!function(){"use strict";function t(s){this.options=e.extend({},i.defaults,t.defaults,s),this.element=this.options.element,this.$element=e(this.element),this.createWrapper(),this.createWaypoint()}var e=window.jQuery,i=window.Waypoint;t.prototype.createWaypoint=function(){var t=this.options.handler;this.waypoint=new i(e.extend({},this.options,{element:this.wrapper,handler:e.proxy(function(e){var i=this.options.direction.indexOf(e)>-1,s=i?this.$element.outerHeight(!0):"";this.$wrapper.height(s),this.$element.toggleClass(this.options.stuckClass,i),t&&t.call(this,e)},this)}))},t.prototype.createWrapper=function(){this.$element.wrap(this.options.wrapper),this.$wrapper=this.$element.parent(),this.wrapper=this.$wrapper[0]},t.prototype.destroy=function(){this.$element.parent()[0]===this.wrapper&&(this.waypoint.destroy(),this.$element.removeClass(this.options.stuckClass).unwrap())},t.defaults={wrapper:'<div class="sticky-wrapper" />',stuckClass:"stuck",direction:"down right"},i.Sticky=t}();

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
wbase-0.3.20 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.19 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.18 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.17 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.16 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.15 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.14 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.13 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.12 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.11 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.10 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.9 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.8 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.7 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.6 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.5 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.4 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.3 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.2 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js
wbase-0.3.1 app/assets/javascripts/wbase/admin/waypoints/lib/shortcuts/sticky.min.js