I haven't tested it, I opened it to take a look at the source code and I closed it. Writing code using indentation is optional it is true, but do not expect people to read that code.
More over I believe that you should give credit to the source you copied it from as with a quick Google search it looks like that this code was posted to many forums and with the same lack of indentation.