diff --git a/.impeccable/live/config.json b/.impeccable/live/config.json new file mode 100644 index 0000000..4fa3a96 --- /dev/null +++ b/.impeccable/live/config.json @@ -0,0 +1,6 @@ +{ + "files": ["index.html", "support.html", "legal.html"], + "insertBefore": "", + "commentSyntax": "html", + "cspChecked": true +} \ No newline at end of file diff --git a/index.html b/index.html index e546987..2be92d1 100644 --- a/index.html +++ b/index.html @@ -64,9 +64,9 @@
- Global Server Network + Your optimal server - Testing all locations... + Finding your fastest route...
diff --git a/script.js b/script.js index d395d2f..03d498f 100644 --- a/script.js +++ b/script.js @@ -498,14 +498,9 @@ var si = 0, function updateCardPing(card, time) { var wrap = card.el.querySelector('.server-ping-wrap'); if (time < 0) { - wrap.innerHTML = 'unreachable'; + wrap.innerHTML = 'unreachable'; } else { - var ms = time.toFixed(0); - var cls = 'done'; - if (time < 100) cls += ' fast'; - wrap.innerHTML = - '' + ms + '' + - 'ms'; + wrap.innerHTML = 'connected'; } } @@ -521,19 +516,7 @@ var si = 0, }); /* Update banner status */ bannerStatus.innerHTML = - ' All locations tested'; - /* Show optimal server */ - var bestCard = cards.filter(function(c) { return c.server.host === best.host; })[0]; - if (bestCard) { - setTimeout(function() { - optimalEl.innerHTML = - '
' + - ' ' + - 'Your optimal server location: ' + bestCard.server.city + ' (' + best.time.toFixed(0) + ' ms)' + - '
'; - optimalEl.classList.add('visible'); - }, 600); - } + ' Fastest route found'; } /* Ping all servers in parallel */