mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 10:14:29 -07:00
More grid work
This commit is contained in:
@@ -5,7 +5,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
$cells.forEach(el => {
|
||||
const parentWidth = el.parentElement.offsetWidth;
|
||||
const percentage = el.offsetWidth / parentWidth * 100;
|
||||
el.append(`${Math.round(percentage)}`);
|
||||
el.innerHTML = (`${percentage.toFixed(2)}`);
|
||||
// el.append(`${Math.round(el.offsetWidth)}`);
|
||||
});
|
||||
|
||||
// Functions
|
||||
|
||||
Reference in New Issue
Block a user