Różnice
Różnice między wybraną wersją a wersją aktualną.
Nowa wersja | Poprzednia wersja Nowa wersjaNastępna rewizja po obu stronach | ||
en:tester_predkosci [2016/10/07 13:29] – utworzono michal | en:tester_predkosci [2017/08/27 20:47] – michal | ||
---|---|---|---|
Linia 5: | Linia 5: | ||
< | < | ||
<div style=" | <div style=" | ||
- | <!-- BEGIN SPEED TEST - DO NOT ALTER BELOW--> | + | <link rel=" |
- | < | + | <script src="http:// |
- | <div id="mini-demo"> | + | <script src=" |
- | | + | <script type=" |
- | </ | + | var w = null |
- | | + | var ggdl, ggul, ggping |
- | var flashvars | + | function runTest() |
- | | + | w = new Worker(' |
- | }; | + | var interval = setInterval(function () { w.postMessage(' |
- | var params | + | document.getElementById(' |
- | wmode: "transparent", | + | document.getElementById(' |
- | quality: "high", | + | w.onmessage = function (event) { |
- | menu: "false", | + | var data = event.data.split(' |
- | allowScriptAccess: "always" | + | var status |
- | }; | + | if (status >= 4) { |
- | var attributes | + | |
- | | + | document.getElementById(' |
- | </script> | + | document.getElementById(' |
- | <!-- END SPEED TEST - DO NOT ALTER ABOVE --> | + | w = null |
+ | } | ||
+ | updateGauge(ggdl, | ||
+ | updateGauge(ggul, | ||
+ | updateGauge(ggping, | ||
+ | document.getElementById(' | ||
+ | updateGauge(ggjitter, | ||
+ | } | ||
+ | w.postMessage(' | ||
+ | } | ||
+ | | ||
+ | if (w) w.postMessage(' | ||
+ | } | ||
+ | |||
+ | document.addEventListener(' | ||
+ | ggdl = new JustGage({ | ||
+ | id: ' | ||
+ | title: ' | ||
+ | label: ' | ||
+ | titleFontFamily: | ||
+ | valueFontFamily: | ||
+ | refreshAnimationTime: | ||
+ | value: 0, | ||
+ | min: 0, | ||
+ | max: 10, | ||
+ | decimals: 2, | ||
+ | formatNumber: | ||
+ | humanFriendly: | ||
+ | levelColors: | ||
+ | '# | ||
+ | '# | ||
+ | ] | ||
+ | | ||
+ | |||
+ | ggul = new JustGage({ | ||
+ | | ||
+ | title: ' | ||
+ | label: ' | ||
+ | titleFontFamily: | ||
+ | valueFontFamily: | ||
+ | refreshAnimationTime: | ||
+ | value: 0, | ||
+ | min: 0, | ||
+ | max: 10, | ||
+ | decimals: 2, | ||
+ | formatNumber: | ||
+ | humanFriendly: | ||
+ | levelColors: | ||
+ | '# | ||
+ | '# | ||
+ | ] | ||
+ | |||
+ | }) | ||
+ | |||
+ | |||
+ | }) | ||
+ | |||
+ | function updateGauge(gauge, | ||
+ | // Alway use next power of 2 as maximum | ||
+ | var max = Math.max(Math.pow(2, Math.ceil(Math.log2(value))), | ||
+ | // Refresh the gauge | ||
+ | gauge.refresh(value, | ||
+ | } | ||
+ | </ | ||
+ | <link href="https:// | ||
+ | |||
+ | < | ||
+ | <div class="meter" | ||
+ | <div class="meter" id=" | ||
+ | | ||
+ | <div class=" | ||
+ | </ | ||
+ | <div id=" | ||
+ | < | ||
+ | <a href=" | ||
+ | <a href=" | ||
+ | </div> | ||
</ | </ | ||
</ | </ |