89 lines
3.7 KiB
PHP
89 lines
3.7 KiB
PHP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<?php
|
|
if ($_COOKIE['theme'] == "light") {
|
|
$light = true;
|
|
} else {
|
|
$light = false;
|
|
}
|
|
?>
|
|
<html>
|
|
<head>
|
|
<?php if ($light) { ?>
|
|
<link rel="stylesheet" href="//slackware.uk/html/light.css" type="text/css">
|
|
<link rel="stylesheet" href="/light.css" type="text/css">
|
|
<?php } else { ?>
|
|
<link rel="stylesheet" href="https://slackware.uk/html/dark.css" type="text/css">
|
|
<link rel="stylesheet" href="/dark.css" type="text/css">
|
|
<?php } ?>
|
|
<link rel="shortcut icon" href="/favicon.ico">
|
|
<meta charset="UTF-8">
|
|
<meta name="author" content="Darren 'Tadgy' Austin">
|
|
<meta name="description" content="Slackware UK Speedtest">
|
|
<meta name="keywords" content="Slackware UK Speedtest">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
|
|
<title>Slackware UK: Speedtest</title>
|
|
<script type="text/javascript" src="speedtest.js"></script>
|
|
<script type="text/javascript" src="init.js"></script>
|
|
</head>
|
|
<body>
|
|
<?php if ($light) { ?>
|
|
<p><a href="//slackware.uk/" title="Slackware UK"><img src="//slackware.uk/html/slackwareuk-black.png" title="Slackware UK" alt="Slackware UK Logo" border=0 align=center></a></p>
|
|
<?php } else { ?>
|
|
<p><a href="//slackware.uk/" title="Slackware UK"><img src="//slackware.uk/html/slackwareuk-white.png" title="Slackware UK" alt="Slackware UK Logo" border=0 align=center></a></p>
|
|
<?php } ?>
|
|
<p>
|
|
<b>is kindly sponsored by:</b>
|
|
<div align="center">
|
|
<a href="//mailg.ukservers.com/c/eJxVjDkOwyAQAF8DJYLlLijS-B8LbGTLdhKBE5TfhzajKUdTk0fnNN8SSADplVETAGFUVqWCCmBiDETMyPfeqX2odVGeJ18TeQXag9W2uoAaCLyNeC9GZp-drfxI63W9OtM3Bst0jCH-Jy31b8d6bo_57weWfWCjGf0AmK0uIA" title="UK Servers"><img src="//slackware.uk/html/ukservers.png" title="UK Servers" alt="UK Servers Logo" border="0" align="center" hspace="50"></a>
|
|
<?php if ($light) { ?>
|
|
<a href="//www.uk2.net/" title="UK2"><img src="//slackware.uk/html/uk2-black.png" title="UK2" alt="UK2 Logo" border="0" align="center" hspace="50"></a>
|
|
<?php } else { ?>
|
|
<a href="//www.uk2.net/" title="UK2"><img src="//slackware.uk/html/uk2-white.png" title="UK2" alt="UK2 Logo" border="0" align="center" hspace="50"></a>
|
|
<?php } ?>
|
|
</div>
|
|
<br>
|
|
<b>Please take a moment to visit the sponsors using the links above!</b>
|
|
</p><br>
|
|
<center>
|
|
<table class="header">
|
|
<tr align="center">
|
|
<td>
|
|
<b class="heading">Slackware UK Speedtest</b><br><br>
|
|
On this page you can test the speed at which you<br>
|
|
can download data from the Slackware UK server.
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</center>
|
|
<div id="test">
|
|
<div class="testGroup">
|
|
<div class="testArea">
|
|
<div class="testName">Ping</div>
|
|
<div id="pingText" class="meterText"></div>
|
|
<div class="unit">ms</div>
|
|
</div>
|
|
<div class="testArea">
|
|
<div class="testName">Jitter</div>
|
|
<div id="jitText" class="meterText"></div>
|
|
<div class="unit">ms</div>
|
|
</div>
|
|
<div class="testArea">
|
|
<div class="testName">Download</div>
|
|
<div id="dlText" class="meterText"></div>
|
|
<div class="unit">Mbit/s</div>
|
|
</div>
|
|
</div>
|
|
<div class="ip" id="ipArea">
|
|
Your IP information: <span id="ip"></span>
|
|
</div>
|
|
</div>
|
|
<div id="startStopBtn" onclick="startStop()"></div>
|
|
<div class="progressText">Test progress...</div>
|
|
<div id="progressBar">
|
|
<div id="progress"></div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
initUI();
|
|
</script>
|
|
</body>
|
|
</html>
|