pravina-prep
Version:
Pravina Test Prep App
30 lines (28 loc) • 1.02 kB
JavaScript
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require bootstrap
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .
$(document).ready(function() {
$('.btn-submit').mouseenter(function() {
$('.btn-submit').fadeTo('fast', 1);
});
$('.btn-submit').mouseleave(function() {
$('.btn-submit').fadeTo('fast', 0.5);
});
$(".navbar-nav li a").click(function(event) {
$(".navbar-collapse").collapse('hide');
});
});