colored.js 597 B

1234567891011121314151617181920212223
  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 color = $.AdminBSB.options.colors[$(this).data('loadingColor')];
  9. var $loading = $(this).parents('.card').waitMe({
  10. effect: effect,
  11. text: 'Loading...',
  12. bg: 'rgba(255,255,255,0.90)',
  13. color: color
  14. });
  15. setTimeout(function () {
  16. //Loading hide
  17. $loading.waitMe('hide');
  18. }, 3200);
  19. });
  20. }