summaryrefslogtreecommitdiff
path: root/client/js/controllers/login.js
diff options
context:
space:
mode:
authorYoggzo <yogg@epsina.com>2016-02-04 23:54:00 +0100
committerYoggzo <yogg@epsina.com>2016-02-04 23:54:00 +0100
commitae8e5e7d1c1c4a15ab4d7bd5045b31556feb17de (patch)
tree90352502aa1346f011348e692507239aaa7db2d7 /client/js/controllers/login.js
parentab6e45d5e152518fd07c7bbce6f5eb2f42b30e07 (diff)
parentb39f5c1cd4631be3259b272e1f6cbe9b4915410b (diff)
Merge branch 'develop' into Evan
mise a jour de la branche
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);
+
+
+
+ });
+})