Message from JavaScript discussions

May 2017

— 👌 you're welcome

— 

You know whats really the meaning of suffering? porting 10k lines of html from an old wordpress site to a new scratch-made one

— And of course it is all so badly formatted that not even regex can help fix it

— Shoot me.

— 200 more pages of this and I will just join the army

— Oh god

— Prettify it?

— >inline styles
REEEE

— How to make scroll page when click image?

— 

document
.querySelector('#myimage')
.addEventListener('click', () =>
window.scrollTo(x, y));

— X is horizontal, y is vertical

— There's also window.scrollBy, window.scrollByLines, and window.scrollByPages