Skip to content
Snippets Groups Projects
Commit 4ca9ba80 authored by Bady's avatar Bady
Browse files

Add currency type to donations

parent 36e12950
Branches
No related merge requests found
{
"donations": {
"indiegogo": [{
"donor": "Anonymous",
"amount": 100
}],
"direct": [{
"donor": "Balasankar C",
"amount": 10000
}, {
"donor": "Joseph Kiran",
"amount": 2000
}, {
"donor": "Jyothis Jagan",
"amount": 500
}, {
"donor": "Hamdan",
"amount": 200
}, {
"donor": "Mohit Bansal",
"amount": 350
}, {
"donor": "Shanavas",
"amount": 1000
}, {
"donor": "Kesav",
"amount": 500
}, {
"donor": "Harish",
"amount": 1000
}, {
"donor": "Well-wisher",
"amount": 1000
}, {
"donor": "Revath Sasi Kumar",
"amount": 3000
}, {
"donor": "Anonymous",
"amount": 10000
}]
"indiegogo": {
"usd": [{
"donor": "Anonymous",
"amount": 100
}]
},
"direct": {
"inr": [{
"donor": "Balasankar C",
"amount": 10000
}, {
"donor": "Joseph Kiran",
"amount": 2000
}, {
"donor": "Jyothis Jagan",
"amount": 500
}, {
"donor": "Hamdan",
"amount": 200
}, {
"donor": "Mohit Bansal",
"amount": 350
}, {
"donor": "Shanavas",
"amount": 1000
}, {
"donor": "Kesav",
"amount": 500
}, {
"donor": "Harish",
"amount": 1000
}, {
"donor": "Well-wisher",
"amount": 1000
}, {
"donor": "Revath Sasi Kumar",
"amount": 3000
}, {
"donor": "Anonymous",
"amount": 10000
}]
}
}
}
......@@ -23,7 +23,7 @@
font-weight: bold;
}
.progress-bar + .tooltip {
z-index: 2;
z-index: ;2
}
.progress-bar + .tooltip > .tooltip-inner {
background-color: #ff0060;
......@@ -516,10 +516,10 @@
parent = this;
$.each(donations, function(index, donation) {
$.each(donation.indiegogo, function(j,igg) {
$.each(donation.indiegogo.usd, function(j,igg) {
parent.indiegogo_total += igg.amount;
});
$.each(donation.direct, function(j,dir) {
$.each(donation.direct.inr, function(j,dir) {
parent.direct_total += dir.amount;
});
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment