How can I tell if a DOM element is visible in the current viewport? How can I tell if a DOM element is visible in the current viewport? javascript javascript