Created
December 13, 2010 02:42
-
-
Save datapimp/738591 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (maximum_attendees >= 1) { | |
// if the amount specified is a total amount | |
// instead of a per person amount | |
if (total) { | |
explanation1 = 'Each friend will pay {share_per_person} plus a processing fee ' + 'of {fee_per_person}. You will collect {initiator_payout}' + ' (your share is factored in).'; | |
explanation2 = 'If all spots are filled, you will collect {maximum_collection}'; | |
} else { | |
explanation1 = "The minimum amount you will collect is {minimum_collection}"; | |
explanation2 = "If all spots are filled, you will collect {maximum_collection}"; | |
} | |
// this is for situations where there is only a minimum number of attendees set | |
// max is not specified at all | |
} else { | |
// if the amount specified is a total amount | |
// instead of a per person amount | |
if (total) { | |
explanation1 = 'Each friend will pay {share_per_person} plus a processing fee of {fee_per_person}.' + ' You will collect {initiator_payout} ( your share is factored in ).'; | |
explanation2 = 'The more friends that pay, the less everyone will be charged; ' + 'we divide it up equally.'; | |
// if this is a per person amount | |
} else { | |
explanation1 = "The minimum amount you will collect is {minimum_collection} " | |
explanation2 = "The more friends that agree to pay, the more money you will get"; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment