text: $.material.init();
  
  
  $(document).ready(function () {
  
  
      //stick in the fixed 100% height behind the navbar but don't wrap it
      $('#slide-nav.navbar-inverse').after($('<div class="inverse" id="navbar-height-col"></div>'));
  
      $('#slide-nav.navbar-default').after($('<div id="navbar-height-col"></div>'));
  
      // Enter your ids or classes
      var toggler = '.navbar-toggle';
      var pagewrapper = '#page-content';
      var navigationwrapper = '.navbar-header';
      var menuwidth = '100%'; // the menu inside the slide menu itself
      var slidewidth = '80%';
      var menuneg = '-100%';
      var slideneg = '-80%';
  
  
      $("#slide-nav").on("click", toggler, function (e) {
  
          var selected = $(this).hasClass('slide-active');
  
          $('#slidemenu').stop().animate({
              left: selected ? menuneg : '0px'
          });
  
          $('#navbar-height-col').stop().animate({
              left: selected ? slideneg : '0px'
          });
  
          $(pagewrapper).stop().animate({
              left: selected ? '0px' : slidewidth
          });
  
          $(navigationwrapper).stop().animate({
              left: selected ? '0px' : slidewidth
          });
  
  
          $(this).toggleClass('slide-active', !selected);
          $('#slidemenu').toggleClass('slide-active');
  
  
          $('#page-content, .navbar, body, .navbar-header').toggleClass('slide-active');
  
  
      });
  
  
      var selected = '#slidemenu, #page-content, body, .navbar, .navbar-header';
  
  
      $(window).on("resize", function () {
  
          if ($(window).width() > 767 && $('.navbar-toggle').is(':hidden')) {
              $(selected).removeClass('slide-active');
          }
  
  
      });
  
      $("#amount").keyup(function (e) {
  
          var perc = parseInt( $('#amount_persentage').text() );
          var amount = parseInt( $(this).val() );
  
          if(amount) {
              $("#amount_result").text(amount + perc * amount / 100.0);
              $("#amount_month").text(Math.round((amount * 100 + perc * amount ) / 12) / 100);
          }
      });
  
  
  });