Last active
March 18, 2022 17:13
-
-
Save zopieux/eb81153a1097388a41f801d5f2a7bd57 to your computer and use it in GitHub Desktop.
A sane horizontal layout for https://hexadecordle.co.uk/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const trs = [...document.querySelectorAll('#container>table>tbody>tr')] | |
const beg = trs.splice(0, 2) | |
trs.filter((x,i) => i%2==0).forEach(tr => { | |
tr.querySelectorAll(':scope > td').forEach(td => beg[0].insertAdjacentElement('beforeend', td)) | |
}) | |
document.querySelectorAll('#container>table>tbody>tr>td').forEach(e => e.style.width=100/16) | |
document.querySelector('body').style.fontFamily = 'monospace' | |
document.querySelector('#body').style.maxWidth = null | |
document.querySelector('#body').style.width = '100%' | |
document.querySelector('#game').style.width = '100%' | |
document.querySelectorAll('.button').forEach(e => e.style.height = 'calc(100vw/80)') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment