Log even more

This commit is contained in:
Chuck Dries 2017-02-14 04:03:25 -07:00
parent dce2c99a7e
commit e35bdd813b

View File

@ -20,6 +20,7 @@
var mast;
function bgColor() {
console.log("innerHeight = " + window.innerHeight + ", window.scrollY = " + window.scrollY);
var p = ((window.innerHeight - window.scrollY) / window.innerHeight); //calulate ratio of scroll
console.log(p);
x.innerHTML = " " + String(parseInt(p * 100)); //display it