Sha256: 129dd76724ec3b8d7c56b2ff9d42b248406acefbf76cb9e9d2e8f7f242b9ea9a

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 Bytes

Contents

;(function ($) {
  function $loader() {
    if ($('#loader').length) { return $('#loader'); }

    var $loader = $("<div id='loader'>Loading...</div>");
    $("#top").append($loader);
    return $loader;
  }

  $.loading = {
    start: function () {
      $('body').addClass('loading');
      $loader().show();
    },

    finish: function () {
      $('body').removeClass('loading');
      $loader().fadeOut('fast');
      $('body').show();
      $.unscreen();
    }
  };
})(jQuery);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aura-0.0.1.pre10 public/js/lib.loading.js