-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (34 loc) · 1.23 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
<!DOCTYPE html>
<html>
<head>
<meta name="google-site-verification" content="cGi9z9bNwPcvrp3xpo5056gVxRtJRRAxL3dvxfxoLYc" />
<title>kkk2z-blog</title>
<script type="text/javascript">
function validateLogin() {
// 入力されたユーザ名とパスワードを取得
var username = document.getElementById("username").value;
var password = document.getElementById("password").value;
// ユーザ名とパスワードのチェック
if (username === "kkk2z" && password === "030-18-007") {
// ログイン成功時の処理
window.location.href = "main.html";
} else {
// ログイン失敗時の処理
alert("Invalid username or password. Please try again.");
}
}
</script>
</head>
<body>
<h1>ども</h1>
<h3>どもども</h3>
<h1>Login</h1>
<form>
<label for="username">Username:</label>
<input type="text" id="username" required><br><br>
<label for="password">Password:</label>
<input type="password" id="password" required><br><br>
<input type="button" value="Login" onclick="validateLogin()">
</form>
</body>
</html>