-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (79 loc) · 2.02 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<html>
<head>
<title>Login</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript">
function cekData()
{
// Cek isi kotak teks username
if (login.admin_nama.value == "")
{
alert("Username Harus Di Isi");
login.admin_nama.focus();
return false;
}
// Cek isi kotak teks password
if (login.admin_password.value == "")
{
alert("Password Harus Di Isi");
login.admin_password.focus();
return false;
}
// Cek isi kotak teks username
if (login.admin_nama.value != "HDYGF")
{
alert("Username Salah");
login.admin_nama.focus();
return false;
}
// Cek isi kotak teks password
if (login.admin_password.value != "HDYGF")
{
alert("Password Salah");
login.admin_password.focus();
return false;
}
else return true;
}
</script>
</head>
<body>
<center>
<div id="utama">
<div id="header">
</div>
<div>
<br>
<center><p><font color="white" face="Hobo Std">Welcome To My Website :)</font></p></center>
<center><p><font color="white" face="Hobo Std">Silahkan Login terlebih Dahulu</font></p></center>
</br>
<form id="login" method="post" action="Home.html" onsubmit="return cekData();">
<table width="100" id="table" align=center>
<tr>
<td><font color="white">E-mail</td>
<td> : </font></td>
<td><input type="text" name="admin_nama" id="admin_nama" placeholder="Masukan username" /></td>
</tr>
<tr>
<td><font color="white">Password</td>
<td> : </font></td>
<td><input type="password" name="admin_password" id="admin_password" placeholder="Masukan password" /></td>
</tr>
<tr>
<td><font color="white">Silahkan</td>
<td> : </font></td>
<td><input type="submit" name="submit" id="submit" value="Login" /></td>
</tr>
</table>
</form>
<br>
</div>
</div>
<div style="margin-top:20px;clear:both"><br><br></div>
</div>
<div class="footer">
<marquee behavior="alternate">Created by Hadeyega.com</marquee>
</div>
</center>
</body>
</html>