Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
revoxhere authored Mar 18, 2024
1 parent 63930cb commit f166bdb
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions 2023/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,6 @@ function login(token) {
});
}
} else {
console.log(data.message);
if (data.message.includes("This user doesn't exist")) {
username_input.effect("shake", { distance: 5 });
return;
Expand Down Expand Up @@ -789,7 +788,6 @@ function create_prices(prices) {

finalhtml = "";
for (price in prices) {
console.log(price)
link = "https://exchange.duinocoin.com";
icon = "assets/ducoexchange.png";

Expand Down Expand Up @@ -1041,7 +1039,8 @@ const user_data = (req_username, first_open) => {
});
}

maxslots = data.balance.max_miners;
verified_for_slots = data.balance.max_miners;
$(".verified_for_slots").html(`verified to use <b>${verified_for_slots}</b>`);

trustscore = data.balance.trust_score;
if (data.balance.warnings < 1) {
Expand Down Expand Up @@ -1141,6 +1140,9 @@ const user_data = (req_username, first_open) => {
if (data.notices.includes(2)) {
$(".minercount_exceeded").fadeIn();
}
if (data.notices.includes(3)) {
$(".verified_minercount_exceeded").fadeIn();
}
})
}
let loggedIn = true;
Expand Down Expand Up @@ -1613,12 +1615,12 @@ function create_miners(user_miners) {
});
}

if (maxslots == 0) maxslots = 8;
//if (verified === "yes") maxslots = 50;
//if (verified === "yes" && user_items.includes(10)) maxslots = 75;
//if (verified === "yes" && user_items.includes(11)) maxslots = 100;
//if (verified === "yes" && user_items.includes(11) && user_items.includes(10)) maxslots = 125;
$(".minercount").text(`${user_miners.flat().length} out of ${maxslots} slots used`);
maxslots = 8;
if (verified === "yes") maxslots = 50;
if (verified === "yes" && user_items.includes(10)) maxslots = 75;
if (verified === "yes" && user_items.includes(11)) maxslots = 100;
if (verified === "yes" && user_items.includes(11) && user_items.includes(10)) maxslots = 125;
$(".minercount").html(`<b>${user_miners.flat().length} out of ${maxslots}</b> slots used`);
}


Expand Down Expand Up @@ -2764,7 +2766,6 @@ function copy(text, element) {
});

setTimeout(function() {
console.log("run")
$(element).html("<i class='fa fa-copy'></i>")
}, 1000)
}
Expand Down

0 comments on commit f166bdb

Please sign in to comment.