-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspecial.html
More file actions
48 lines (46 loc) · 1.87 KB
/
special.html
File metadata and controls
48 lines (46 loc) · 1.87 KB
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Popup Login Form Design | CodingNepal</title>
<link rel="stylesheet" href="special.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>
</head>
<body>
<div class="center">
<input type="checkbox" id="show">
<label for="show" class="show-btn"> Dikkat: Sadece Savcılar Girebilir!
</label>
<div class="container">
<label for="show" class="close-btn fas fa-times" title="close"></label>
<div class="text">
Giriş Formu
</div>
<form id="loginForm">
<div class="data">
<label>Şifre:</label>
<input type="password" id="password" required>
</div>
<div class="forgot-pass">
<a href="#">Şifreni unuttuysan 39 euro boşa gitti...</a>
</div>
<div class="btn">
<div class="inner"></div>
<button type="submit">Hadi Girelim.</button>
</div>
</form>
</div>
</div>
<script>
document.getElementById("loginForm").addEventListener("submit", function(event){
event.preventDefault(); // Sayfanın yenilenmesini engellemek için form gönderme işlemini durduruyoruz.
var password = document.getElementById("password").value;
if(password === "Emrem2802"){
window.location.href = "./mektup.html"; // Doğru şifre ise mektup.html sayfasına yönlendirme yapılıyor.
} else {
alert("Maalesef yanlış oldu sayın savcım. İyi düşün!"); // Yanlış şifre girildiğinde uyarı veriliyor.
}
});
</script>
</body>
</html>