Skip to content

Commit

Permalink
added sticky footer and changed canvas height
Browse files Browse the repository at this point in the history
  • Loading branch information
mafo3186 committed Dec 22, 2023
1 parent 55817ce commit 429176d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,14 @@ table {
width: 100%;
}

.footer {
margin-top: auto;
position: sticky;
bottom: 0;
z-index: 1000;
}

.footer a:link,
.footer a:visited {
color: black;
}
}
3 changes: 1 addition & 2 deletions js/canvas.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

let textFieldInput = document.getElementById("treeInputInsert");
let inputButton = document.getElementById("submitInsert");
let inputDeleteButton = document.getElementById("submitDelete");
Expand Down Expand Up @@ -26,7 +25,7 @@ let animationTooltip = document.getElementById('tooltipAnimation');
// set up canvas
let canvas = document.getElementById('myCanvas');
console.log(canvas.id);
canvas.height = window.innerHeight - 315;
canvas.height = window.innerHeight - 515;
canvas.width = window.innerWidth;
let c = canvas.getContext('2d');

Expand Down

0 comments on commit 429176d

Please sign in to comment.