1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 01:11:34 +02: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);
});