fix: donations sort

This commit is contained in:
Aliberk Sandıkçı 2024-01-08 17:09:06 +03:00
parent 2500b05720
commit 3d8c6e9d0a
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1

View file

@ -29,7 +29,7 @@ if (!$_SERVER['DOCUMENT_ROOT']) {
<link rel="stylesheet" type="text/css" href="./bagis.css"> <!-- INNER CSS !!! --> <link rel="stylesheet" type="text/css" href="./bagis.css"> <!-- INNER CSS !!! -->
<link rel="stylesheet" type="text/css" href="/assets/css/extra_without_scss.css"> <link rel="stylesheet" type="text/css" href="/assets/css/extra_without_scss.css">
<title> <title>
Bi' Kahve Ismarla | Aliberk Sandıı Bi' Kahve Ismarla | Aliberk Sandıı
@ -48,15 +48,17 @@ if (!$_SERVER['DOCUMENT_ROOT']) {
<div><span>IBAN: </span><span style="margin-top: 0px;text-decoration:none;"> <b class="copy_element" id="IBAN" onclick="copy2Clipboard('IBAN')">TR63 0082 9000 0949 1444 3182 51</b><span id="IBAN-tip"></span></span></div> <div><span>IBAN: </span><span style="margin-top: 0px;text-decoration:none;"> <b class="copy_element" id="IBAN" onclick="copy2Clipboard('IBAN')">TR63 0082 9000 0949 1444 3182 51</b><span id="IBAN-tip"></span></span></div>
<div><span>Papara Numarası: </span><span style="margin-top: 0px;text-decoration:none;"> <b class="copy_element" id="Papara" onclick="copy2Clipboard('Papara')">14444318251</b><span id="Papara-tip"></span></span></div> <div><span>Papara Numarası: </span><span style="margin-top: 0px;text-decoration:none;"> <b class="copy_element" id="Papara" onclick="copy2Clipboard('Papara')">14444318251</b><span id="Papara-tip"></span></span></div>
<div><sup>ıklama Kısmını <span style="font-weight:800;">Gözükmesini İstediğiniz İsim - Bağış</span> şeklinde doldurunuz. Anonim Kalmak için <span style="font-weight:800;">Anonim - Bağış</span> Yazabilirsiniz</sup></div> <div><sup>ıklama Kısmını <span style="font-weight:800;">Gözükmesini İstediğiniz İsim - Bağış</span> şeklinde doldurunuz. Anonim Kalmak için <span style="font-weight:800;">Anonim - Bağış</span> Yazabilirsiniz</sup></div>
<br><hr style="width: 100%;"><br> <br>
<hr style="width: 100%;"><br>
<div id="current-goal"><label id="label1" for="pprogress">Sıradaki Hedef: </label><progress id="pprogress"><span></span></progress> <label id="label2" for="pprogress">x/y</label><br></div> <div id="current-goal"><label id="label1" for="pprogress">Sıradaki Hedef: </label><progress id="pprogress"><span></span></progress> <label id="label2" for="pprogress">x/y</label><br></div>
<!-- <p id="next-todo" style="margin-top:0px; margin-bottom:0px;font-size:15px;">Sırada Yapılacaklar: <b><span id="sirada-yapilacaklar"></span></b><br></p> --> <!-- <p id="next-todo" style="margin-top:0px; margin-bottom:0px;font-size:15px;">Sırada Yapılacaklar: <b><span id="sirada-yapilacaklar"></span></b><br></p> -->
<!-- <p><a href="../iflpanel/path.php" style="border:solid 1px orange; border-radius:10px; padding: 10px; background-color:royalblue; font-weight:800; color:orange">&#x1F449; Yol Haritası &#x1F448;</a></p> --> <!-- <p><a href="../iflpanel/path.php" style="border:solid 1px orange; border-radius:10px; padding: 10px; background-color:royalblue; font-weight:800; color:orange">&#x1F449; Yol Haritası &#x1F448;</a></p> -->
<br><hr style="width: 100%;"><br> <br>
<h1 style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-weight: 800; margin-top:1px; margin-bottom:1px;">Bağışçılar</h1> <hr style="width: 100%;"><br>
<h1 style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-weight: 800; margin-top:1px; margin-bottom:1px;">Bağışçılar</h1>
<div id="bagiscilar" style="text-align: left;"></div> <div id="bagiscilar" style="text-align: left;"></div>
<br> <br>
@ -130,10 +132,10 @@ if (!$_SERVER['DOCUMENT_ROOT']) {
console.log("base64: " + cnt); console.log("base64: " + cnt);
lastjson = JSON.parse(b64DecodeUnicode(cnt)); lastjson = JSON.parse(b64DecodeUnicode(cnt));
} }
console.log(lastjson);
lastjson.sort(function(a, b) { lastjson = lastjson.sort(function(a, b) {
return a.amount < b.amount; console.warn(a.amount , b.amount)
return b.amount - a.amount;
}); });
for (let i = 0; i < lastjson.length; i++) { for (let i = 0; i < lastjson.length; i++) {
@ -192,7 +194,7 @@ if (!$_SERVER['DOCUMENT_ROOT']) {
document.getElementById(curId).style.textDecoration = "underline"; document.getElementById(curId).style.textDecoration = "underline";
} }
if(lastjson.length < 5 ){ if (lastjson.length < 5) {
document.getElementById(curId).style.color = "#ffff00"; document.getElementById(curId).style.color = "#ffff00";
document.getElementById(curId).style.fontSize = "38px"; document.getElementById(curId).style.fontSize = "38px";
document.getElementById(curId).style.fontWeight = "900"; document.getElementById(curId).style.fontWeight = "900";