From cd79310f3c8ce7a0fb0f4b88c2a39533c39a75ff Mon Sep 17 00:00:00 2001 From: steev Date: Sun, 5 Feb 2023 01:24:07 +0100 Subject: [PATCH] added script abillity for UI --- index.html | 14 +++---- render.js | 28 ++++++++++++++ style.css | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 138 insertions(+), 14 deletions(-) create mode 100644 render.js diff --git a/index.html b/index.html index d84f039..ec6cc11 100644 --- a/index.html +++ b/index.html @@ -13,22 +13,18 @@

Latest Version: V0.0.0

-
+

Installed: V0.0.0

-
-

Downloading...

-
100%
+
+

Downloading...

+
100%
- - + \ No newline at end of file diff --git a/render.js b/render.js new file mode 100644 index 0000000..3447b81 --- /dev/null +++ b/render.js @@ -0,0 +1,28 @@ +function updateProgressBar(progress){ + document.getElementById("progress-bar").style.width = progress + "%"; + document.getElementById("progress-label").textContent = progress + "%"; +} + +function updateProgressStep(step){ + document.getElementById("progress-step").textContent = step; +} + +function toggleDownloadButton(shown){ + let button = document.getElementById("download"); + + if (shown) { + button.style.display = "block"; + } else { + button.style.display = "none"; + } +} + +function toggleDownloadDisplay(shown){ + + if (shown) { + document.getElementById("download-section").style.display = "block"; + } else { + document.getElementById("download-section").style.display = "none"; + } +} + diff --git a/style.css b/style.css index f636d18..2e5e0a9 100644 --- a/style.css +++ b/style.css @@ -14,8 +14,8 @@ h4 { margin-bottom: 10px; } .content { - padding-left: 20.5%; - padding-right: 20.5%; + padding-left: 15.5%; + padding-right: 15.5%; padding-top: 5%; } @@ -37,13 +37,113 @@ h4 { height: 33px; } +.download:hover { + background-color: #3d5a61; +} + +div[class^=col-] { + padding: 1rem 0 +} + .row { - width: 100%; display: flex; + flex-wrap: wrap +} + +.col-1 { + flex: 0 0 8.33333% +} + +.col-offset-1 { + margin-left: 8.33333% +} + +.col-2 { + flex: 0 0 16.66667% +} + +.col-offset-2 { + margin-left: 16.66667% +} + +.col-3 { + flex: 0 0 25% +} + +.col-offset-3 { + margin-left: 25% +} + +.col-4 { + flex: 0 0 33.33333% +} + +.col-offset-4 { + margin-left: 33.33333% +} + +.col-5 { + flex: 0 0 41.66667% +} + +.col-offset-5 { + margin-left: 41.66667% } .col-6 { - width: 50%; + flex: 0 0 50% +} + +.col-offset-6 { + margin-left: 50% +} + +.col-7 { + flex: 0 0 58.33333% +} + +.col-offset-7 { + margin-left: 58.33333% +} + +.col-8 { + flex: 0 0 66.66667% +} + +.col-offset-8 { + margin-left: 66.66667% +} + +.col-9 { + flex: 0 0 75% +} + +.col-offset-9 { + margin-left: 75% +} + +.col-10 { + flex: 0 0 83.33333% +} + +.col-offset-10 { + margin-left: 83.33333% +} + +.col-11 { + flex: 0 0 91.66667% +} + +.col-offset-11 { + margin-left: 91.66667% +} + +.col-12 { + flex: 0 0 100% +} + +.col-offset-12 { + margin-left: 100% } #myProgress { @@ -52,7 +152,7 @@ h4 { border: 1px solid #74b1be; } -#myBar { +#progress-bar { width: 100%; height: 33px; border-radius: 5px;