2021-10-02 20:00:21 -07:00
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>Attendance 點名系統 (β)</title>
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet"
|
|
|
|
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
|
|
|
|
<link rel="stylesheet" href="/static/allpages.css">
|
|
|
|
<link rel="stylesheet" href="/static/login.css">
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico" />
|
|
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-H6D61RSBHR"></script>
|
|
|
|
<script>
|
|
|
|
window.dataLayer = window.dataLayer || [];
|
|
|
|
function gtag() { dataLayer.push(arguments); }
|
|
|
|
gtag('js', new Date());
|
|
|
|
|
|
|
|
gtag('config', 'G-H6D61RSBHR');
|
|
|
|
</script>
|
2021-10-03 07:33:53 -07:00
|
|
|
<script src="https://kit.fontawesome.com/52a3d6c810.js" crossorigin="anonymous"></script>
|
2021-10-02 20:00:21 -07:00
|
|
|
<!-- <script src="https://www.google.com/recaptcha/api.js"></script> -->
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="showTime"><span id="showTime"></span></div>
|
|
|
|
<div class="container">
|
|
|
|
<h1 class="margin-top margin-bottom">Attendance 點名系統 (β) | Reset Password 忘記密碼</h1>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col"></div>
|
|
|
|
<div class="col-md-5">
|
|
|
|
<form action="/resetPassword" id="password_form" method="post">
|
|
|
|
<div class="form-group row" style="margin-bottom: 10px;">
|
2021-10-03 07:33:53 -07:00
|
|
|
<label for="password">New Password 新密碼:</label><br>
|
|
|
|
<div class="input-group mb-3 hasSmall">
|
|
|
|
<input type="password" class="form-control" id="password" name="password"
|
|
|
|
aria-describedby="passwordHelp" required>
|
|
|
|
<div class="input-group-append">
|
|
|
|
<span class="input-group-text toggle-password" onclick="password_show_hide();">
|
|
|
|
<i class="fas fa-eye" id="show_eye"></i>
|
|
|
|
<i class="fas fa-eye-slash d-none" id="hide_eye"></i>
|
|
|
|
</span>
|
|
|
|
</div>
|
2021-10-02 20:00:21 -07:00
|
|
|
</div>
|
2021-10-03 07:33:53 -07:00
|
|
|
<small id="passwordHelp" class="form-text text-muted">6 characters
|
|
|
|
minimum.</small>
|
2021-10-02 20:00:21 -07:00
|
|
|
</div>
|
|
|
|
<button class="btn btn-warning btn-block g-recaptcha" onclick="loadingAnimation()">Confirm
|
|
|
|
確認</button>
|
|
|
|
</form>
|
|
|
|
{% with messages = get_flashed_messages() %}
|
|
|
|
{% if messages %}
|
|
|
|
<div class="alert alert-danger" role="alert">
|
|
|
|
{% for message in messages %}
|
|
|
|
{% autoescape false %}{{message}}{% endautoescape %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
</div>
|
|
|
|
<div class="col"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="loading" style="text-align:center; width:100%; display:none;"><img src="/static/loading.gif" alt=""
|
|
|
|
style="height:100%;" />
|
|
|
|
</div>
|
|
|
|
{% include 'footer.html' %}
|
|
|
|
<script type=" text/javascript" src="/static/jquery.min.js"></script>
|
|
|
|
<script>
|
|
|
|
function loadingAnimation() {
|
|
|
|
$('#password_form').submit();
|
|
|
|
$('.container').hide();
|
|
|
|
$('#loading').show();
|
|
|
|
}
|
2021-10-03 07:33:53 -07:00
|
|
|
function password_show_hide() {
|
|
|
|
var x = document.getElementById("password");
|
|
|
|
var show_eye = document.getElementById("show_eye");
|
|
|
|
var hide_eye = document.getElementById("hide_eye");
|
|
|
|
hide_eye.classList.remove("d-none");
|
|
|
|
if (x.type === "password") {
|
|
|
|
x.type = "text";
|
|
|
|
show_eye.style.display = "none";
|
|
|
|
hide_eye.style.display = "block";
|
|
|
|
} else {
|
|
|
|
x.type = "password";
|
|
|
|
show_eye.style.display = "block";
|
|
|
|
hide_eye.style.display = "none";
|
|
|
|
}
|
|
|
|
}
|
2021-10-02 20:00:21 -07:00
|
|
|
</script>
|
|
|
|
<script src="/static/time.js"></script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|