Materializecss Parallax mousewheel jitters fix

Category Archives: Javascript

Javascript

Materializecss Parallax mousewheel jitters fix

I noticed the materializecss parallax plugin was a bit jittery in chrome when using the mousewheel to scroll. I fixed the problem by adding a window mousewheel callback that aborts the default mousewheel scroll then sets the scroll amount consistently. … Continue reading

Posted in Javascript | Leave a comment

Print only lightbox or modal window content

This was a real kick in the Jimmy. On a recent project I had a requirement to print contents of a modal window. Solution: When the user clicks a print button add an iframe to the end of the body … Continue reading

Posted in Javascript, Uncategorized | Leave a comment

JavaScript Reg-ex for sub-domain name

This one took me a bit so thought it might be worth writing it down. If you need to validate a field for a valid subdomain name, ie the “subdomain.inthedomain.com” you have a couple of requirments: 1) Field value starts … Continue reading

Posted in Javascript | Comments Off on JavaScript Reg-ex for sub-domain name