-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
82 lines (69 loc) · 3.17 KB
/
login.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>CycleON</title>
<!-- Compiled and minified CSS -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js">
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link rel="stylesheet" href="assets/css/app.css" type="text/css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="assets/css/app.css" type="text/css">
</head>
<body ng-app="AccountController" style="background-color: #089ad6;">
<!--Main Content-->
<div class="card hoverable" style="margin-left:45px;width:80%;position: absolute;top: 50%;transform: translateY(-50%);">
<div class="card-image">
<img style="width:60%;margin-left:auto;margin-right:auto;margin-top:5px;" src="assets/img/COLlogin.png">
<br>
</div>
<div class="card-content">
<p style="color:#6f6f6f;text-align:left;font-size:12px;">Please Login </p>
<div class="input-field col s12 m6">
<input placeholder="Username" id="username" type="text" class="validate">
</div>
<div class="input-field col s12 m6">
<input placeholder="Password" id="password" type="password" class="validate">
</div>
<div id="xxx" style="color:red;"></div>
<p style="color:#6f6f6f;text-align:right;font-size:12px;"><u> Forgot Password?</u> </p>
</div>
<div class="card-action center-align">
<button class="loginBtn btn waves-effect waves-light green" name="action" type="submit">Login<i class="material-icons right">done</i></button>
</div>
</div>
<!-- Compiled and minified JavaScript -->
<script src="assets/js/app.js">
</script>
<script src="assets/js/Controllers/RewardsController.js">
</script>
<script src="assets/js/Controllers/AccountController.js">
</script>
<script src="assets/js/Controllers/NavController.js">
</script>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
<script>
$('.loginBtn').on('click', function () {
if ($('#password').val() === "password") {
document.location = ('/index.html');
} else {
$('#xxx').html("Error: Username or Password Incorrect");
}
});
function createCookie(name, value, days) {
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString();
} else var expires = "";
document.cookie = name + "=" + value + expires + "; path=/";
}
</script>
</body>
</html>