Sha256: 48db579be892bfbc4b0296abb0aa1670beabf2d43e1b0bd407d1fcc8eec8a52b

Contents?: true

Size: 299 Bytes

Versions: 2

Compression:

Stored size: 299 Bytes

Contents

$(function() {
  $(document).on('page:fetch',   function() { NProgress.start();  });
  $(document).on('page:receive', function() { NProgress.set(0.7); });
  $(document).on('page:change',  function() { NProgress.done();   });
  $(document).on('page:restore', function() { NProgress.remove(); });
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nprogress-rails-0.1.6.6 app/assets/javascripts/nprogress-turbolinks.js
nprogress-rails-0.1.6.5 app/assets/javascripts/nprogress-turbolinks.js