Skip to content

Some improvements for donate bitcoin - #1

Merged
nrobinson2000 merged 1 commit into
nrobinson2000:masterfrom
esaezgil:refactor_donate_bitcoin
Nov 2, 2017
Merged

Some improvements for donate bitcoin#1
nrobinson2000 merged 1 commit into
nrobinson2000:masterfrom
esaezgil:refactor_donate_bitcoin

Conversation

@esaezgil

@esaezgil esaezgil commented Nov 2, 2017

Copy link
Copy Markdown
Contributor

Refactor the code in order to:

  • Avoid Synchronous XMLHttpRequest on the main thread
  • Make self-contained functions
  • Rename the qrcode div to avoid clashes between element id and function name
  • Fail gracefuly when user input can not be handled
  • Add a default amount that is displayed on first load
  • Start improving code style

This is addressing esaezgil/esaezgil.github.io#2

 - Avoid Synchronous XMLHttpRequest on the main thread
 - Make self-contained functions
 - Rename the qrcode div to avoid clashes between element id and function name
 - Fail gracefuly when user input can not be handled
 - Add a default amount that is displayed on first load
@nrobinson2000
nrobinson2000 merged commit a1b5b56 into nrobinson2000:master Nov 2, 2017
@nrobinson2000

Copy link
Copy Markdown
Owner

Thanks for you contributions!

I made a few fixes, and have committed them. (I can add you to the credits if you want.)

Here is a preview of it in action: https://donate.nrobinson2000.me/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants