106 lines
3.1 KiB
HTML
106 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>http-wificonfig</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<style>
|
|
body {
|
|
background-image: url('Aicast.jpg');
|
|
background-size: cover;
|
|
font-family: Arial, sans-serif;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
margin: 0;
|
|
}
|
|
.login-container {
|
|
background-color: rgba(255, 255, 255, 0.8);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
max-width: 300px;
|
|
width: 90%;
|
|
box-sizing: border-box;
|
|
}
|
|
.login-container h2 {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
font-size: 1.5em;
|
|
}
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-size: 1em;
|
|
}
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
box-sizing: border-box;
|
|
font-size: 1em;
|
|
}
|
|
.submit-btn {
|
|
width: 100%;
|
|
padding: 10px;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 1em;
|
|
}
|
|
.submit-btn:hover {
|
|
background-color: #45a049;
|
|
}
|
|
@media (max-width: 600px) {
|
|
.login-container {
|
|
padding: 15px;
|
|
}
|
|
.login-container h2 {
|
|
font-size: 1.2em;
|
|
margin-bottom: 15px;
|
|
}
|
|
.form-group label, .form-group input, .submit-btn {
|
|
font-size: 0.9em;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="login-container">
|
|
<h2>WIFI CONFIGURATION</h2>
|
|
<form action="result.html" method="post">
|
|
<div class="form-group">
|
|
<label for="ssid">SSID:</label>
|
|
<input type="text" id="ssid" name="ssid" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">Password:</label>
|
|
<input type="password" id="password" name="password" required>
|
|
</div>
|
|
<div class="show-password">
|
|
<input type="checkbox" id="showPassword"> Show Password
|
|
</div>
|
|
<button type="submit" class="submit-btn">Config</button>
|
|
</form>
|
|
</div>
|
|
<script>
|
|
const showPasswordCheckbox = document.getElementById('showPassword');
|
|
const passwordInput = document.getElementById('password');
|
|
|
|
showPasswordCheckbox.addEventListener('change', function() {
|
|
if (this.checked) {
|
|
passwordInput.type = 'text';
|
|
} else {
|
|
passwordInput.type = 'password';
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|