-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (61 loc) · 2.54 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<!--Import materialize.css-->
<link rel="stylesheet" href="materialize/css/materialize.min.css">
<link rel="stylesheet" href="css/custom.css">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<!--Import jQuery before materialize.js-->
<script src="js/jquery-2.1.1.min.js"></script>
<script src="materialize/js/materialize.min.js"></script>
</head>
<body class="login">
<form action="dashboard.html">
<div class="row">
<div class="col s8 offset-s2 center-align">
<img src="img/logo_ebaki_login.svg">
</div>
</div>
<div class="row">
<div class="input-field col s8 offset-s2">
<i class="mdi-action-account-box prefix"></i>
<input id="user_id" type="text">
<label for="user_id">ID Pengguna</label>
</div>
</div>
<div class="row">
<div class="input-field col s8 offset-s2">
<i class="mdi-action-lock prefix"></i>
<input id="user_password" type="text">
<label for="user_password">Kata Laluan</label>
</div>
</div>
<div class="row">
<div class="col s8 offset-s2">
<a class="login-button btn btn-block waves-effect waves-light" onclick="checkLogin()">Hantar</a>
</div>
</div>
<div class="row">
<div class="col s8 offset-s2 center-align footer">
<a href="http://apps.mara.gov.my/ebakiv2/_lupakatalaluanpengguna.aspx">Lupa Kata Laluan</a> | <a href="http://apps.mara.gov.my/ebakiv2/_daftarPengguna.aspx">Pengguna Baru</a>
</div>
</div>
</form>
<div id="modal_error" class="modal">
<div class="modal-content">
<font color="black">Kombinasi id pengguna dan kata laluan salah</font>
</div>
</div>
<script>
function checkLogin() {
if($('#user_id').val()=="" || $('#user_password').val()=="") {
$('#modal_error').openModal();
}
else {
$('form').submit();
}
}
</script>
</body>
</html>