РАСКУРx1

This commit is contained in:
fox
2021-01-12 22:07:54 +03:00
parent ab6503f7b0
commit e61828bfa7
14 changed files with 9 additions and 23 deletions

13
app/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);