Skip to content

Commit

Permalink
Add Speed Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jason5ng32 committed Dec 9, 2023
1 parent 75ca46c commit 6f7f1d4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,22 +313,22 @@ <h2 id="SpeedTest" :class="{'mobile-h2' : isMobile }">🚀 {{currentTexts.speedt

<div class="row" style="margin-bottom: 10pt;">
<div class="col-3 text-center">
<h5>{{currentTexts.speedtest.Download}}</h5>
<p id="download-speed" :class="updateSpeedTestColor(speedTestStatus)">{{speedTest.downloadSpeed}}
Mbps</p>
<h5 class="speedtest-h5">{{currentTexts.speedtest.Download}}</h5>
<p id="download-speed" class="speedtest-h5" :class="updateSpeedTestColor(speedTestStatus)">{{speedTest.downloadSpeed}}
M/s</p>
</div>
<div class="col-3 text-center">
<h5>{{currentTexts.speedtest.Upload}}</h5>
<p id="upload-speed" :class="updateSpeedTestColor(speedTestStatus)">{{speedTest.uploadSpeed}} Mbps
<h5 class="speedtest-h5">{{currentTexts.speedtest.Upload}}</h5>
<p id="upload-speed" class="speedtest-h5" :class="updateSpeedTestColor(speedTestStatus)">{{speedTest.uploadSpeed}} M/s
</p>
</div>
<div class="col-3 text-center">
<h5>{{currentTexts.speedtest.Latency}}</h5>
<p id="latency" :class="updateSpeedTestColor(speedTestStatus)">{{speedTest.latency}} ms</p>
<h5 class="speedtest-h5">{{currentTexts.speedtest.Latency}}</h5>
<p id="latency" class="speedtest-h5" :class="updateSpeedTestColor(speedTestStatus)">{{speedTest.latency}} ms</p>
</div>
<div class="col-3 text-center">
<h5>{{currentTexts.speedtest.Jitter}}</h5>
<p id="jitter" :class="updateSpeedTestColor(speedTestStatus)">{{speedTest.jitter}} ms</p>
<h5 class="speedtest-h5">{{currentTexts.speedtest.Jitter}}</h5>
<p id="jitter" class="speedtest-h5" :class="updateSpeedTestColor(speedTestStatus)">{{speedTest.jitter}} ms</p>
</div>
</div>
<div id="result"></div>
Expand Down
6 changes: 6 additions & 0 deletions res/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ footer {
footer {
height: 140pt;
}
.speedtest-h5 {
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}

.jn-radio {
Expand Down

0 comments on commit 6f7f1d4

Please sign in to comment.