mirror of
https://github.com/ION606/ProcGen.git
synced 2026-05-14 22:06:56 +00:00
8 lines
329 B
JavaScript
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`;
|
|
}); |