mirror of
https://github.com/jgthms/bulma
synced 2026-03-19 03:44:31 -07:00
More grid work
This commit is contained in:
@@ -7,7 +7,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
$cells.forEach(function (el) {
|
||||
var parentWidth = el.parentElement.offsetWidth;
|
||||
var 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