Sha256: 5d912e3fcbc66b1e211b0c4b272d83dccb3a7693fd33e42f43db6169e102f084
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
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()};
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
personally-developed-2.1.0 | assets/js/main.min.js |
personally-developed-2.0.0 | assets/js/main.min.js |