2019-09-17 21:33:46 +02:00
|
|
|
<div class="container" style="margin:20px auto;max-width:500px;">
|
2021-05-01 17:00:44 +02:00
|
|
|
<center>
|
|
|
|
<div>
|
|
|
|
<div class="panel panel-danger">
|
|
|
|
<div class="panel-heading panel-system">
|
|
|
|
<h3 class="panel-title">Login</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<form>
|
|
|
|
<div class="form-group">
|
2021-07-17 20:55:16 +02:00
|
|
|
<input type="name="username" class="form-control" type="text" id="username" value="Hyperion" disabled/></br>
|
|
|
|
<input name="password" class="form-control" type="password" id="password" placeholder="Password" autocomplete="off"/>
|
2021-05-01 17:00:44 +02:00
|
|
|
<input name="show_pw" type="checkbox" id="show_pw" /><label for="show_pw">Show/Hide Password</label>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2021-07-17 20:55:16 +02:00
|
|
|
<button type="submit" class="btn btn-sm btn-success" id="btn_password" onclick="requestAuthorization(document.getElementById('password').value); return false;"><i class="fa fa-fw fa-unlock"></i>Login</button>
|
2021-05-01 17:00:44 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</center>
|
2019-09-17 21:33:46 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
2021-05-01 17:00:44 +02:00
|
|
|
removeOverlay();
|
2019-09-17 21:33:46 +02:00
|
|
|
|
2021-05-01 17:00:44 +02:00
|
|
|
$('#password').off().on('input', function (e) {
|
2021-07-17 20:55:16 +02:00
|
|
|
if (e.currentTarget.value.length >= 8) {
|
|
|
|
$('#btn_password').prop('disabled', false);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$('#btn_password').prop('disabled', true);
|
|
|
|
}
|
2021-05-01 17:00:44 +02:00
|
|
|
});
|
2019-09-17 21:33:46 +02:00
|
|
|
|
2021-05-01 17:00:44 +02:00
|
|
|
$('#show_pw').off().on('change', function (e) {
|
|
|
|
(e.currentTarget.checked ? $('#password').attr('type', 'text') : $('#password').attr('type', 'password'))
|
|
|
|
});
|
2019-09-17 21:33:46 +02:00
|
|
|
</script>
|