Sha256: 58ffd54dd8ab360166901c06daf1caa5f9d89a519f27cd4bb5c2519f4587e365

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

$(document).on('turbolinks:request-start', function() {
  $('#main').removeClass('main-no-blur').addClass('main-blur');
  $('#footer').removeClass('main-no-blur').addClass('main-blur');
});

$(document).on('turbolinks:load', function() {
  var main = $('#main');
  var footer = $('#footer');

  setTimeout(function() {
    main.removeClass('main-blur').addClass('main-no-blur');
    footer.removeClass('main-blur').addClass('main-no-blur');
  }, 300);
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tmatt_cms-0.1.9 lib/generators/tmatt_cms/templates/js/utils/turbolinks.js
tmatt_cms-0.1.8 lib/generators/tmatt_cms/templates/js/utils/turbolinks.js