function dayOfWeek(){var n=new Date,e=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];return e[n.getDay()]}window.onload=function(){function n(){if("undefined"!=typeof window.scrollY)return window.scrollY;var n=document.documentElement;return n.clientHeight?n.scrollTop:document.body.scrollTop}window.innerWidth>=600&&(window.onscroll=function(){var e=document.getElementById("box"),o=n();28>=o?e.style.top="0px":e.style.top=o+2+"px"}),document.getElementById("day").innerHTML=dayOfWeek()};
function dayOfWeek(){var e=new Date,n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];return n[e.getDay()]}window.onload=function(){function e(){function e(){if("undefined"!=typeof window.scrollY)return window.scrollY;var e=document.documentElement;return e.clientHeight?e.scrollTop:document.body.scrollTop}if(window.innerWidth>=1e3)window.onscroll=function(){var n=document.getElementById("box"),o=e();28>=o?n.style.top="0px":n.style.top=o+2+"px"};else{window.onscroll=null;var n=document.getElementById("box");n.style.top="0px"}}e(),window.addEventListener("resize",e,!1),document.getElementById("day").innerHTML=dayOfWeek()};
Update js so info box doesn't scroll after window size is < 1000px
Update js so info box doesn't scroll after window size is < 1000px
