/*! * headroom.js v0.9.4 - give your page some headroom. hide your header until you need it * copyright (c) 2017 nick williams - http://wicky.nillia.ms/headroom.js * license: mit */ if ($(window).width() > 1025) { !function(d,c){"function"==typeof define&&define.amd?define([],c):"object"==typeof exports?module.exports=c():d.headroom=c()}(this,function(){function h(b){this.callback=b,this.ticking=!1}function g(b){return b&&"undefined"!=typeof window&&(b===window||b.nodetype)}function l(b){if(arguments.length<=0){throw new error("missing arguments in extend function")}var o,n,m=b||{};for(n=1;nthis.getscrollerheight();return d||f},toleranceexceeded:function(d,c){return math.abs(d-this.lastknownscrolly)>=this.tolerance[c]},shouldunpin:function(f,e){var n=f>this.lastknownscrolly,m=f>=this.offset;return n&&m&&e},shouldpin:function(f,e){var n=fthis.lastknownscrolly?"down":"up",f=this.toleranceexceeded(e,d);this.isoutofbounds(e)||(e<=this.offset?this.top():this.nottop(),e+this.getviewportheight()>=this.getscrollerheight()?this.bottom():this.notbottom(),this.shouldunpin(e,f)?this.unpin():this.shouldpin(e,f)&&this.pin(),this.lastknownscrolly=e) }},j.options={tolerance:{up:0,down:0},offset:0,scroller:window,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",nottop:"headroom--not-top",bottom:"headroom--bottom",notbottom:"headroom--not-bottom",initial:"headroom"}},j.cutsthemustard="undefined"!=typeof i&&i.raf&&i.bind&&i.classlist,j});(function(a){if(!a){return}a.fn.headroom=function(b){return this.each(function(){var e=a(this),d=e.data("headroom"),c=typeof b==="object"&&b;c=a.extend(true,{},headroom.options,c);if(!d){d=new headroom(this,c);d.init();e.data("headroom",d)}if(typeof b==="string"){d[b]();if(b==="destroy"){e.removedata("headroom")}}})};a("[data-headroom]").each(function(){var b=a(this);b.headroom(b.data())})}(window.zepto||window.jquery));$(function(){$("#header_main").headroom({tolerance:5,offset:205,classes:{initial:"header_animated",pinned:"slidedown",unpinned:"slideup"}})}); }