Added projects section

This commit is contained in:
2020-11-07 15:10:52 +03:00
parent 65255a2fd3
commit 30a21270e3
9 changed files with 148 additions and 15 deletions

13
static/js/projects.js Normal file
View File

@@ -0,0 +1,13 @@
function alignHeadersByHeight(table) {
var maxHeight = 0;
table.querySelectorAll('h1').forEach(
element => maxHeight = Math.max(maxHeight, element.clientHeight)
)
table.querySelectorAll('h1').forEach(
element => element.style.height = maxHeight + 'px'
)
console.log(maxHeight);
}
var table = document.getElementById("pbic");
alignHeadersByHeight(table);