Those little rotary cord switches normally used for table lamps and small fans (see first pic) are not waterproof!!

If you touch a live one with a wet hand and water drips into it you WILL get a shock! I don't think you're supposed to use them in bathrooms or any such damp location.