Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<script type="text/javascript">
<!--
var tempImage;
function checkOnlineStatus() {
tempImage = new Image();
tempImage.onload = returnOnlineStatus;
tempImage.onerror = returnOfflineStatus;
var imgSrc = 'http://www.google.co.uk/intl/en_uk/images/logo.gif'; // this must point to the url of a valid image.
tempImage.src = imgSrc + '?randParam=' + new Date().getTime(); // add cache busting
}
function returnOnlineStatus() {
if (tempImage.width == 0 && tempImage.height == 0) {
returnOfflineStatus();
} else {
document.getElementById('onlineStatus').innerHTML = 'You are currently online.';
}
}
function returnOfflineStatus() {
document.getElementById('onlineStatus').innerHTML = 'You are currently offline.';
}
//-->
</script>
</head>
<body onload="checkOnlineStatus();">
<div id="onlineStatus">Checking online status, please wait...</div>
</body>
</html>