Example for page-visibility

This is example for page-visibility. When you open other new tab or minimize page and back to original page. Alert dialog display how long have you left the page. Please check this by Chrome.