From e239f4110626003a8aa2c9305581d2428283925c Mon Sep 17 00:00:00 2001 From: arminamirinasab Date: Sun, 29 Jan 2023 15:25:00 +0330 Subject: [PATCH 1/4] Solved Number #30 Issue For Get Battery Status --- javascript/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/script.js b/javascript/script.js index b8219fc..1f811fa 100644 --- a/javascript/script.js +++ b/javascript/script.js @@ -451,9 +451,9 @@ const calculateBattery = () => { }); }) .finally(() => { - batteryText.textContent = `${number}%`; + batteryText.textContent = `${Math.floor(number)}%`; batteryProgress.style.width = `${number}%`; - batteryPopupText.textContent = `${number}%`; + batteryPopupText.textContent = `${Math.floor(number)}%`; if (number <= 20) { batteryProgress.classList.add("battery__low"); From 372c1ed3d7f1b524dd0a5263d9c0368e7a89d6dd Mon Sep 17 00:00:00 2001 From: arminamirinasab Date: Sun, 29 Jan 2023 15:59:20 +0330 Subject: [PATCH 2/4] Upload Musics & Covers --- Css/style.css | 1 + index.html | 1203 +++++++++++++++++++----------------------- javascript/script.js | 36 +- music/canon.jpg | Bin 0 -> 21501 bytes music/canon.mp3 | Bin 0 -> 11178317 bytes music/faded.mp3 | Bin 0 -> 3321520 bytes music/faded.webp | Bin 0 -> 21212 bytes music/mozart.jpg | Bin 0 -> 9061 bytes music/mozart.mp3 | Bin 0 -> 5434530 bytes 9 files changed, 586 insertions(+), 654 deletions(-) create mode 100644 music/canon.jpg create mode 100644 music/canon.mp3 create mode 100644 music/faded.mp3 create mode 100644 music/faded.webp create mode 100644 music/mozart.jpg create mode 100644 music/mozart.mp3 diff --git a/Css/style.css b/Css/style.css index 3e9961e..09d0b20 100644 --- a/Css/style.css +++ b/Css/style.css @@ -505,6 +505,7 @@ li > .menu__container > .grid__controling .control_center--grid { .musicPlayer--image img { width: 50px; margin: 0 0 0 10px; + border-radius: 10px; } .musicPlayer--content { width: 30%; diff --git a/index.html b/index.html index 9295972..e104cbe 100644 --- a/index.html +++ b/index.html @@ -1,711 +1,614 @@ - - - - - - - - Mac os in web! + + - - - + + + + - + Mac os in web! - + + + - + - - - - - - - - + - - - + - - - -
- -
-
    -
  • - -
  • -
  • - - -
  • -
  • - - -
  • -
-
+
+
    +
  • + +
  • +
  • + + +
  • +
  • + + +
  • +
+
- + -
- - - - - - - - - - - - - - - -
- +
+ + + + + + + + + + + + + + + +
+ - -
-