{"size": 5527, "ext": "js", "max_stars_repo_path": "js/scripts.min.js", "max_stars_repo_name": "mervyns/portfolio", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/scripts.min.js", "max_issues_repo_name": "mervyns/portfolio", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/scripts.min.js", "max_forks_repo_name": "mervyns/portfolio", "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": 2763.5, "max_line_length": 5526, "alphanum_fraction": 0.7298715397}
function onReady(){var k=document.querySelector(".nav__hamburger");var g=document.querySelector(".nav-menu");var o=document.querySelector(".nav-menu__cross");var d=document.querySelectorAll(".nav-menu__list-item");var t=document.querySelector(".nav-menu__separator");var i=document.querySelector(".nav-menu__text");var a=document.querySelector(".nav-menu__email");var l=document.querySelector(".nav-menu__social-btn");var c=document.querySelector(".about-me__skills__btn");var e="";g.inert=true;function m(){var x=[].slice.call(d);var w=[t,i,a,l].concat(x);w.forEach(function(y){y.classList.toggle("nav-menu__items__animation")});o.classList.toggle("nav-menu__cross__animation")}function n(w){w.stopPropagation();k.style.visibility="hidden";g.style.width="250px";o.style.display="block";m();g.inert=false}function v(){o.style.display="none";g.style.width="0px";k.style.visibility="visible";m();g.inert=true}function b(){var x=document.querySelector(".about-me__header");var w=window.innerWidth;if(w>400&&w<500){x.style.backgroundSize="85%"}}function q(A){var C=document.querySelector("#item__one");var B=document.querySelector("#item__two");var z=document.querySelector("#item__three");var x=A.target.dataset.name;function y(E,F,D){if(E.style.height!=F){E.style.transition="all 1s ease-out";E.style.height=F;A.target.classList.toggle("about__me__more__slide");A.target.innerHTML="read less"}else{E.style.transition="all 1s ease-out";E.style.height=D;A.target.classList.toggle("about__me__more__slide");A.target.innerHTML="read more"}}function w(D){if(window.innerWidth<=500){y(D,"900px","390px")}else{if(window.innerWidth<=800){y(D,"750px","336px")}else{if(window.innerWidth>800&&window.innerWidth<1080){y(D,"900px","390px")}else{if(window.innerWidth>1080){y(D,"890px","390px")}}}}}if(x=="item-one-more"){w(C)}else{if(x=="item-two-more"){w(B)}else{if(x=="item-three-more"){w(z)}}}}function p(){var x=document.querySelector(".about-me__skills__flex");var w=document.querySelectorAll(".about-me__skills__item");var A=[].slice.call(w);var B=A.slice(4,-2);var y=A.slice(7);var D=A.slice(4);var E=x.offsetHeight;function z(F){F.forEach(function(G){G.classList.add("about-me__skills__show");G.classList.remove("about-me__skills__hide")})}function C(){function F(J,L,H,I,M,K){for(var G=E;G<J;G++){x.style.transition="all 1s ease-out";if(E>H){z(B);x.style.height=E+L+"px"}if(E>I){if(window.innerWidth<=500){x.style.height=E+L+420+"px"}else{if(window.innerWidth<1024){x.style.height=E+L-400+"px"}else{if(window.innerWidth<=1150){x.style.height=E+L+10+"px"}else{x.style.height=E+L+"px"}}}c.innerHTML="Show less";z(y)}}if(E>M){x.style.transition="all 1s ease-out";x.style.height=K+"px";c.innerHTML="Show more";D.forEach(function(N){N.classList.remove("about-me__skills__show");N.classList.add("about-me__skills__hide")})}}if(window.innerWidth<=500){F(4070,1240,1235,2470,2490,1240)}else{if(window.innerWidth<1024){F(2070,820,820,1640,1660,830)}else{if(window.innerWidth<=1150){F(1240,430,430,860,880,440)}else{F(1240,410,410,820,1000,420)}}}}C()}function s(){var A=document.querySelector(".nav");var B=document.querySelector(".header");var x=document.querySelector(".main-container");var y=document.querySelector(".about-me__container");var z=document.querySelector(".project__container");var w=document.querySelectorAll(".about-me__more");if(document.body.id=="body-index"){A.addEventListener("click",v);B.addEventListener("click",v);x.addEventListener("click",v)}else{if(document.body.id=="body-project"){A.addEventListener("click",v);z.addEventListener("click",v)}else{if(document.body.id=="body-about"){A.addEventListener("click",v);y.addEventListener("click",v);e=[].slice.call(w);e.forEach(function(C){C.addEventListener("click",q,false)});c.addEventListener("click",p);b()}}}}function j(w,x){w.forEach(function(y){y.addEventListener("click",x)})}function h(){var x=document.querySelectorAll(".portfolio__nav__btn");var w=[].slice.call(x);j(w,u)}function u(z){var x=z.target.dataset.btnName;var y=document.querySelectorAll(".portfolio__item");var w=[].slice.call(y);w.forEach(function(A){function D(){A.classList.remove("portfolio__item__show");A.classList.add("portfolio__item__hide");A.style.display="none"}function C(){A.classList.remove("portfolio__item__hide");A.classList.add("portfolio__item__show");A.style.display="block"}function B(E){if(A.dataset.name!=E){D()}else{C()}}if(x=="websites-btn"){B("website")}else{if(x=="apps-btn"){B("app")}else{if(x=="illustrations-btn"){B("illustration")}else{if(x=="all-btn"){C()}}}}})}function f(){$(".nav-menu__link").click(function(){v();$("html, body").animate({scrollTop:$($.attr(this,"href")).offset().top},800);return false});$(".nav__logo__link, .header__btn, .footer-menu__link").click(function(){$("html, body").animate({scrollTop:$($.attr(this,"href")).offset().top},800);return false});$(c).click(function(){var w=$(".about-me__skills__flex");function x(y){$("html, body").animate({scrollTop:y},1500);return false}if(w.width()>768){if(w.height()>400&&w.height()<800){x(1030)}else{if(w.height()>800&&w.height()<1200){x(1430)}else{if($(c).text()==="Show less"){x(620)}}}}else{if(w.width()<=500&&$(c).text()==="Show less"){x(1270)}else{if(w.width()<=768&&$(c).text()==="Show less"){x(1200)}}}})}function r(){f();k.addEventListener("click",n);o.addEventListener("click",v);s();h()}r()}(function(){if(document.readyState==="complete"||(document.readyState!=="loading"&&!document.documentElement.doScroll)){onReady()}else{document.addEventListener("DOMContentLoaded",onReady)}})();
