matchMedia to enable/disable script on viewport resize

Thanks @PaulOB, that seems to have done the trick! :smiley:

I’m getting a ESLint error “Move function declaration to function body root.” which looks like it is in regards to function crisscross() { but other than that it all seems to work as expected.

The script within that is going to change a lot. Needs to be completely rewritten I think so no doubt there’ll be another post about that soon!

1 Like