Online/offline detector
Watch interactive video on Scrimba: https://scrimba.com/p/pEgDAM/ceNm8CW
Tags: codepen