// 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 jquery
//= require jquery_ujs
//= require bootstrap-sprockets
//= require angular/angular
//= require angular-route
//= require angular-ui-router/release/angular-ui-router
//= require angular-spinners
//= require_tree .


//home page login for the drop down login option
;(function(){
  $('a[href="#login"]').on('click', function (){
    $('#login').toggleClass('active').siblings().removeClass('active');
  });
  $('a[href="#rel-pay"]').on('click', function (){
    $('#rel-pay').toggleClass('active');
  });
})();
// END of IIFE JS


;(function(){
  // $('a.header').on('click', function(){
  //   console.log('inside click')
  //   $(this).addClass('stay-blue').siblings().removeClass('stay-blue');
  // });
  console.log("inside js")

  $(document).ready(function () {
    var url = window.location

    var tabHeader = $('a.header').filter(function() {
      return this.href == url;
    })

    tabHeader.addClass('stay-blue').siblings().removeClass('stay-blue');
  })
})();


// $(document).ready(function() {
//   var menuToggle = $('#js-centered-navigation-mobile-menu').unbind();
//   $('#js-centered-navigation-menu').removeClass("show");
//
//   menuToggle.on('click', function(e) {
//     e.preventDefault();
//     $('#js-centered-navigation-menu').slideToggle(function(){
//       if($('#js-centered-navigation-menu').is(':hidden')) {
//         $('#js-centered-navigation-menu').removeAttr('style');
//       }
//     });
//   });
// });

// 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 jquery
//= require jquery_ujs
//= require bootstrap-sprockets
//= require angular/angular
//= require angular-route
//= require angular-ui-router/release/angular-ui-router
//= require angular-spinners
//= require_tree .


//home page login for the drop down login option
;(function(){
  $('a[href="#login"]').on('click', function (){
    $('#login').toggleClass('active').siblings().removeClass('active');
  });
  $('a[href="#rel-pay"]').on('click', function (){
    $('#rel-pay').toggleClass('active');
  });
})();
// END of IIFE JS


;(function(){
  // $('a.header').on('click', function(){
  //   console.log('inside click')
  //   $(this).addClass('stay-blue').siblings().removeClass('stay-blue');
  // });
  console.log("inside js")

  $(document).ready(function () {
    var url = window.location

    var tabHeader = $('a.header').filter(function() {
      return this.href == url;
    })

    tabHeader.addClass('stay-blue').siblings().removeClass('stay-blue');
  })
})();


// $(document).ready(function() {
//   var menuToggle = $('#js-centered-navigation-mobile-menu').unbind();
//   $('#js-centered-navigation-menu').removeClass("show");
//
//   menuToggle.on('click', function(e) {
//     e.preventDefault();
//     $('#js-centered-navigation-menu').slideToggle(function(){
//       if($('#js-centered-navigation-menu').is(':hidden')) {
//         $('#js-centered-navigation-menu').removeAttr('style');
//       }
//     });
//   });
// });

$( '.new-e-dropdown' ).on('click', function(event){
  $('.new-e-container').toggleClass('active');
});

Use jQuery to create tab for add-expense