javascript

HTML5 Video tag, and webm

HTML5 Video tag, and webm

In ancient times, when youtube was born, we didn’t have VIDEO tag. We used to have Flash. To play video on the website, we had to convert it to weird Flash video format, leave mp4 for safety and hope that everything will work fine. Later on, when HTML5 became a industry standard, our live become some much easier. In the theory VIDEO tag solves all out issues. When browser can handle webm (Chrome family) we play webm.
Australian postcode to state conversion

Australian postcode to state conversion

list of Australian postcodes by the state

Recently I was working on a project, when I had super boring address form. I figure out that we need to help poor users fill boring forms, so made a little code snippet / function which gets postcode and returns state. Postcode ranges were taken from wikipedia , so blame them if something isn’t working as expected.