diff --git a/example-singleServer-chart.html b/example-singleServer-chart.html index d0040e3..9ed66bb 100755 --- a/example-singleServer-chart.html +++ b/example-singleServer-chart.html @@ -35,11 +35,82 @@ display: block; margin: 0 auto; } + + .theme-switch-wrapper { + margin: 20px; + } + + .theme-switch { + display: inline-block; + height: 40px; + position: relative; + width: 65px; + } + + .theme-switch input { + display: none; + } + + .slider { + background: #000; + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + font-size: 13px; + transition: 0.4s; + } + + .slider p:after { + color: #fff; + float: right; + margin: 0 5px 0 0; + content: "OFF"; + transition: 0.4s; + } + + input:checked + .slider p:after { + float: left; + color: #000; + content: "ON"; + margin: 0 0 0 5px; + } + + .slider:before { + background: #fff; + top: 8px; + content: ""; + height: 26px; + left: 4px; + position: absolute; + transition: 0.4s; + width: 26px; + } + + input:checked + .slider { + background-color: #fff; + } + + input:checked + .slider:before { + transform: translateX(28px); + background: #000; + } + + .slider.round { + border-radius: 34px; + } + + .slider.round:before { + border-radius: 50%; + } diff --git a/example-singleServer-customSettings.html b/example-singleServer-customSettings.html index b1c0cfb..04c4cf2 100755 --- a/example-singleServer-customSettings.html +++ b/example-singleServer-customSettings.html @@ -78,9 +78,9 @@ function I(id){return document.getElementById(id);} box-shadow: 0 0 2em rgba(0,0,0,0.1), inset 0 0 1em rgba(0,0,0,0.1); } #startStopBtn.running{ - background-color:#FF3030; - border-color:#FF6060; - color:#FFFFFF; + background-color:#FF3030!important; + border-color:#FF6060!important; + color:#FFFFFF!important; } #startStopBtn:before{ content:"Start"; @@ -147,6 +147,74 @@ function I(id){return document.getElementById(id);} } } + .theme-switch-wrapper { + margin: 20px; + } + + .theme-switch { + display: inline-block; + height: 40px; + position: relative; + width: 65px; + } + + .theme-switch input { + display: none; + } + + .slider { + background: #000; + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + font-size: 13px; + transition: 0.4s; + } + + .slider p:after { + color: #fff; + float: right; + margin: 0 5px 0 0; + content: "OFF"; + transition: 0.4s; + } + + input:checked + .slider p:after { + float: left; + color: #000; + content: "ON"; + margin: 0 0 0 5px; + } + + .slider:before { + background: #fff; + top: 8px; + content: ""; + height: 26px; + left: 4px; + position: absolute; + transition: 0.4s; + width: 26px; + } + + input:checked + .slider { + background-color: #fff; + } + + input:checked + .slider:before { + transform: translateX(28px); + background: #000; + } + + .slider.round { + border-radius: 34px; + } + + .slider.round:before { + border-radius: 50%; + } @@ -166,9 +234,60 @@ function I(id){return document.getElementById(id);} +
+

DARKMODE

+
+
Source code diff --git a/example-singleServer-full.html b/example-singleServer-full.html index 823ef9f..f1d0caf 100755 --- a/example-singleServer-full.html +++ b/example-singleServer-full.html @@ -154,9 +154,9 @@ function initUI(){ box-shadow: 0 0 2em rgba(0,0,0,0.1), inset 0 0 1em rgba(0,0,0,0.1); } #startStopBtn.running{ - background-color:#FF3030; - border-color:#FF6060; - color:#FFFFFF; + background-color:#FF3030!important; + border-color:#FF6060!important; + color:#FFFFFF!important; } #startStopBtn:before{ content:"Start"; @@ -272,6 +272,78 @@ function initUI(){ font-size:0.8em; } } + + #darkMode{ + margin-top:-100px; + } + .theme-switch-wrapper { + margin:5px; + } + + .theme-switch { + display: inline-block; + height: 40px; + position: relative; + width: 65px; + } + + .theme-switch input { + display: none; + } + + .slider { + background: #000; + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + font-size: 13px; + transition: 0.4s; + } + + .slider p:after { + color: #fff; + float: right; + margin: 0 5px 0 0; + content: "OFF"; + transition: 0.4s; + } + + input:checked + .slider p:after { + float: left; + color: #000; + content: "ON"; + margin: 0 0 0 5px; + } + + .slider:before { + background: #fff; + top: 8px; + content: ""; + height: 26px; + left: 4px; + position: absolute; + transition: 0.4s; + width: 26px; + } + + input:checked + .slider { + background-color: #fff; + } + + input:checked + .slider:before { + transform: translateX(28px); + background: #000; + } + + .slider.round { + border-radius: 34px; + } + + .slider.round:before { + border-radius: 50%; + } LibreSpeed Example @@ -317,6 +389,15 @@ function initUI(){
+
+

DARKMODE

+
+
Source code

- + diff --git a/example-singleServer-gauges.html b/example-singleServer-gauges.html index 9a49705..4657218 100755 --- a/example-singleServer-gauges.html +++ b/example-singleServer-gauges.html @@ -139,9 +139,9 @@ function initUI(){ box-shadow: 0 0 2em rgba(0,0,0,0.1), inset 0 0 1em rgba(0,0,0,0.1); } #startStopBtn.running{ - background-color:#FF3030; - border-color:#FF6060; - color:#FFFFFF; + background-color: #ff3030 !important; + border-color: #ff6060 !important; + color: #ffffff !important; } #startStopBtn:before{ content:"Start"; @@ -217,6 +217,78 @@ function initUI(){ font-size:0.8em; } } + + #darkMode{ + margin-top:-100px; + } + .theme-switch-wrapper { + margin:5px; + } + + .theme-switch { + display: inline-block; + height: 40px; + position: relative; + width: 65px; + } + + .theme-switch input { + display: none; + } + + .slider { + background: #000; + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + font-size: 13px; + transition: 0.4s; + } + + .slider p:after { + color: #fff; + float: right; + margin: 0 5px 0 0; + content: "OFF"; + transition: 0.4s; + } + + input:checked + .slider p:after { + float: left; + color: #000; + content: "ON"; + margin: 0 0 0 5px; + } + + .slider:before { + background: #fff; + top: 8px; + content: ""; + height: 26px; + left: 4px; + position: absolute; + transition: 0.4s; + width: 26px; + } + + input:checked + .slider { + background-color: #fff; + } + + input:checked + .slider:before { + transform: translateX(28px); + background: #000; + } + + .slider.round { + border-radius: 34px; + } + + .slider.round:before { + border-radius: 50%; + } LibreSpeed Example @@ -255,8 +327,72 @@ function initUI(){ +
+

DARKMODE

+
+
+ +
Source code - + diff --git a/example-singleServer-pretty.html b/example-singleServer-pretty.html index 7715535..fcb8c77 100755 --- a/example-singleServer-pretty.html +++ b/example-singleServer-pretty.html @@ -1,192 +1,352 @@ - - - -LibreSpeed Example - - - + -function I(id){return document.getElementById(id);} - + - - -

LibreSpeed Example

-
-
-
-
-
Download
-
-
Mbps
-
-
-
Upload
-
-
Mbps
-
-
-
-
-
Ping
-
-
ms
-
-
-
Jitter
-
-
ms
-
-
-
- IP Address: -
-
-Source code - - + h1 { + color: #404040; + } + + #startStopBtn { + display: inline-block; + margin: 0 auto; + color: #6060aa; + background-color: rgba(0, 0, 0, 0); + border: 0.15em solid #6060ff; + border-radius: 0.3em; + transition: all 0.3s; + box-sizing: border-box; + width: 8em; + height: 3em; + line-height: 2.7em; + cursor: pointer; + box-shadow: 0 0 0 rgba(0, 0, 0, 0.1), inset 0 0 0 rgba(0, 0, 0, 0.1); + } + + #startStopBtn:hover { + box-shadow: 0 0 2em rgba(0, 0, 0, 0.1), inset 0 0 1em rgba(0, 0, 0, 0.1); + } + + #startStopBtn.running { + background-color: #ff3030 !important; + border-color: #ff6060 !important; + color: #ffffff !important; + } + + #startStopBtn:before { + content: "Start"; + } + + #startStopBtn.running:before { + content: "Abort"; + } + + #test { + margin-top: 2em; + margin-bottom: 12em; + } + + div.testArea { + display: inline-block; + width: 14em; + height: 9em; + position: relative; + box-sizing: border-box; + } + + div.testName { + position: absolute; + top: 0.1em; + left: 0; + width: 100%; + font-size: 1.4em; + z-index: 9; + } + + div.meterText { + position: absolute; + bottom: 1.5em; + left: 0; + width: 100%; + font-size: 2.5em; + z-index: 9; + } + + #dlText { + color: #6060aa; + } + + #ulText { + color: #309030; + } + + #pingText, + #jitText { + color: #aa6060; + } + + div.meterText:empty:before { + color: #505050 !important; + content: "0.00"; + } + + div.unit { + position: absolute; + bottom: 2em; + left: 0; + width: 100%; + z-index: 9; + } + + div.testGroup { + display: inline-block; + } + + @media all and (max-width: 65em) { + body { + font-size: 1.5vw; + } + } + + @media all and (max-width: 40em) { + body { + font-size: 0.8em; + } + + div.testGroup { + display: block; + margin: 0 auto; + } + } + + .theme-switch-wrapper { + margin: 20px; + } + + .theme-switch { + display: inline-block; + height: 40px; + position: relative; + width: 65px; + } + + .theme-switch input { + display: none; + } + + .slider { + background: #000; + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + font-size: 13px; + transition: 0.4s; + } + + .slider p:after { + color: #fff; + float: right; + margin: 0 5px 0 0; + content: "OFF"; + transition: 0.4s; + } + + input:checked + .slider p:after { + float: left; + color: #000; + content: "ON"; + margin: 0 0 0 5px; + } + + .slider:before { + background: #fff; + top: 8px; + content: ""; + height: 26px; + left: 4px; + position: absolute; + transition: 0.4s; + width: 26px; + } + + input:checked + .slider { + background-color: #fff; + } + + input:checked + .slider:before { + transform: translateX(28px); + background: #000; + } + + .slider.round { + border-radius: 34px; + } + + .slider.round:before { + border-radius: 50%; + } + + + + +

LibreSpeed Example

+
+
+
+
+
Download
+
+
Mbps
+
+
+
Upload
+
+
Mbps
+
+
+
+
+
Ping
+
+
ms
+
+
+
Jitter
+
+
ms
+
+
+
IP Address:
+
+

DARKMODE

+
+ +
+ Source code + + diff --git a/example-singleServer-progressBar.html b/example-singleServer-progressBar.html index f9e7007..0056372 100755 --- a/example-singleServer-progressBar.html +++ b/example-singleServer-progressBar.html @@ -1,212 +1,383 @@ - - - -LibreSpeed Example - - - + + + + + + +

LibreSpeed Example

+
+
+
+
+
+
+
+
Download
+
+
Mbps
+
+
+
Upload
+
+
Mbps
+
+
+
+
+
Ping
+
+
ms
+
+
+
Jitter
+
+
ms
+
+
+
IP Address:
+
+

DARKMODE

+
+ +
+ Source code + + + - - - - -

LibreSpeed Example

-
-
-
-
-
-
Download
-
-
Mbps
-
-
-
Upload
-
-
Mbps
-
-
-
-
-
Ping
-
-
ms
-
-
-
Jitter
-
-
ms
-
-
-
- IP Address: -
-
-Source code - - + countToggleDark++; + } else { + document.querySelector("html ").style.background = "#fdfdfd"; + document.querySelector("body").style.background = "#fdfdfd"; + document.querySelector("html").style.color = "#202020"; + document.querySelector("body").style.color = "#202020"; + document.querySelector("#startStopBtn").style.border ="0.15em solid #6060FF"; + document.querySelector("#startStopBtn").style.color = "#6060AA"; + document.querySelector("h1").style.color = "#404040"; + document.querySelector("#dlText").style.color = "#6060AA"; + document.querySelector("#pingText").style.color = "#AA6060"; + document.querySelector("#jitText").style.color = "#AA6060"; + document.querySelector("#progress").style.background = "#90BBFF"; + countToggleDark = 0; + } + } +