"use strict";

(function ($) {

	$.fn.stickyHeader = function( options ) {

		var defaults = {
			fixedBlock: '.new-post__main-text',
			offsetTop: 470,
			speed: 50
		};


		return this.each(function () {

			var settings = $.extend({}, defaults, options),
				$fixedBlock = $(settings.fixedBlock, this),
				speed = settings.speed,
				offsetTop = settings.offsetTop;

			// Hide on default
			$fixedBlock.hide();

			$(window).scroll(function() {

				if ( $(this).scrollTop() > offsetTop ) { // Show on scroll
					$fixedBlock.slideDown( speed );
				} else if ( $(this).scrollTop() <= offsetTop ) { // Hide on scroll
					$fixedBlock.slideUp( speed );
				}
			});
		});
	};
}(jQuery));

@@ -1,8 +1,308 @@
+/*!%0A * Sticky header script v0.0.1%0A * https://github.com/IamEmpty/sticky-header%0A *%0A * Also you need to use jQuery%0A * http://jquery.com/%0A *%0A * Copyright 2015 IamEmpty%0A * Released under the MIT license%0A * https://github.com/IamEmpty/sticky-header/blob/master/LICENSE%0A *%0A * Date: 2015-03-26T15:11Z%0A */%0A%0A
 %22use str
@@ -409,27 +409,20 @@
 : '.
-new-post__main-text
+header_fixed
 ',%0A%09

add info to script