This file contains 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
{ | |
"bower": { | |
"qwery" : "pwm/js/lib/qwery.js", | |
"angular:1.2.4": "pwm/js/lib/angular.js" | |
}, | |
"fonts": { | |
"proxima": "pwm/css/fonts/proxima" | |
}, | |
"requirejs": { | |
"pwm.build.js": "pwm/js/app-build.js" |
This file contains 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
app.config(function($interpolateProvider) { | |
$interpolateProvider.startSymbol('//') | |
$interpolateProvider.endSymbol('//') | |
}) |
This file contains 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
<a href="http://www.americanfamilyvoices.org/?oneid-donate-email={{ USER'S EMAIL ADDRESS HERE }}&oneid-donate-amount=10&oneid-autorun=true"> | |
<QUICKDONATE BUTTON HERE> | |
</a> |
This file contains 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
(this will prepopulate the email and amount fields.) | |
http://yourdomain.com/yourpage?oneid-donate-email=<USER_EMAIL>&oneid-donate-amount=<DONATION_AMOUNT>&oneid-autorun=true |
This file contains 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
amounts: will show up as pre-selected bubbles on donate-amount.hgn | |
extraFields: self-explanatory | |
fallbackUrl: the page that will be shown if user is on an unsupported browser | |
minDonation: minimum amount a donor can give | |
maxDonation: maximum amount a donor can give | |
terms: HTML to be rendered as Terms of Service on donate-payment and donate-confirm | |
demoMode: bypasses payment |
This file contains 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
OneID._proxy({ | |
method: "donate", | |
params: {}, | |
success: function() { | |
alert("success page here") | |
}, | |
error: function() {} | |
}); |
This file contains 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
Ok - | |
His Dribbble looks good, but frankly, a UX guy in CA is the pinnacle of "geographically undesirable," with 75% of the team now in Austin. It's a big part of the reason that the previous design relationships were, frankly, dysfunctional, and unless this guy is a total unicorn, it just seems like a bad idea to jump the gun on this. | |
I don't mean to sound negative, but, well, I am. | |
Also, it's 7 work days until this demo and I don't particularly know what to build. By the time the designer gets anything to us it'll be 5. | |
P |
This file contains 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
var data = { | |
attribute_data: { ... } | |
cc_num: function() { | |
if (this.attribute_data.payment.cc_number) { | |
return OneIdUtil.prettyPrint(this.attribute_data.payment.cc_number) | |
} else return null; | |
} | |
}; | |
// in the template |
This file contains 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
$('#LayoutColumn2 .Block').append('<div class="NotifyMessage" style="background-image: url(https://s3.amazonaws.com/integration.oneid.com/oneid_logo.png); background-repeat: no-repeat; background-position: 10px 50%; padding-left: 130px; padding-bottom: 15px;">Congratulations! Your OneID account has been set up using your information from this purchase. Your information is safe and will not be shared, unless you say so. OneID keeps your information private and under your control. Only you choose when and where to share your OneID online. OneID is free and easy to use. Look for the welcome email to complete account set-up coming soon.<p></div>'); |
This file contains 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
// update | |
OneID.attr({ | |
"cards" : [ | |
{ | |
id: "", | |
attr: { ... } | |
}, | |
... | |
}); |