-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
178 lines (145 loc) · 5.62 KB
/
Copy pathindex.html
File metadata and controls
178 lines (145 loc) · 5.62 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Password Strength Checker</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link rel="stylesheet" href="style.css">
<style>
body {
background:#b5c1d2; /* Dark green gradient for a security theme */
color: #33235c;
padding-top: 50px;
}
.container {
max-width: 500px;
background: #889bb7; /* Greenish background for security feel */
padding: 30px;
border-radius: 10px;
box-shadow: 0px 0px 15px #9882d0; /* Green glow for the security theme */
}
.container-anime{
position: relative;
width: 100vw;
height: 100vh;
overflow: hidden;
}
/* Uçak stili */
/* Uçak stili */
/* Uçak stili */
.plane {
position: absolute;
width: 500px;
height: 300px;
top: 13%;
background: url('images/p.webp') no-repeat center;
background-size: contain;
}
/* Lent stili */
.ribbon {
position: absolute;
top: 35%; /* Lentin dikey konumu */
left: calc(100px + 500px - 10px); /* Lentin uçağa daha yakın olması için değeri küçültüldü */
color: whitesmoke;
display: flex;
align-items: center;
justify-content: center;
font-weight:bold;
font-size: 41px;
text-align:right;
font-family:cursive;
}
h1 {
color: #33235c;
font-size: 2rem;
font-weight: bold;
text-align: center;
}
.form-control {
background-color: rgba(255, 255, 255, 0.8); /* Slight transparency for input */
border: none;
color: #000;
}
.btn-primary {
background-color:#33235c; /* Strong green button for submission */
border-color: #676798;
border-radius: 0.25rem;
}
.input-group-text {
cursor: pointer; /* Change cursor to pointer on hover */
}
</style>
</head>
<body>
<div class="container">
<h1 class="text-center mb-4">Password Strength Checker</h1>
<form id="passwordForm" action="/predict" method="post">
<div class="form-group">
<label for="password">Password:</label>
<div class="input-group">
<input type="password" id="password" name="password" class="form-control" placeholder="Enter your password" required>
<div class="input-group-append">
<span class="input-group-text" id="togglePassword">
<i class="fas fa-eye" id="eyeIcon"></i>
</span>
</div>
</div>
</div>
<button type="submit" class="btn btn-primary btn-block">Check Strength</button>
</form>
<div id="feedback" class="mt-3"></div>
</div>
<div class="container-anime">
<div class="ribbon" id="ribbon">
<p id="teamName"></p>
</div>
<div class="plane" id="plane"></div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
const togglePassword = document.querySelector('#togglePassword');
const passwordInput = document.querySelector('#password');
const eyeIcon = document.querySelector('#eyeIcon');
togglePassword.addEventListener('click', function () {
// Toggle the type attribute
const type = passwordInput.getAttribute('type') === 'password' ? 'text' : 'password';
passwordInput.setAttribute('type', type);
// Toggle the eye slash icon
eyeIcon.classList.toggle('fa-eye-slash');
});
// Uçak ve lent elemanlarını seçiyoruz
const plane = document.getElementById("plane");
const ribbon = document.getElementById("ribbon");
const teamName = document.getElementById("teamName");
// Takım üyelerinin isimleri
const teamMembers = ['Created by', "Mammad", "Sevinj", "Murad"];
let memberIndex = 0;
// Uçağın başlangıç pozisyonu
let position = -250;
// İsim değiştirme işlevi
function changeName() {
teamName.innerText = teamMembers[memberIndex];
memberIndex = (memberIndex + 1) % teamMembers.length; // Sıradaki isme geç
}
// Uçak ve lent animasyonu
function animate() {
position += 2; // Uçağın hareket hızı
// Lent ve uçağı aynı pozisyona taşırız
ribbon.style.left = position +"px";
plane.style.left = position + 120 + "px"; // Uçak lentin arkasında kalır
// Uçak ekranın sonuna geldiğinde başa döner
if (position > window.innerWidth) {
position = -250;
}
requestAnimationFrame(animate); // Animasyonu tekrarlar
}
// İsim değiştirici döngü
setInterval(changeName, 2000); // Her 2 saniyede bir isim değişir
animate(); // Animasyonu başlatır
</script>
</body>
</html>