Renamed to LibreSpeed

This commit is contained in:
dosse91 2019-09-24 18:47:19 +02:00
parent 19c19ac088
commit 6100c17756
32 changed files with 9497 additions and 39 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

6632
.logo/LibreSpeed.ai Normal file

File diff suppressed because one or more lines are too long

2826
.logo/LibreSpeed.svg Normal file

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 247 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

BIN
.logo/icon_huge.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

BIN
.logo/logo1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
.logo/logo2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
.logo/logo3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

View file

@ -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
@ -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.
@ -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

12
doc.md
View file

@ -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
@ -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.

View file

@ -367,10 +367,10 @@ function initUI(){
} }
} }
</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>
@ -417,7 +417,7 @@ function initUI(){
<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>

View file

@ -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">
@ -184,7 +184,7 @@ function I(id){return document.getElementById(id);}
</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">
@ -216,7 +216,7 @@ function I(id){return document.getElementById(id);}
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();

View file

@ -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>
@ -32,7 +32,7 @@
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>

View file

@ -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,
@ -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>
@ -251,6 +251,6 @@
<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>

View file

@ -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">
@ -150,7 +150,7 @@ function I(id){return document.getElementById(id);}
</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">
@ -166,7 +166,7 @@ function I(id){return document.getElementById(id);}
</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>

View file

@ -266,10 +266,10 @@ function initUI(){
} }
} }
</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>
@ -310,7 +310,7 @@ function initUI(){
<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>

View file

@ -218,10 +218,10 @@ function initUI(){
} }
} }
</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">
@ -255,7 +255,7 @@ function initUI(){
<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>

View file

@ -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">
@ -153,7 +153,7 @@ function I(id){return document.getElementById(id);}
</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">
@ -184,7 +184,7 @@ function I(id){return document.getElementById(id);}
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>

View file

@ -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">
@ -172,7 +172,7 @@ function I(id){return document.getElementById(id);}
</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>
@ -204,7 +204,7 @@ function I(id){return document.getElementById(id);}
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>

View file

@ -1,7 +1,7 @@
/* /*
HTML5 Speedtest - Main HTML5 Speedtest - Main
by Federico Dossena by Federico Dossena
https://github.com/adolfintel/speedtest/ https://github.com/librespeed/speedtest/
GNU LGPLv3 License GNU LGPLv3 License
*/ */
@ -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"
); );
} }

View file

@ -1,7 +1,7 @@
/* /*
HTML5 Speedtest - Worker HTML5 Speedtest - Worker
by Federico Dossena by Federico Dossena
https://github.com/adolfintel/speedtest/ https://github.com/librespeed/speedtest/
GNU LGPLv3 License GNU LGPLv3 License
*/ */