{"size": 3068, "ext": "js", "max_stars_repo_path": "js/easybook.js", "max_stars_repo_name": "ohoncharuk/ohoncharuk.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/easybook.js", "max_issues_repo_name": "ohoncharuk/ohoncharuk.github.io", "max_issues_repo_issues_event_min_datetime": "2021-05-18T18:20:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T03:05:15.000Z", "max_forks_repo_path": "js/easybook.js", "max_forks_repo_name": "ohoncharuk/ohoncharuk.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 3068.0, "max_line_length": 3068, "alphanum_fraction": 0.7079530639}
function TOCize(a,b,c){function g(a,b,c){var d=a.getBoundingClientRect().top+f.getTop();if(window.history.pushState)window.history.pushState({},a.textContent,"#"+b),f.to(d),c.preventDefault();else{var e=f.getTop();setTimeout(function(){f.setTop(e),f.to(d)},0)}}if(!(a&&b&&c))return!1;for(var d=0,e=function(a){return document.createElement(a)},f={to:function(a){f.target=a,f.running||(f.running=setInterval(f.tick,20))},target:0,running:0,getTop:function(){return window.scrollY||window.pageYOffset||document.documentElement.scrollTop},setTop:function(a){window.scrollTo&&window.scrollTo(window.scrollX,a)},tick:function(){var a=f.getTop(),b=~~((a+f.target)/2);f.setTop(b),(f.getTop()<b||Math.abs(b-f.target)<10)&&(f.setTop(f.target),clearInterval(f.running),f.running=0)}},h=function(a){var b=e("a");d++;var c=a.getAttribute("id");return c||(c="generated-hash-"+d,a.setAttribute("id",c)),b.textContent=a.textContent,b.setAttribute("href","#"+c),b.addEventListener("click",g.bind(this,a,c),!1),b},i=b.querySelectorAll("h1, h2, h3, h4, h5, h6"),j=null,k=1,l=[e("ul")],m=0;m<i.length;m++){var n=+i[m].tagName.substr(1),o=i[m],p=e("li");if(p.appendChild(h(o)),k<n){do l.push(e("ul")),l[l.length-2].appendChild(l[l.length-1]);while(++k<n)}else if(k>n)do j=l.pop();while(--k>n);j=l[l.length-1],j.appendChild(p)}for(;;){var q=l[0].children;if(1!=q.length||"UL"!=q[0].tagName)break;l.shift()}if(!d)return!1;var r=e("div");a.appendChild(r),a.appendChild(l[0]),a.style.display="block";var s="",u=(document.querySelector(".col-main"),function(){var g,h,d=(f.getTop(),r.getBoundingClientRect().top),e=10;if((g=-d+e)<0&&(g=0),g){var i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,j=c.getBoundingClientRect(),k=j.bottom-d-l[0].offsetHeight;g>k&&(g=k),h=i-(e<<1)+"px"}else h="";h!=s&&(s=h,h?l[0].setAttribute("style","max-height:"+h+"; width:"+(a.offsetWidth-20)+"px"):l[0].setAttribute("style","")),r.style.height=g+"px"});window.addEventListener("scroll",u,!1),window.addEventListener("resize",u,!1)}function SelectAllize(a,b){function f(){e.classList.add("hidden"),e.style.top="-200px"}function g(a){if(d.isCollapsed){var b=a.pageY-e.offsetHeight-15;e.setAttribute("style","left:"+(a.pageX-e.offsetWidth/2)+"px;top:"+(b+10)+"px"),e.classList.remove("hidden"),setTimeout(f,1e3)}}function h(a){d.selectAllChildren(this),f()}if(!window.getSelection)return null;var c=document.querySelectorAll(a),d=window.getSelection(),e=document.createElement("div");e.className="util-notify1",e.textContent=b,document.body.appendChild(e),f(),e.addEventListener("mouseover",f,!1);for(var i=c.length;i--;){var j=c[i];j.addEventListener("click",g,!1),j.addEventListener("dblclick",h,!1)}return!0}function RealLoad(){TOCize(document.querySelector(".post-toc"),document.querySelector(".post-content"),document.querySelector(".col-main")),SelectAllize("pre.highlight","Dblclick to select all");for(var a=document.querySelectorAll(".post-content > p > img"),b=a.length;b--;)1===a[b].parentElement.childNodes.length&&a[b].classList.add("middle-image")}RealLoad();