1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 16:13:20 +01:00
invoiceninja/resources/js/app.js

26 lines
498 B
JavaScript
Raw Normal View History

/**
* Axios
*
* 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');
/**
* Remove flashing message div after 3 seconds.
*/
document.querySelectorAll('.disposable-alert').forEach((element) => {
setTimeout(() => {
element.remove();
}, 5000);
});