'+t[n][1]+'
'+artdb[s][1]+''+artdb[s][2]+"
");$("#Inner_Articlespan").prepend(e)}function l(h){var v,t,s,i,o,n,e,l;$("#ch1").text().trim().length?(v=$("#ch1").text(),t=$("#ch2").text(),s=$("#ch3").text(),i=$("#ch4").text()):v=t=s=i="#ffffff",void 0===h?o=n=e=l="#ffffff":(o=artdb[h][7],n=artdb[h][8],e=artdb[h][9],l=artdb[h][10]);const c=["#logo1","#logo2","#logo3","logo4",v,t,s,i];!async function(){await async function(){return new Promise(((h,v)=>{for(var t=0;t<4;t++)$(c[t]).css({fill:c[2*t]});setTimeout((()=>h("done")),0)}))}(),$("#logo2").css({fill:o,transition:"fill 1s"}),$("#logo1").css({fill:n,transition:"fill 1s"}),$("#logo4").css({fill:e,transition:"fill 1s"}),$("#logo3").css({fill:l,transition:"fill 1s"})}(),$("#ch1").text(o),$("#ch2").text(n),$("#ch3").text(e),$("#ch4").text(l)}function c(t){var s=t+1;s>=h?$("#ldr").text(""):$("#ldr").text(s);var i=t-1;i<=-1?$("#rdr").text(""):$("#rdr").text(i),$("#cdr").text(t);const o=["#articlecontent_Body","#sp12","#sp13","#t11","#t12","#t13"];$("#articlecontent_Body").load(artdb[t][0]),document.title=v+" - "+artdb[t][1];for(var n=1;n<6;n++)$(o[n]).text(artdb[t][n]);l(t),window.scrollTo(0,0),d()}function r(h){location.hash="'"+h+" - "+artdb[h][1]+"'",c(h)}function a(){var h=window.location.hash;if(""==h)$("#classholder").removeClass(),l(),document.title=v,window.scrollTo(0,0);else{var t=(t=h.substring(0,h.indexOf("%20-%20"))).substring(2);t=parseInt(t)||0;$("#classholder").addClass("c"+t),c(t)}}function d(){function h(h,v){$("#main_Outerbox").css("left",c+h[0]+"vh"),$("#main_Outerbox").css("width",l+h[1]+"vh"),$("#main_Outerbox").css("height",h[2]+"vh"),$("#main_Outerbox").css("top",h[3]+"vh"),$("#main_Innerbox").css("left",c+h[4]+"vh"),$("#main_Innerbox").css("width",l+h[5]+"vh"),$("#main_Innerbox").css("height",h[6]+"vh"),$("#main_Innerbox").css("top",h[7]+"vh");var s=$("#main_Innerbox").width();$(".ttotal_div").css("width",s+"px"),$(".ttotal_div").css("height",h[8]+"vh"),$(".ttotal_div").css("margin",.005*s+"px"),$(".ttotal_div").css("marginBottom","0px"),$(".ttotal_div").css("display","inline-block"),$(".ticon_div").css("width",h[8]+"vh"),$(".ticon_div").css("height",h[9]+"vh"),$(".ttxt_div").css("height",h[9]+"vh"),$(".ttxt_title").css("height",h[9]+"vh"),$(".ttxt_title").css("line-height",h[9]+"vh"),$(".ttxt_title").css("word-wrap","break-word"),$(".ttxt_title").css("overflow-wrap","normal"),$(".ttxt_date").css("height",h[9]+"vh"),$(".ttxt_date").css("line-height",h[9]+"vh"),$(".ttxt_date").css("text-align","right"),$("#Inner_Articlespan").css("left",h[14]+"%"),$("#Inner_Articlespan").css("width",h[15]+"%"),$("#Inner_Articlespan").css("top",h[16]+"vh"),$("#Inner_Articlespan").css("white-space","nowrap"),$("#Inner_Articlespan").css("display","flex"),$("#Inner_Articlespan").css("flex-direction","row"),$("#Inner_Articlespan").css("flex-wrap","wrap"),$("#inner_Articlecontent").css("margin-left",h[14]+"%"),$("#inner_Articlecontent").css("width",h[15]+"%"),$("#inner_Articlecontent").css("top",h[16]+"vh"),$("#profilediv").css("top","0px"),$("#profilediv").css("width",s-.005*s+"px"),$("#profilediv").css("backgroundColor","white"),$("#profilediv").css("border-bottom","0px solid black"),$("#profilediv").css("margin","0px"),$("#logo").css("float","none"),$("#logo").css("margin-right","0px"),$("#logo").css("margin-right","10px"),$("#logo").css("margin-top","10px"),$("#Inner_Profilespan").css("width",h[12]+"%");var o=$("#Inner_Articlespan").width(),n=o-t/100*h[17];$(".ttxt_div").css("width",n+"px");var e=o-$(".ttxt_date").width()-t/100*h[18];$(".ttxt_title").css("max-width",e+"px"),$("body").css("overflow-y",v[0]),""==i?($("#profilediv").css("display",v[7]),$("#Inner_Profilespan").css("visibility",v[1]),$("#Inner_Articlespan").css("display",v[2]),$("#inner_Articlecontent").css("display",v[3])):($("#profilediv").css("display",v[8]),$("#Inner_Profilespan").css("visibility",v[4]),$("#Inner_Articlespan").css("display",v[5]),$("#inner_Articlecontent").css("display",v[6]))}var v=document.documentElement.clientWidth,t=document.documentElement.clientHeight,s=v/t,i=window.location.hash,o="Will's blog",n='Contact',e='Github';if(s>1.4&&t>500&&v>500){var l=0,c=(v-1.275*t)/2/t*100;h([5,120,100,0,8,114,87,3,5,5,5,5,27,0,29,71,0,5,7.5],["visible","visible","flex","none","visible","none","block","block","block"]);var r=$("#main_Innerbox").width(),a=$(".ticon_div").width();$(".ttotal_div").css("width",.76*r+"px"),$(".ttxt_div").css("width",.69*r-a+"px"),$(".ttxt_title").css("width",.5*r-1.5*a+"px"),$(".ttxt_title").css("marginLeft",.25*a+"px"),$(".ttxt_date").css("width",.15*r-a+"px"),$("#Inner_Articlespan").css("margin-top","0px"),$("#inner_Articlecontent").css("margin-top","0px"),$("#profilediv").css("position","fixed"),$("#profilediv").css("height",t-1*(.03*t*1+.01*r)+"px"),$("#profilediv").css("width",.25*r+"px"),$("#profilediv").css("margin-top",.027*r+"px"),$("#profilediv").css("marginRight","0px"),$("#profilediv").css("padding",.005*r+"px"),$("#logo").css("width",.26*r+"px"),$("#logo").css("margin-right","0px"),$("#logo").css("margin-top","0px"),$("#Inner_Profilespan").html("
"+o+"
"+n+"
"+e+"
")}else if(s>.9&&t>500&&v>500||s>1.4&&t>500&&v>500){l=(v-.0925*t)/t*100,c=0;h([9.25,-9.25,100,0,10.25,-11.25,91,2,4,4,4,4,100,1,0,100,0,6,7.5],["visible","visible","flex","none","visible","none","block","block","block"]);var d=.15*(r=$("#main_Innerbox").width());$("#Inner_Articlespan").css("margin-top",d+20+"px"),$("#inner_Articlecontent").css("margin-top",d+20+"px"),$("#inner_Articlecontent").css("margin-left","0px"),$("#profilediv").css("position","fixed"),$("#profilediv").css("height",d+20+"px"),$("#profilediv").css("border-bottom","1px solid black"),$("#logo").css("float","left"),$("#logo").css("width",d+"px"),$("#Inner_Profilespan").html("
"+o+"
"+n+"
"+e+"
")}else{l=v/t*100,c=0;h([2,-4,100,0,4,-8,91,2,4,4,4,4,100,0,30,70,0,5,7.5],["hidden","visible","none","none","visible","none","none","block","block"]);d=.5*(r=$("#main_Innerbox").width());$("#logo").css("width",d+"px"),$("#Inner_Profilespan").css("margin-top",d+20+"px"),$("#Inner_Profilespan").html("
"+o+"
"+n+"
"+e+"
Additional content viewable on larger screen.")}}a(),d(),$(window).on("orientationchange",(function(h){$(window).resize(d)})),$(window).resize(d),$(".ttotal_div").click((function(){var h=(h=$(this).attr("id")).substring(1);h=parseInt(h)||0;$("#classholder").addClass("c"+h),r(h)})),$("#ldr").click((function(){var h=$("#classholder").attr("class");$("#classholder").removeClass();h=h.substring(1),h=(h=parseInt(h)||0)+1;$("#classholder").addClass("c"+h),r(h)})),$("#rdr").click((function(){var h=$("#classholder").attr("class");$("#classholder").removeClass();h=h.substring(1),h=(h=parseInt(h)||0)-1;$("#classholder").addClass("c"+h),r(h)})),$(".home").click((function(){$("#classholder").removeClass(),history.pushState("",document.title,window.location.pathname+window.location.search),window.scrollTo(0,0),a(),d()}))}));