text: /**
   * My Expenses v1.0.0
   * https://github.com/diegoteliz/my-expenses#readme
   * Copyright (c) 2016 - Diego Teliz <aloha@diegoteliz.com>
   * MIT License
   */
  jQuery(document).ready(function(e){"use strict";function n(){m.is(".opened")&&l(),f.addClass("opened"),u.addClass("active"),v.addClass("active")}function o(){f.removeClass("opened"),u.removeClass("active"),v.removeClass("active")}function i(){f.is(".opened")?o():n()}function t(){f.is(".opened")&&o(),m.addClass("opened"),v.addClass("invisible")}function l(){m.removeClass("opened"),v.removeClass("invisible")}function a(){m.is(".opened")?l():t()}function s(){f.is(".opened")&&o(),m.is(".opened")&&l()}function c(n){return e(n).length>0}var d=e(window),r=e("body"),u=e(".nav-btn"),g=e(".options-menu-btn"),p=e(".main-header"),f=e(".main-nav"),m=e(".options-menu"),v=e(".overlay"),h=(e(".nav-item"),e(".nav-link")),w=d.height(),C=d.width(),k=d.scrollTop(),b={phoneSmall:320,phoneMedium:480,phoneLarge:640,tablet:768,desktopSmall:1024};u.click(function(e){e.preventDefault(),i()}),h.click(function(n){n.preventDefault(),h.removeClass("active"),e(this).addClass("active")}),g.click(function(e){e.preventDefault(),a()}),v.click(function(e){s()}),d.keydown(function(e){switch(e.which){case 27:s()}}),d.on("scroll",function(e){if(C<=b.desktopSmall){var n=d.scrollTop();n>k?k>=50&&p.addClass("collapsed"):p.is(".collapsed")&&p.removeClass("collapsed"),k=n}}),d.on("resize",function(e){w=d.height(),C=d.width()});var I=e(".user-logout-btn"),S=e(".profile-image"),y=e(".profile-name"),D=e(".profile-email");window.renderButton=function(){gapi.signin2.render("google-login-btn",{scope:"https://www.googleapis.com/auth/spreadsheets",width:240,height:50,longtitle:!0,theme:"dark",onsuccess:onSignIn,onfailure:onSignInFailure})},window.onSignIn=function(e){r.removeClass("logged-out").addClass("logged-in");var n=e.getBasicProfile(),o=n.getId(),i=n.getName(),t=n.getImageUrl(),l=n.getEmail();console.log("ID: "+o),console.log("Full Name: "+i),console.log("Image URL: "+t),console.log("Email: "+l),S.attr("src",t),y.text(i),D.text(l)},window.onSignInFailure=function(e){console.log("Login error: "+e)},window.signOut=function(){var e=gapi.auth2.getAuthInstance();e.signOut().then(function(){r.removeClass("logged-in").addClass("logged-out")})},I.click(function(e){e.preventDefault(),signOut(),o()}),c(".dashboard")&&console.log("homepage")});