mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
10b6317777
* Update Changelog for Alpha.10 * Address lgtm findings * Correct some texts * Improve Password handling * search for turbojpeg only if MF is enabled * Chnagelog updates * Fix LED layout overwrite for previously save LEDs * LED Device- Fix default selection for selected network devices * Sreengrabber - Select default fps * Update database migration steps Co-authored-by: Markus <16664240+Paulchen-Panther@users.noreply.github.com>
41 lines
1.5 KiB
HTML
41 lines
1.5 KiB
HTML
<div class="container" style="margin:20px auto;max-width:500px;">
|
|
<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">
|
|
<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"/>
|
|
<input name="show_pw" type="checkbox" id="show_pw" /><label for="show_pw">Show/Hide Password</label>
|
|
</div>
|
|
<div class="form-group">
|
|
<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>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</center>
|
|
</div>
|
|
|
|
<script>
|
|
removeOverlay();
|
|
|
|
$('#password').off().on('input', function (e) {
|
|
if (e.currentTarget.value.length >= 8) {
|
|
$('#btn_password').prop('disabled', false);
|
|
}
|
|
else {
|
|
$('#btn_password').prop('disabled', true);
|
|
}
|
|
});
|
|
|
|
$('#show_pw').off().on('change', function (e) {
|
|
(e.currentTarget.checked ? $('#password').attr('type', 'text') : $('#password').attr('type', 'password'))
|
|
});
|
|
</script>
|