Skip to content

Commit

Permalink
Renamed to LibreSpeed
Browse files Browse the repository at this point in the history
  • Loading branch information
adolfintel committed Sep 25, 2019
1 parent 19c19ac commit bd7ec37
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 44 deletions.
6 changes: 3 additions & 3 deletions README.md
@@ -1,4 +1,4 @@
![HTML5 Speedtest Logo](https://github.com/adolfintel/speedtest/blob/master/.logo/Readme-Logo.png?raw=true) ![HTML5 Speedtest Logo](https://github.com/librespeed/speedtest/blob/master/.logo/logo3.png?raw=true)


# HTML5 Speedtest # HTML5 Speedtest


Expand All @@ -7,7 +7,7 @@ No Flash, No Java, No Websocket, No Bullshit.
This is a very lightweight Speedtest implemented in Javascript, using XMLHttpRequest and Web Workers. This is a very lightweight Speedtest implemented in Javascript, using XMLHttpRequest and Web Workers.


## Try it ## Try it
[Take a Speedtest](http://speedtest.fdossena.com) [Take a Speedtest](https://speedtest.fdossena.com)


## Compatibility ## Compatibility
All modern browsers are supported: IE11, latest Edge, latest Chrome, latest Firefox, latest Safari. All modern browsers are supported: IE11, latest Edge, latest Chrome, latest Firefox, latest Safari.
Expand Down Expand Up @@ -36,7 +36,7 @@ Works with mobile versions too.
* [Quick start installation guide for Ubuntu Server 19.04](https://fdossena.com/?p=speedtest/quickstart_v5_ubuntu.frag) * [Quick start installation guide for Ubuntu Server 19.04](https://fdossena.com/?p=speedtest/quickstart_v5_ubuntu.frag)


## Android app ## Android app
A template to build an Android client for your HTML5 Speedtest installation is available [here](https://github.com/adolfintel/speedtest-android). A template to build an Android client for your HTML5 Speedtest installation is available [here](https://github.com/librespeed/speedtest-android).


## Docker ## Docker
Please see the `docker` branch Please see the `docker` branch
Expand Down
12 changes: 6 additions & 6 deletions doc.md
@@ -1,11 +1,11 @@
# HTML5 Speedtest # LibreSpeed


> by Federico Dossena > by Federico Dossena
> Version 5.0 > Version 5.1
> [https://github.com/adolfintel/speedtest/](https://github.com/adolfintel/speedtest/) > [https://github.com/librespeed/speedtest/](https://github.com/librespeed/speedtest/)
## Introduction ## Introduction
HTML5 Speedtest is a Free and Open Source speedtest that you can host on your server(s), and users can run in their browser. LibreSpeed is a Free and Open Source speedtest that you can host on your server(s), and users can run in their browser.


__Features:__ __Features:__
* Download test * Download test
Expand Down Expand Up @@ -108,11 +108,11 @@ A login is required to access the interface. __Important__: change the default p


#### The end #### The end
Now that the test is installed, rename one of the examples to `index.html` and delete the other examples. Now that the test is installed, rename one of the examples to `index.html` and delete the other examples.
The best starting point for most people is `example-singleServer-pretty.html`. If you want to use telemetry and results sharing, use `example-singleServer-full.html` instead. The best starting point for most people is `example-singleServer-gauges.html`. If you want to use telemetry and results sharing, use `example-singleServer-full.html` instead.


If you're not using telemetry and results sharing, you can delete the `results` folder too. If you're not using telemetry and results sharing, you can delete the `results` folder too.


Details about the examples and how to make custom UIs will be discussed later. Details about the examples and how to make custom UIs will be discussed later. If you don't want to make a custom UI, feel free to modify the example and replace "LibreSpeed Example" with the name of your test.


#### Privacy #### Privacy
Telemetry contains personal information (according to GDPR defintion), therefore it is important to treat this data respectfully of national and international laws, especially if you plan to offer the service in the European Union. Telemetry contains personal information (according to GDPR defintion), therefore it is important to treat this data respectfully of national and international laws, especially if you plan to offer the service in the European Union.
Expand Down
6 changes: 3 additions & 3 deletions example-multipleServers-full.html
Expand Up @@ -367,10 +367,10 @@
} }
} }
</style> </style>
<title>HTML5 Speedtest</title> <title>LibreSpeed Example</title>
</head> </head>
<body onload="initServers()"> <body onload="initServers()">
<h1>HTML5 Speedtest</h1> <h1>LibreSpeed Example</h1>
<div id="loading" class="visible"> <div id="loading" class="visible">
<p id="message"><span class="loadCircle"></span>Selecting a server...</p> <p id="message"><span class="loadCircle"></span>Selecting a server...</p>
</div> </div>
Expand Down Expand Up @@ -417,7 +417,7 @@ <h3>Share results</h3>
<img src="" id="resultsImg" /> <img src="" id="resultsImg" />
</div> </div>
</div> </div>
<a href="https://github.com/adolfintel/speedtest">Source code</a> <a href="https://github.com/librespeed/speedtest">Source code</a>
</div> </div>
<div id="privacyPolicy" style="display:none"> <div id="privacyPolicy" style="display:none">
<h2>Privacy Policy</h2> <h2>Privacy Policy</h2>
Expand Down
6 changes: 3 additions & 3 deletions example-multipleServers-pretty.html
Expand Up @@ -4,7 +4,7 @@
<link rel="shortcut icon" href="favicon.ico"> <link rel="shortcut icon" href="favicon.ico">
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
<title>HTML5 Speedtest</title> <title>LibreSpeed Example</title>
<script type="text/javascript" src="speedtest.js"></script> <script type="text/javascript" src="speedtest.js"></script>
<script type="text/javascript"> <script type="text/javascript">


Expand Down Expand Up @@ -184,7 +184,7 @@
</style> </style>
</head> </head>
<body> <body>
<h1>HTML5 Speedtest</h1> <h1>LibreSpeed Example</h1>
<div id="startStopBtn" onclick="startStop()"></div> <div id="startStopBtn" onclick="startStop()"></div>
<div id="serverId">Selecting server...</div> <div id="serverId">Selecting server...</div>
<div id="test"> <div id="test">
Expand Down Expand Up @@ -216,7 +216,7 @@ <h1>HTML5 Speedtest</h1>
IP Address: <span id="ip"></span> IP Address: <span id="ip"></span>
</div> </div>
</div> </div>
<a href="https://github.com/adolfintel/speedtest">Source code</a> <a href="https://github.com/librespeed/speedtest">Source code</a>
<script type="text/javascript"> <script type="text/javascript">
initUI(); initUI();
selectServer(); selectServer();
Expand Down
6 changes: 3 additions & 3 deletions example-singleServer-basic.html
Expand Up @@ -2,12 +2,12 @@
<html> <html>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<head> <head>
<title>HTML5 Speedtest</title> <title>LibreSpeed Example</title>
<link rel="shortcut icon" href="favicon.ico"> <link rel="shortcut icon" href="favicon.ico">
</head> </head>
<script type="text/javascript" src="speedtest.js"></script> <script type="text/javascript" src="speedtest.js"></script>
<body> <body>
<h1>HTML5 Speedtest</h1> <h1>LibreSpeed Example</h1>


<h4>IP Address</h4> <h4>IP Address</h4>
<p id="ip"></p> <p id="ip"></p>
Expand All @@ -32,7 +32,7 @@ <h4>Latency</h4>
s.start(); // start the speedtest with default settings s.start(); // start the speedtest with default settings
</script> </script>


<a href="https://github.com/adolfintel/speedtest">Source code</a> <a href="https://github.com/librespeed/speedtest">Source code</a>


</body> </body>
</html> </html>
6 changes: 3 additions & 3 deletions example-singleServer-chart.html
Expand Up @@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<title>HTML5 Speedtest</title> <title>LibreSpeed Example</title>
<link rel="shortcut icon" href="favicon.ico"> <link rel="shortcut icon" href="favicon.ico">
<style type="text/css"> <style type="text/css">
html, html,
Expand Down Expand Up @@ -238,7 +238,7 @@
</head> </head>


<body> <body>
<h1>HTML Speedtest - Chart.js example</h1> <h1>LibreSpeed - Chart.js example</h1>
<div id="testArea" style="display:none"> <div id="testArea" style="display:none">
<p id="ip">Please wait...</p> <p id="ip">Please wait...</p>


Expand All @@ -251,6 +251,6 @@ <h2>Latency</h2>
<a href="javascript:abortTest()" id="abortBtn">Abort</a> <a href="javascript:abortTest()" id="abortBtn">Abort</a>
</div> </div>
<a href="javascript:runTest()" id="startBtn">Run speedtest</a> <a href="javascript:runTest()" id="startBtn">Run speedtest</a>
<br/><br/> Charts by <a href="http://www.chartjs.org/">Chart.js</a><br/><br/><a href="https://github.com/adolfintel/speedtest">Source code</a> <br/><br/> Charts by <a href="http://www.chartjs.org/">Chart.js</a><br/><br/><a href="https://github.com/librespeed/speedtest">Source code</a>
</body> </body>
</html> </html>
6 changes: 3 additions & 3 deletions example-singleServer-customSettings.html
Expand Up @@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
<title>HTML5 Speedtest</title> <title>LibreSpeed Example</title>
<link rel="shortcut icon" href="favicon.ico"> <link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="speedtest.js"></script> <script type="text/javascript" src="speedtest.js"></script>
<script type="text/javascript"> <script type="text/javascript">
Expand Down Expand Up @@ -150,7 +150,7 @@
</style> </style>
</head> </head>
<body> <body>
<h1>HTML5 Speedtest</h1> <h1>LibreSpeed Example</h1>
<div id="startStopBtn" onclick="startStop()"></div> <div id="startStopBtn" onclick="startStop()"></div>
<div id="test"> <div id="test">
<div class="testGroup"> <div class="testGroup">
Expand All @@ -166,7 +166,7 @@ <h1>HTML5 Speedtest</h1>
</div> </div>
</div> </div>
</div> </div>
<a href="https://github.com/adolfintel/speedtest">Source code</a> <a href="https://github.com/librespeed/speedtest">Source code</a>
<script type="text/javascript"> <script type="text/javascript">
initUI(); initUI();
</script> </script>
Expand Down
6 changes: 3 additions & 3 deletions example-singleServer-full.html
Expand Up @@ -266,10 +266,10 @@
} }
} }
</style> </style>
<title>HTML5 Speedtest</title> <title>LibreSpeed Example</title>
</head> </head>
<body> <body>
<h1>HTML5 Speedtest</h1> <h1>LibreSpeed Example</h1>
<div id="testWrapper"> <div id="testWrapper">
<div id="startStopBtn" onclick="startStop()"></div><br/> <div id="startStopBtn" onclick="startStop()"></div><br/>
<a class="privacy" href="#" onclick="I('privacyPolicy').style.display=''">Privacy</a> <a class="privacy" href="#" onclick="I('privacyPolicy').style.display=''">Privacy</a>
Expand Down Expand Up @@ -310,7 +310,7 @@ <h3>Share results</h3>
<img src="" id="resultsImg" /> <img src="" id="resultsImg" />
</div> </div>
</div> </div>
<a href="https://github.com/adolfintel/speedtest">Source code</a> <a href="https://github.com/librespeed/speedtest">Source code</a>
</div> </div>
<div id="privacyPolicy" style="display:none"> <div id="privacyPolicy" style="display:none">
<h2>Privacy Policy</h2> <h2>Privacy Policy</h2>
Expand Down
6 changes: 3 additions & 3 deletions example-singleServer-gauges.html
Expand Up @@ -218,10 +218,10 @@
} }
} }
</style> </style>
<title>HTML5 Speedtest</title> <title>LibreSpeed Example</title>
</head> </head>
<body> <body>
<h1>HTML5 Speedtest</h1> <h1>LibreSpeed Example</h1>
<div id="testWrapper"> <div id="testWrapper">
<div id="startStopBtn" onclick="startStop()"></div> <div id="startStopBtn" onclick="startStop()"></div>
<div id="test"> <div id="test">
Expand Down Expand Up @@ -255,7 +255,7 @@ <h1>HTML5 Speedtest</h1>
<span id="ip"></span> <span id="ip"></span>
</div> </div>
</div> </div>
<a href="https://github.com/adolfintel/speedtest">Source code</a> <a href="https://github.com/librespeed/speedtest">Source code</a>
</div> </div>
<script type="text/javascript">setTimeout(function(){initUI()},100);</script> <script type="text/javascript">setTimeout(function(){initUI()},100);</script>
</body> </body>
Expand Down
6 changes: 3 additions & 3 deletions example-singleServer-pretty.html
Expand Up @@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
<title>HTML5 Speedtest</title> <title>LibreSpeed Example</title>
<link rel="shortcut icon" href="favicon.ico"> <link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="speedtest.js"></script> <script type="text/javascript" src="speedtest.js"></script>
<script type="text/javascript"> <script type="text/javascript">
Expand Down Expand Up @@ -153,7 +153,7 @@
</style> </style>
</head> </head>
<body> <body>
<h1>HTML5 Speedtest</h1> <h1>LibreSpeed Example</h1>
<div id="startStopBtn" onclick="startStop()"></div> <div id="startStopBtn" onclick="startStop()"></div>
<div id="test"> <div id="test">
<div class="testGroup"> <div class="testGroup">
Expand Down Expand Up @@ -184,7 +184,7 @@ <h1>HTML5 Speedtest</h1>
IP Address: <span id="ip"></span> IP Address: <span id="ip"></span>
</div> </div>
</div> </div>
<a href="https://github.com/adolfintel/speedtest">Source code</a> <a href="https://github.com/librespeed/speedtest">Source code</a>
<script type="text/javascript"> <script type="text/javascript">
initUI(); initUI();
</script> </script>
Expand Down
6 changes: 3 additions & 3 deletions example-singleServer-progressBar.html
Expand Up @@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
<title>HTML5 Speedtest</title> <title>LibreSpeed Example</title>
<link rel="shortcut icon" href="favicon.ico"> <link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="speedtest.js"></script> <script type="text/javascript" src="speedtest.js"></script>
<script type="text/javascript"> <script type="text/javascript">
Expand Down Expand Up @@ -172,7 +172,7 @@
</style> </style>
</head> </head>
<body> <body>
<h1>HTML5 Speedtest</h1> <h1>LibreSpeed Example</h1>
<div id="startStopBtn" onclick="startStop()"></div> <div id="startStopBtn" onclick="startStop()"></div>
<div id="test"> <div id="test">
<div id="progressBar"><div id="progress"></div></div> <div id="progressBar"><div id="progress"></div></div>
Expand Down Expand Up @@ -204,7 +204,7 @@ <h1>HTML5 Speedtest</h1>
IP Address: <span id="ip"></span> IP Address: <span id="ip"></span>
</div> </div>
</div> </div>
<a href="https://github.com/adolfintel/speedtest">Source code</a> <a href="https://github.com/librespeed/speedtest">Source code</a>
<script type="text/javascript"> <script type="text/javascript">
initUI(); initUI();
</script> </script>
Expand Down
2 changes: 1 addition & 1 deletion results/index.php
@@ -1,5 +1,5 @@
<?php <?php
$WATERMARK_TEXT="HTML5 Speedtest"; $WATERMARK_TEXT="LibreSpeed";


error_reporting(0); error_reporting(0);
putenv('GDFONTPATH=' . realpath('.')); putenv('GDFONTPATH=' . realpath('.'));
Expand Down
4 changes: 2 additions & 2 deletions results/stats.php
Expand Up @@ -9,7 +9,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>HTML5 Speedtest - Stats</title> <title>LibreSpeed - Stats</title>
<style type="text/css"> <style type="text/css">
html,body{ html,body{
margin:0; margin:0;
Expand Down Expand Up @@ -54,7 +54,7 @@
</style> </style>
</head> </head>
<body> <body>
<h1>HTML5 Speedtest - Stats</h1> <h1>LibreSpeed - Stats</h1>
<?php <?php
include_once("telemetry_settings.php"); include_once("telemetry_settings.php");
require "idObfuscation.php"; require "idObfuscation.php";
Expand Down
6 changes: 3 additions & 3 deletions speedtest.js
@@ -1,7 +1,7 @@
/* /*
HTML5 Speedtest - Main LibreSpeed - Main
by Federico Dossena by Federico Dossena
https://github.com/adolfintel/speedtest/ https://github.com/librespeed/speedtest/
GNU LGPLv3 License GNU LGPLv3 License
*/ */


Expand Down Expand Up @@ -49,7 +49,7 @@ function Speedtest() {
this._settings = {}; //settings for the speedtest worker this._settings = {}; //settings for the speedtest worker
this._state = 0; //0=adding settings, 1=adding servers, 2=server selection done, 3=test running, 4=done this._state = 0; //0=adding settings, 1=adding servers, 2=server selection done, 3=test running, 4=done
console.log( console.log(
"HTML5 Speedtest by Federico Dossena v5.0 - https://github.com/adolfintel/speedtest" "LibreSpeed by Federico Dossena v5.1 - https://github.com/librespeed/speedtest"
); );
} }


Expand Down
4 changes: 2 additions & 2 deletions speedtest_worker.js
@@ -1,7 +1,7 @@
/* /*
HTML5 Speedtest - Worker LibreSpeed - Worker
by Federico Dossena by Federico Dossena
https://github.com/adolfintel/speedtest/ https://github.com/librespeed/speedtest/
GNU LGPLv3 License GNU LGPLv3 License
*/ */


Expand Down

0 comments on commit bd7ec37

Please sign in to comment.