/**
 * jQuery Sticky 1.0.0
 * @author Raphaël Lefebvre <raphael@raphaellefebvre.be>
 * @website https://github.com/Raphhh/jquery-sticky
 */
(function ( $, window ) {
    "use strict";

    $.fn.sticky = function( options ) {

        var $stuckableTags = this,
            settings = $.extend({
                top: '0',
                width: '100%',
                'z-index': '10000000',
                superposition: false
            }, options );

        var calculateTop = function($currentStuckTag, index){
            if(!settings.superposition && index){
                var $previousStuckTag = $stuckableTags.eq(index-1);
                if($previousStuckTag.length){
                    return parseFloat($previousStuckTag.css('top')) + $previousStuckTag.outerHeight() + parseFloat($currentStuckTag.css('margin-top'));
                }
            }
            return parseFloat(settings.top);
        };

        var isStuckable = function(position, $tag, tagIndex){
            return position + (calculateTop($tag, tagIndex)*2) >= $tag.data('initial-offset').top
        };

        $(window).scroll(function(){
            var position = $(this).scrollTop();
            $stuckableTags.each(function(index){
                var $this = $(this);
                if(isStuckable(position, $this, index)){
                    if($this.hasClass('unstuck')){
                        $this.trigger('stick', position);
                    }
                }else if($this.hasClass('stuck')){
                    $this.trigger('unstick', position);
                }
            });
        });

        return $stuckableTags.each(function(index){
            var $this = $(this);
            $this.data('initial-offset', $this.offset())
                .addClass('unstuck')
                .on('stick', function(){
                    $(this).toggleClass('stuck unstuck').css({
                        position: 'fixed',
                        top: calculateTop($this, index),
                        width: settings.width,
                        'z-index': settings['z-index']
                    });
                })
                .on('unstick', function(){
                    $(this).toggleClass('stuck unstuck').css({
                        position: 'inherit',
                        top: 'inherit',
                        width: 'inherit',
                        'z-index': 'inherit'
                    });
                });
        });

    };

})( jQuery, window );

@@ -1132,24 +1132,32 @@
             
+        
 var position
@@ -1180,16 +1180,24 @@
 lTop();%0A
+        
         
@@ -1245,32 +1245,40 @@
                 
+        
 var $this = $(th
@@ -1274,32 +1274,40 @@
 this = $(this);%0A
+        
                 
@@ -1363,24 +1363,32 @@
             
+        
 if($this.has
@@ -1398,32 +1398,40 @@
 ss('unstuck'))%7B%0A
+        
                 
@@ -1484,34 +1484,50 @@
                 
-%7D%0A
+        %7D%0A        
                 
@@ -1573,32 +1573,40 @@
                 
+        
 $this.trigger('u
@@ -1645,26 +1645,466 @@
     
-%7D%0A            %7D);%0A
+        %7D%0A                    %7D);%0A                %7D)%0A                .resize(function()%7B%0A                    var $stuckTags = $stuckableTags.filter('.stuck');%0A                    $stuckTags.trigger('unstick');%0A                    $stuckableTags.each(function()%7B%0A                        var $this = $(this);%0A                        $this.data('initial-offset', $this.offset());%0A                    %7D);%0A                    $stuckTags.trigger('stick');%0A        
     

handle the resiez of the page