build/loading-bar.js
function _set(n) {
        if (!started) {
          return;
        }
        var pct = (n * 100) + '%';
        loadingBar.css('width', pct);
        status = n;

        // increment loadingbar to give the illusion that there is always
        // progress but make sure to cancel the previous timeouts so we don't
        // have multiple incs running at the same time.
        if (autoIncrement) {
          $timeout.cancel(incTimeout);
          incTimeout = $timeout(function() {
            _inc();
          }, 250);
        }
      }
function _set(n) {
        if (!started) {
          return;
        }
        var pct = (n * 100) + '%';
        loadingBar.css('width', pct);
        status = n;

        // increment loadingbar to give the illusion that there is always
        // progress but make sure to cancel the previous timeouts so we don't
        // have multiple incs running at the same time.
        if (autoIncrement) {
          $timeout.cancel(incTimeout);
          incTimeout = $timeout(function() {
            _inc();
          }, 250);
        }
      }
function _set ( n ) { if ( ! started ) { return ; } var pct = ( n * 100 ) + '%' ; loadingBar . css ( 'width' , pct ) ; status = n ; // increment loadingbar to give the illusion that there is always // progress but make sure to cancel the previous timeouts so we don't // have multiple incs running at the same time. if ( autoIncrement ) { $timeout . cancel ( incTimeout ) ; incTimeout = $timeout ( function ( ) { _inc ( ) ; } , 250 ) ; } }
Set the loading bar's width to a certain percent.

@param n any value between 0 and 1
Set the loading bar s width to a certain percent .