Files
haikuports/www-client/mozilla_firefox/copy-to-mozilla-src-dir/browser/base/content/dynamic-userguide-v2.html
Oliver Tappe 2191f6611f Rename all port folders containing '-' to use '_' instead.
* haikuporter relies on the recipe file sharing the name with the port folder
2013-04-21 18:58:18 +02:00

57 lines
1.4 KiB
HTML

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="robots" content="all" />
<title>Welcome to Haiku!</title>
<link rel="stylesheet" type="text/css" href="../Haiku-doc.css" />
<script type="text/javascript">
var xmlhttp;
var offLineWelcomePage = 'file:///boot/system/documentation/userguide/en/contents.html';
var onLineWelcomePage = 'http://svn.berlios.de/svnroot/repos/haiku/haiku/trunk/docs/userguide/en/contents.html';
function redirect()
{
xmlhttp=new XMLHttpRequest();
xmlhttp.onreadystatechange=state_Change;
try
{
xmlhttp.open("GET",offLineWelcomePage);
xmlhttp.send(null);
}
catch(err)
{
window.location = onLineWelcomePage;
}
}
function state_Change()
{
if (xmlhttp.readyState==4)
{// 4 = "loaded"
if (xmlhttp.status==200 ||xmlhttp.status==0)
{// 200 = "OK"; loading from file:// so no http status set! hence status == 0.
if(xmlhttp.responseText.length != 0)
window.location = offLineWelcomePage;
else
window.location = onLineWelcomePage;
}
else
{
alert("Problem retrieving data:" + xmlhttp.statusText);
}
}
}
</script>
</head>
<body onload="redirect()">
</body>
</html>