diff --git a/res/static/style/layout.css b/res/static/style/layout.css index e1d0383..a889398 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -525,7 +525,6 @@ select:focus { color: var(--input_text); text-decoration: none; background: var(--input_hover_background); - } button:active, @@ -564,7 +563,7 @@ select.disabled { color: var(--input_disabled_text); box-shadow: none; transition: none; - padding: 4px 5px 4px 5px; + padding: 5px 5px 5px 5px; cursor: not-allowed; background: var(--input_background); } diff --git a/res/template/fragments/page_wrap.html b/res/template/fragments/page_wrap.html index 56543c0..6623335 100644 --- a/res/template/fragments/page_wrap.html +++ b/res/template/fragments/page_wrap.html @@ -27,6 +27,7 @@ About Apps Theme + Speedtest API Filesystem Guide Acknowledgements diff --git a/res/template/speedtest.html b/res/template/speedtest.html new file mode 100644 index 0000000..0225c9e --- /dev/null +++ b/res/template/speedtest.html @@ -0,0 +1,21 @@ +{{define "speedtest"}} + + + + {{template "meta_tags" "Speedtest"}} + + + + + + + {{template "menu" .}} +
+ {{template "analytics"}} + + +{{end}} diff --git a/svelte/rollup.config.js b/svelte/rollup.config.js index fbd9043..af15143 100644 --- a/svelte/rollup.config.js +++ b/svelte/rollup.config.js @@ -16,6 +16,7 @@ export default [ "admin_panel", "home_page", "text_upload", + "speedtest", ].map((name, index) => ({ input: `src/${name}.js`, output: { diff --git a/svelte/src/filesystem/viewers/Video.svelte b/svelte/src/filesystem/viewers/Video.svelte index 0e6bef7..989f0b0 100644 --- a/svelte/src/filesystem/viewers/Video.svelte +++ b/svelte/src/filesystem/viewers/Video.svelte @@ -96,7 +96,7 @@ const fullscreen = () => { class="video" on:pause={() => playing = false } on:play={() => playing = true } - on:ended={() => dispatch("next", {})} + on:ended={() => dispatch("open_sibling", 1)} > diff --git a/svelte/src/speedtest.js b/svelte/src/speedtest.js new file mode 100644 index 0000000..5d0ac25 --- /dev/null +++ b/svelte/src/speedtest.js @@ -0,0 +1,8 @@ +import App from './speedtest/Index.svelte'; + +const app = new App({ + target: document.getElementById("page_body"), + props: {} +}); + +export default app; diff --git a/svelte/src/speedtest/Index.svelte b/svelte/src/speedtest/Index.svelte new file mode 100644 index 0000000..31a190e --- /dev/null +++ b/svelte/src/speedtest/Index.svelte @@ -0,0 +1,98 @@ + + +
+

Pixeldrain Speedtest

+
+ +
+ + +
+

How does this work?

+

+ The speedtest measures the maximum download speed from pixeldrain's + servers to your computer. This speed is not affected by the daily + download limit for free users. +

+ +

What do the numbers mean?

+

+ The first number is the download speed in bytes per second. This is + useful for estimating how long a file download will take. +

+
    +
  • 1 kB = 1000 bytes
  • +
  • 1 MB = 1000 kB
  • +
  • 1 GB = 1000 MB
  • +
  • etc..
  • +
+

+ The second number shows the download speed in bits. This is usually + the speed your ISP advertises to you. This number is equal to the + first number but multiplied by 8, because there are eight bits in a + byte. +

+

+ The third number shows the latency to the pixeldrain servers. This + is dependent on how far you are removed from the closest pixeldrain + server. The lower the latency the faster your downloads will be, + generally. The number shows request latency and not ping latency. + HTTP requests have some overhead which means this latency number + shows multiple round trips instead of one. +

+

+ The last number shows how much data the speedtest was able to + transfer in duration of the test. The standard test is five seconds + and the long test is 10 seconds. The long test is better + representative of the real download speed because the speed needs to + ramp up at the beginning which also takes time. +

+ +

Why is the speed different from other speed tests?

+

+ Most speed tests have servers in datacenters which are located very + close to your home. They are also connected directly to your ISP + which means that the ISP does not have to pay for the bandwidth + because it stays within their network. +

+

+ Pixeldrain does not have this luxury. Because our budget is very + small we are only able to afford the cheapest bandwidth available. + This means that the data has to travel further and is more likely to + be throttled. +

+

How do I read these results?

+

+ If the speed is a lot slower than your usual downloads it can mean + two things. +

+
    +
  1. + Your ISP is limiting the connection speed to pixeldrain's + servers +
  2. +
  3. + The pixeldrain servers are overloaded +
  4. +
+

+ Number two is usually not the case, when that happens I will + tweet about it. + Unfortunately there is nothing I can do about the first scenario. I + might be able to get more servers and better bandwidth if the site + gets many more subscribers, but for now that's out of reach. +

+
+
+ +