basic.js 520 B

123456789101112131415161718192021
  1. $(function () {
  2. initLoading();
  3. });
  4. //Init Loading
  5. function initLoading() {
  6. $('[data-toggle="cardloading"]').on('click', function () {
  7. var effect = $(this).data('loadingEffect');
  8. var $loading = $(this).parents('.card').waitMe({
  9. effect: effect,
  10. text: 'Loading...',
  11. bg: 'rgba(255,255,255,0.90)',
  12. color: '#555'
  13. });
  14. setTimeout(function () {
  15. //Loading hide
  16. $loading.waitMe('hide');
  17. }, 3200);
  18. });
  19. }