Files
ProcGen/scripts/roominternal.js
T
2024-04-28 09:40:13 -07:00

8 lines
329 B
JavaScript

document.addEventListener('DOMContentLoaded', (e) => {
const htmlToAdd = localStorage.getItem('roomoutline');
document.body.innerHTML = htmlToAdd;
const bc = document.querySelector('.scaledup');
const dif = window.innerWidth - bc.children[0].getBoundingClientRect().right;
bc.style.left = `${dif / 2}px`;
});