fix: donations sort
This commit is contained in:
parent
2500b05720
commit
3d8c6e9d0a
1 changed files with 13 additions and 11 deletions
|
@ -49,12 +49,14 @@ if (!$_SERVER['DOCUMENT_ROOT']) {
|
|||
<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>Açı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>
|
||||
<!-- <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">👉 Yol Haritası 👈</a></p> -->
|
||||
|
||||
<br><hr style="width: 100%;"><br>
|
||||
<br>
|
||||
<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>
|
||||
|
@ -130,10 +132,10 @@ if (!$_SERVER['DOCUMENT_ROOT']) {
|
|||
console.log("base64: " + cnt);
|
||||
lastjson = JSON.parse(b64DecodeUnicode(cnt));
|
||||
}
|
||||
console.log(lastjson);
|
||||
|
||||
lastjson.sort(function(a, b) {
|
||||
return a.amount < b.amount;
|
||||
lastjson = lastjson.sort(function(a, b) {
|
||||
console.warn(a.amount , b.amount)
|
||||
return b.amount - a.amount;
|
||||
});
|
||||
|
||||
for (let i = 0; i < lastjson.length; i++) {
|
||||
|
|
Loading…
Reference in a new issue