Skip to content

Commit

Permalink
ye
Browse files Browse the repository at this point in the history
  • Loading branch information
BulldogM authored May 14, 2024
1 parent 8aad2d4 commit 5548dbb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const selector = {
}

let isCheckboxSelectorEnabled = 0;
let value1 = [0,0,0];
let value2 = [0,0,0];

calculateButton.onclick = checkSelector;

Expand All @@ -63,8 +65,8 @@ function checkCheckboxes(object) {
function setValue(elmnt1, elmnt2, int) {
const valuePool = elmnt1;
const postValuePool = elmnt2;
let value1 = checkCheckboxes(0);
let value2 = checkCheckboxes(1);
value1 = checkCheckboxes(0);
value2 = checkCheckboxes(1);
if (int = 0) {
emissionBar.style.width = valuePool[0] + "%";
costBar.style.width = valuePool[1] + "%";
Expand All @@ -80,7 +82,7 @@ function setValue(elmnt1, elmnt2, int) {
emissionPostBar.style.width = "0%";
costPostBar.style.width = "0%";
timePostBar.style.width = "0%";
console.log(value1);
calculateButton.innerText = value1[0];
} else {
emissionBar.style.width = valuePool[0] + "%";
costBar.style.width = valuePool[1] + "%";
Expand Down

0 comments on commit 5548dbb

Please sign in to comment.