Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

CommitChange/sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CC SDK

This is the frontend javascript 'SDK' for building CommitChange integrations from third-party clients. For now, it handles the logic and styling of things outside of the actual donate form.

More specifically, the code does the following:

  • parses page and searches for 'commitchange-donate' and reads data attributes
  • turns data attributes into url params or post messages to be used in iframe src or iframe post message
  • appends the css for elements outside of the actual donate form

Build

Go into the donate-widget directory and run build.sh. It will generate bundle.js which can be copied to the hosted location (for not, it should be copied into public/js/donate-button.v2.js).

About

CommitChange JS SDK (deprecated)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published