24.09.2026

This commit is contained in:
2026-09-24 16:39:31 +02:00
parent 50c6868dfe
commit 72df5857cb
7 changed files with 274 additions and 47 deletions
+25 -1
View File
@@ -10,7 +10,7 @@ body {
border-radius: 8px;
background-color: #f9f9f9;
}
input[type="text"], input[type="password"] {
input[type="text"] {
width: 100%;
padding: 10px;
margin: 8px 0;
@@ -19,6 +19,8 @@ input[type="text"], input[type="password"] {
border-radius: 4px;
box-sizing: border-box;
}
button {
width: 100%;
padding: 10px;
@@ -31,4 +33,26 @@ button {
}
button:hover {
background-color: #45a049;
}
input[type="password"].passField {
width: calc(100% - 40px);
padding: 10px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button.icon {
width: 30px;
padding: 9px;
margin: 0px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
+23
View File
@@ -0,0 +1,23 @@
function togglePassword(){
var passwordField = document.getElementById("togglePasswordBtn");
if(passwordField.type === 'password'){
passwordField.type = 'text';
}
else if(passwordField.type === 'text'){
passwordField.type = 'password';
}
}
document.getElementById('togglePasswordBtn2').addEventListener('click', function() {
var passwordField2 = document.getElementById("togglePasswordBtn");
if(passwordField2.type === 'password'){
passwordField2.type = 'text';
}
else if(passwordField2.type === 'text'){
passwordField2.type = 'password';
}
});