2020-03-26 22:43:44 +01:00
|
|
|
/**
|
|
|
|
* Axios
|
2020-04-23 00:49:23 +02:00
|
|
|
*
|
2020-03-26 22:43:44 +01:00
|
|
|
* Promise based HTTP client for the browser and node.js
|
|
|
|
* https://github.com/axios/axios
|
|
|
|
*/
|
2020-06-16 18:09:43 +02:00
|
|
|
window.axios = require('axios');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* card-validator
|
2020-08-24 10:28:55 +02:00
|
|
|
*
|
2020-06-16 18:09:43 +02:00
|
|
|
* Validate credit cards as users type.
|
|
|
|
* https://github.com/braintree/card-validator
|
|
|
|
*/
|
|
|
|
window.valid = require('card-validator');
|
|
|
|
|
2020-08-25 08:55:55 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove flashing message div after 3 seconds.
|
|
|
|
*/
|
|
|
|
document.querySelectorAll('.disposable-alert').forEach((element) => {
|
|
|
|
setTimeout(() => {
|
|
|
|
element.remove();
|
2021-01-27 14:10:24 +01:00
|
|
|
}, 5000);
|
2020-08-25 08:55:55 +02:00
|
|
|
});
|