Don't think the HTC One (M8) is water proof but check this out.

Printable View