From 32af3c59e778a90dfa5f1dd70c476bcc9078ced9 Mon Sep 17 00:00:00 2001 From: dosse91 Date: Sun, 30 Jun 2019 07:14:49 +0200 Subject: [PATCH 1/8] Updated .gitignore --- .directory | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .directory diff --git a/.directory b/.directory new file mode 100644 index 0000000..732e17e --- /dev/null +++ b/.directory @@ -0,0 +1,3 @@ +[Dolphin] +Timestamp=2019,6,30,7,14,37 +Version=4 From 164e86e3981e3f37a260380a15d99caa5928b1c9 Mon Sep 17 00:00:00 2001 From: dosse91 Date: Sun, 30 Jun 2019 07:55:09 +0200 Subject: [PATCH 2/8] Fixed some typos --- .directory | 3 --- doc.md | 8 +++----- 2 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 .directory diff --git a/.directory b/.directory deleted file mode 100644 index 732e17e..0000000 --- a/.directory +++ /dev/null @@ -1,3 +0,0 @@ -[Dolphin] -Timestamp=2019,6,30,7,14,37 -Version=4 diff --git a/doc.md b/doc.md index d3448a9..26741e2 100644 --- a/doc.md +++ b/doc.md @@ -4,8 +4,6 @@ > Version 5.0 > [https://github.com/adolfintel/speedtest/](https://github.com/adolfintel/speedtest/) -The documentation is being rewritten. It will be done in a few days. - ## 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. @@ -112,7 +110,7 @@ A login is required to access the interface. __Important__: change the default p 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. -If you don'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. @@ -463,7 +461,7 @@ When the test is finished, you can run it again if you want, or you can just des ## Implementation details The purpose of this section is to help developers who want to make changes to the inner workings of the speedtest. -It will be divided into 4 sections: `speedtest.js`, `speedtest_worker.js`, the `backend` files and the `resuls` files. +It will be divided into 4 sections: `speedtest.js`, `speedtest_worker.js`, the `backend` files and the `results` files. ### `speedtest.js` This is the main interface between your webpage and the speedtest. @@ -591,7 +589,7 @@ This test has a couple of complications: See the code for more implementation details. #### Ping + Jitter test -The Ping/Jitter test __is NOT an ICMP ping__. This is a common misconsception. You cannot use ICMP over HTTP, and certainly not in a browser. +The Ping/Jitter test __is NOT an ICMP ping__. This is a common misconception. You cannot use ICMP over HTTP, and certainly not in a browser. This test works by creating a persistent HTTP connection to the server, and then repeatedly downloading an empty file, and measuring how long it takes between the request and the response. From d18f21107a43649eaed395d37a9a879a0c5f09e5 Mon Sep 17 00:00:00 2001 From: Federico Dossena Date: Sun, 30 Jun 2019 08:00:04 +0200 Subject: [PATCH 3/8] Update .gitignore --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index aaa13dd..c53159e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -telemetry/idObfuscation_salt.php -getIP_serverLocation.php +results/idObfuscation_salt.php +backend/getIP_serverLocation.php From 6cecacb61b9b689f4c2d05ef6d9509a33a09d770 Mon Sep 17 00:00:00 2001 From: dosse91 Date: Wed, 21 Aug 2019 12:34:27 +0200 Subject: [PATCH 4/8] Added privacy policy to examples with telemetry --- doc.md | 5 +++ example-multipleServers-full.html | 56 +++++++++++++++++++++++++++++ example-singleServer-full.html | 58 ++++++++++++++++++++++++++++++- 3 files changed, 118 insertions(+), 1 deletion(-) diff --git a/doc.md b/doc.md index 26741e2..4d7e98a 100644 --- a/doc.md +++ b/doc.md @@ -114,6 +114,11 @@ If you're not using telemetry and results sharing, you can delete the `results` Details about the examples and how to make custom UIs will be discussed later. +#### 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. + +`example-singleServer-full.html` and `example-multipleServers-full.html` both contain a privacy policy for the service: you MUST read it, change it if necessary, and add your email address for data deletion requests. __Failure to comply with GDPR regulations can get you in serious trouble.__ + ### Multiple servers, PHP The speedtest can automatically choose between multiple test points and use the one with the lowest ping in a list. diff --git a/example-multipleServers-full.html b/example-multipleServers-full.html index c72a932..49b1aa3 100644 --- a/example-multipleServers-full.html +++ b/example-multipleServers-full.html @@ -303,6 +303,27 @@ function initUI(){ animation: fadeOut 0.4s; display:none; } + #privacyPolicy{ + position:fixed; + top:2em; + bottom:2em; + left:2em; + right:2em; + overflow-y:auto; + width:auto; + height:auto; + box-shadow:0 0 3em 1em #000000; + z-index:999999; + text-align:left; + background-color:#FFFFFF; + padding:1em; + } + a.privacy{ + text-align:center; + font-size:0.8em; + color:#808080; + display:block; + } @keyframes fadeIn{ 0%{ opacity:0; @@ -345,6 +366,7 @@ function initUI(){ Source code + diff --git a/example-singleServer-full.html b/example-singleServer-full.html index e3c4467..d33ff24 100644 --- a/example-singleServer-full.html +++ b/example-singleServer-full.html @@ -220,6 +220,27 @@ function initUI(){ height:auto; margin: 0.25em 0; } + #privacyPolicy{ + position:fixed; + top:2em; + bottom:2em; + left:2em; + right:2em; + overflow-y:auto; + width:auto; + height:auto; + box-shadow:0 0 3em 1em #000000; + z-index:999999; + text-align:left; + background-color:#FFFFFF; + padding:1em; + } + a.privacy{ + text-align:center; + font-size:0.8em; + color:#808080; + display:block; + } @media all and (max-width:65em){ body{ font-size:1.5vw; @@ -240,7 +261,8 @@ function initUI(){

HTML5 Speedtest

-
+

+ Privacy
@@ -282,6 +304,40 @@ function initUI(){
Source code
+ From 9b47e2d2f5f16cbce12267222ace1f1c41686e4d Mon Sep 17 00:00:00 2001 From: Sean Zhang Date: Thu, 22 Aug 2019 12:41:14 +0800 Subject: [PATCH 5/8] Add favicon.ico (#219) --- example-multipleServers-full.html | 1 + example-multipleServers-pretty.html | 1 + example-singleServer-basic.html | 1 + example-singleServer-chart.html | 1 + example-singleServer-customSettings.html | 1 + example-singleServer-full.html | 1 + example-singleServer-gauges.html | 1 + example-singleServer-pretty.html | 1 + example-singleServer-progressBar.html | 1 + favicon.ico | Bin 0 -> 16958 bytes 10 files changed, 9 insertions(+) create mode 100644 favicon.ico diff --git a/example-multipleServers-full.html b/example-multipleServers-full.html index 49b1aa3..9be9d0e 100644 --- a/example-multipleServers-full.html +++ b/example-multipleServers-full.html @@ -1,6 +1,7 @@ + diff --git a/example-multipleServers-pretty.html b/example-multipleServers-pretty.html index 43abeda..1fa4e71 100644 --- a/example-multipleServers-pretty.html +++ b/example-multipleServers-pretty.html @@ -1,6 +1,7 @@ + HTML5 Speedtest diff --git a/example-singleServer-basic.html b/example-singleServer-basic.html index 1600214..6971e2a 100644 --- a/example-singleServer-basic.html +++ b/example-singleServer-basic.html @@ -3,6 +3,7 @@ HTML5 Speedtest + diff --git a/example-singleServer-chart.html b/example-singleServer-chart.html index b26beec..cb16ee3 100644 --- a/example-singleServer-chart.html +++ b/example-singleServer-chart.html @@ -3,6 +3,7 @@ HTML5 Speedtest +