Sha256: f35c9b2bf4f5d6f48d26048a4de4c35786fc45211322c6a829007412a17de839

Contents?: true

Size: 653 Bytes

Versions: 7

Compression:

Stored size: 653 Bytes

Contents

//= require rails-ujs
//= require jquery3
//= require jquery_ujs
//= require semantic-ui
//= require activestorage
<%- unless options[:skip_javascript] -%>
//= require turbolinks
<%- end -%>
//= require_tree .

<%- if options[:skip_javascript] -%>
$(document).ready(function() {
<%- else -%>
$(document).on("turbolinks:load",function(){
<%- end -%>
  // Allow the user to close the flash messages
  $('.message .close')
    .on('click', function(){
      $(this).closest('.message').transition('fade');
  });

  // Automatically close flash messages after 3 seconds
  window.setTimeout(function() {
    $('.message').transition('fade');
  }, 3000);
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kowl-0.0.7 lib/kowl/templates/app/assets/javascripts/semantic.js.tt
kowl-0.0.6 lib/kowl/templates/app/assets/javascripts/semantic.js.tt
kowl-0.0.5 lib/kowl/templates/app/assets/javascripts/semantic.js.tt
kowl-0.0.4 lib/kowl/templates/app/assets/javascripts/semantic.js.tt
kowl-0.0.3 lib/kowl/templates/app/assets/javascripts/semantic.js.tt
kowl-0.0.2 lib/kowl/templates/app/assets/javascripts/semantic.js.tt
kowl-0.0.1 lib/kowl/templates/app/assets/javascripts/semantic.js.tt