Better handling of background color on #top container

This commit is contained in:
2017-06-13 18:54:13 -07:00
parent 9951b8dcd4
commit 7ed9065ee9
3 changed files with 14 additions and 13 deletions

View File

@@ -21,6 +21,7 @@
<style>
#spaceTakerUpper {
height: 98vh;
background: black;
}
</style>
</head>
@@ -220,9 +221,9 @@
// var mastHeight = mast.clientHeight;
// var halfHeight = Math.floor((topHeight / 2) - (mastHeight / 2));
if (topHeight < 300) {
mast.className = "small";
topDiv.className = "small";
} else {
mast.className = "large";
topDiv.className = "large";
}
topDiv.style.height = topHeight + "px";
// console.log("topheight is " + topHeight + " and topDiv.style.height = " + topDiv.style.height);