summaryrefslogtreecommitdiff
path: root/client/js/controllers/login.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/js/controllers/login.js')
-rw-r--r--client/js/controllers/login.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/client/js/controllers/login.js b/client/js/controllers/login.js
new file mode 100644
index 0000000..2f74414
--- /dev/null
+++ b/client/js/controllers/login.js
@@ -0,0 +1,39 @@
+/*
+ * 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);
+
+
+
+ });
+})