A lightweight Tumult Hype extension that keeps track of the browser’s connectivity state and the exact amount of time a visitor has been offline. The script exposes a handful of hypeDocument.customData
variables—isOnline
, isOffline
, offlineStartTime
, and granular offlineDuration*
values—that update in real-time. Any Hype elements bound to those variables will automatically redraw the moment their values change; if you prefer manual control, call hypeDocument.trackOfflineTime()
whenever you want a refresh.
2 Likes
2 Likes