Add site params content_max_width, metadata_max_width

This commit is contained in:
Will Faught
2022-12-30 23:17:37 -08:00
parent f98f3d1af2
commit 64455aeb92
7 changed files with 35 additions and 31 deletions

View File

@@ -1,11 +1,11 @@
<script>
function paigeResize() {
var e = document.querySelector("body > div.container > div.row > div.col");
var e = document.querySelector('body > div.container');
var s = getComputedStyle(e);
var px = parseFloat(s.paddingLeft) + parseFloat(s.paddingRight);
var bx = parseFloat(s.borderLeftWidth) + parseFloat(s.borderRightWidth);
var w = e.offsetWidth - px - bx;
var es = document.querySelectorAll("article > div");
var es = document.querySelectorAll('section[class="paige-content"] > div');
for (var i = 0; i < es.length; i++) {
var e = es[i];
if (e.offsetWidth !== w) {