A plain-javascript Giphy and Unsplash photo picker.
var handler = new StockPhotoPicker({
unsplash: {
token: 'UNSPLASH_APPLICATION_ID'
},
giphy: {
token: 'GIPHY_TOKEN'
}
});
document.getElementById('unsplashButton').addEventListener('click', function (e) {
handler.open({
provider: 'unsplash'
});
e.preventDefault();
});
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Maxence HENNERON - Initial work - (https://github.com/MaxenceHenneron)
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details