65 lines
1.7 KiB
HTML
65 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-bs-theme="dark">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
|
|
<title>Toggle Multiple Forms Password Visibility</title>
|
|
</head>
|
|
<body>
|
|
<h1>Toggle Multiple Forms Password Visibility</h1>
|
|
|
|
<h2>Change Username</h2>
|
|
<p>Enter your username and password to change your username.</p>
|
|
<form>
|
|
<div>
|
|
<label for="username">Username</label>
|
|
<input type="text" name="username" id="username">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="password">Password</label>
|
|
<input type="password" class="password" name="password" id="password">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="show-password">
|
|
<input type="checkbox" name="show-password">
|
|
Show password
|
|
</label>
|
|
</div>
|
|
|
|
<p>
|
|
<button type="submit">Change Username</button>
|
|
</p>
|
|
</form>
|
|
|
|
<h2>Change Password</h2>
|
|
<p>Enter your current password and new password below.</p>
|
|
|
|
<form>
|
|
<div>
|
|
<label for="current-password">Current Password</label>
|
|
<input type="password" class="password" name="current-password" id="current-password">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="new-password">New Password</label>
|
|
<input type="password" class="password" name="new-password" id="new-password">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="show-passwords">
|
|
<input type="checkbox" name="show-passwords" id="show-passwords">
|
|
Show passwords
|
|
</label>
|
|
</div>
|
|
|
|
<p>
|
|
<button type="submit">Change Passwords</button>
|
|
</p>
|
|
</form>
|
|
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|