{"size": 1690, "ext": "js", "max_stars_repo_path": "hideHeader.min.js", "max_stars_repo_name": "manchakkay/hideHeader", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "hideHeader.min.js", "max_issues_repo_name": "manchakkay/hideHeader", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "hideHeader.min.js", "max_forks_repo_name": "manchakkay/hideHeader", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 1690.0, "max_line_length": 1690, "alphanum_fraction": 0.8047337278}
var hideHeader={data:{settings:{timeout:0,selector:".header__wrapper",height:"auto",height_func:'getComputedStyle(document.querySelector("html")).getPropertyValue("--cell")'},scroll:{prev:0,now:0},timer:null,header:null,height_value:null},init:function(e,a,d,t){hideHeader.data.scroll.prev=window.pageYOffset,hideHeader.data.timer=null,document.addEventListener("scroll",hideHeader.handle),document.addEventListener("resize",hideHeader.handle),null==e||null==e||isNaN(e)||(hideHeader.data.settings.timeout=e),null!=a&&null!=a&&(hideHeader.data.settings.selector=a.toString()),null!=d&&null!=d&&(hideHeader.data.settings.height=d),"auto"==d&&null!=t&&null!=t&&(hideHeader.data.settings.height_func=t)},handle:function(){hideHeader.data.scroll.now=window.pageYOffset,hideHeader.data.header=document.querySelector(hideHeader.data.settings.selector),hideHeader.data.header.style.transition="top 0.6s ease-in-out",null!=hideHeader.data.header&&null!=hideHeader.data.header&&hideHeader.data.scroll.prev>hideHeader.data.scroll.now&&hideHeader.data.scroll.prev>0||0==hideHeader.data.scroll.now?hideHeader.show():(hideHeader.hide(),!isNaN(hideHeader.data.settings.timeout)&&hideHeader.data.settings.timeout>0&&(clearTimeout(hideHeader.data.timer),hideHeader.data.timer=setTimeout(hideHeader.show,hideHeader.data.settings.timeout))),hideHeader.data.scroll.prev=hideHeader.data.scroll.now},show:function(){hideHeader.data.header.style.top="0"},hide:function(){"auto"==hideHeader.data.settings.height?hideHeader.data.height_value=eval(hideHeader.data.settings.height_func):hideHeader.data.height_value=hideHeader.data.settings.height,hideHeader.data.header.style.top="-"+hideHeader.data.height_value}};