organize donation color

This commit is contained in:
Aliberk Sandıkçı 2023-12-22 12:08:21 +03:00
parent fde1672354
commit ef78c9b139
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1

View file

@ -160,31 +160,31 @@ if (!$_SERVER['DOCUMENT_ROOT']) {
document.getElementById("bagiscilar").innerHTML += "<p><span id='" + curId + "'>" + s.name + "</span> - <span id='" + curId + "amount'> " + s.amount + "₺<span></p>";
curAmount += s.amount;
document.getElementById(curId).style.fontWeight = "500";
if (s.amount <= 10) {
if (s.amount <= 1) {
document.getElementById(curId).style.color = "grey";
document.getElementById(curId).style.fontSize = "12px";
} else if (s.amount <= 20) {
} else if (s.amount <= 5) {
document.getElementById(curId).style.color = "white";
document.getElementById(curId).style.fontSize = "14px";
} else if (s.amount <= 30) {
} else if (s.amount <= 10) {
document.getElementById(curId).style.color = "orange";
document.getElementById(curId).style.fontSize = "16px";
} else if (s.amount <= 40) {
} else if (s.amount <= 15) {
document.getElementById(curId).style.color = "yellow";
document.getElementById(curId).style.fontSize = "18px";
} else if (s.amount <= 50) {
} else if (s.amount <= 20) {
document.getElementById(curId).style.color = "purple";
document.getElementById(curId).style.fontSize = "20px";
} else if (s.amount <= 60) {
} else if (s.amount <= 25) {
document.getElementById(curId).style.color = "red";
document.getElementById(curId).style.fontSize = "22px";
} else if (s.amount <= 70) {
} else if (s.amount <= 30) {
document.getElementById(curId).style.color = "black";
document.getElementById(curId).style.fontSize = "24px";
} else if (s.amount <= 80) {
} else if (s.amount <= 50) {
document.getElementById(curId).style.color = "#cc00ff";
document.getElementById(curId).style.fontSize = "26px";
} else if (s.amount <= 90) {
} else if (s.amount <= 75) {
document.getElementById(curId).style.color = "#ff6e95";
document.getElementById(curId).style.fontSize = "28px";
} else if (s.amount <= 100) {