/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Represents a book.
 * @constructor
 */
mainApp.controller('loginCtrl', function ($scope,$interval,$sce)
{
     // Define default states
     $('#loginModal').modal({backdrop: 'static', keyboard: false});
     $('#loadingLoginButton').hide();
     $('#failedToLoginAlert').hide();
     
     
     $('#loginButton').click(function(){
        $('#loginButton').hide();
        $('#loadingLoginButton').show();
        $('#failedToLoginAlert').hide();

        

        $interval(
          function() 
          {
                           $('#failedToLoginAlert').show();

            $('#loginButton').show();
        $('#loadingLoginButton').hide();
        
          }, 2000,1);
        

        
     });
})