Untitled
unknown
plain_text
2 years ago
3.0 kB
8
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Webpage</title>
<link rel="icon" type="image/png" href="images/">
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Montserrat:wght@500&family=Sen&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
</head>
<body>
<div class="input">
<div class="username_container">
<label for="username" class="labels"></label>
<input type="text" id="username" placeholder="John Dow" minlength="4" maxlength="15">
<i class="fa-regular fa-id-card" style="color: #007eec;"></i>
</div>
<label for="email" class="labels"></label>
<input type="email" id="email" required placeholder="email@gmail.com">
<div class="password_container">
<label for="password_main" class="labels"></label>
<input type="password" id="password" placeholder="password" minlength="4" maxlength="15">
<i class="fa-solid fa-hurricane" style="color:red;" id="icon1"></i>
</div>
<label for="password_repeat" class="labels"></label>
<input type="password" id="password_repeat" placeholder="password repeat" minlength="4" maxlength="15" >
<div class="p">
<a href="#"><p>Forgot your password?</p></a>
<a href="#"><p>Sign In</p></a>
</div>
</div>
</div>
<img src="200w.gif" alt="" class="headgif" width="70" height="70">
<script>
let icon1 = document.getElementById("icon1");
let password = document.getElementById("password");
icon1.onclick = function () {
if (password.type === "password") {
password.type = "text";
icon1.style.color = "#6d1262"; // Здесь устанавливается цвет при видимом пароле
} else {
password.type = "password";
icon1.style.color = "black"; // Здесь устанавливается цвет при скрытом пароле
}
}
</script>
</body>
</html>Editor is loading...