Skip to content

Instantly share code, notes, and snippets.

@zopieux
Last active March 18, 2022 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zopieux/eb81153a1097388a41f801d5f2a7bd57 to your computer and use it in GitHub Desktop.
Save zopieux/eb81153a1097388a41f801d5f2a7bd57 to your computer and use it in GitHub Desktop.
A sane horizontal layout for https://hexadecordle.co.uk/
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