-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
27 lines (26 loc) · 808 Bytes
/
Copy pathexample.html
File metadata and controls
27 lines (26 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<div class="row" id="equalHeightRow">
<div class="col-4 equalHeight">
content
<footer class="articleFooter"></footer>
</div>
<div class="col-4 equalHeight">
content
<footer class="articleFooter"></footer>
</div>
<div class="col-4 equalHeight">
content
<footer class="articleFooter"></footer>
</div>
</div>
<script src="equalHeight.js"></script>
<script>
//initialize
const initEqualHeight = () => {
if(document.getElementById("equalHeightRow")){
const equalHeightClassInit = new equalHeightClass("equalHeightRow");
equalHeightClassInit.setColsSameHeightFooter();
}
}
window.addEventListener('load', initEqualHeight);
window.addEventListener('resize', initEqualHeight);
</script>