reset_pwd1.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!-- 宣告我們要套用模板 -->
  2. {% extends "sign_in_base.html" %}
  3. {% block script %}
  4. <script src="../static/js/reset_pwd1.js"></script>
  5. {% endblock %}
  6. {% block style %}
  7. <style>
  8. .form-signin {
  9. max-width: 330px;
  10. padding: 15px;
  11. }
  12. .form-signin .form-floating:focus-within {
  13. z-index: 2;
  14. }
  15. .form-signin input[type="email"] {
  16. margin-bottom: -1px;
  17. border-bottom-right-radius: 0;
  18. border-bottom-left-radius: 0;
  19. }
  20. .form-signin input[type="password"] {
  21. margin-bottom: 10px;
  22. border-top-left-radius: 0;
  23. border-top-right-radius: 0;
  24. }
  25. </style>
  26. {% endblock %}
  27. {% block main %}
  28. <form method="post" action="/reset_password">
  29. <img class="mb-4" src="../static/img/ALMIGHTY_RAY.jpg" alt="" >
  30. <img class="mb-4" src="../static/img/SKYAI.jpg" alt="" >
  31. <h1 class="h3 mb-3 fw-normal">Reset password</h1>
  32. <h1 class="h5 mb-5 fw-normal">write your email address</h1>
  33. <div class="form-floating">
  34. <input type="email" class="form-control" id="email" name="email" placeholder="信箱/Email" oninput="setCustomValidity('');" onchange="$.get('/check_email', 'email='+document.getElementById('email').value,function(resText){
  35. if(resText.pass==''){
  36. setCustomValidity('信箱錯誤');
  37. }
  38. },'json');"required>
  39. <label for="email">信箱/Email</label>
  40. </div>
  41. <div class="form-floating">
  42. <span class="wrong-span"></span>
  43. </div>
  44. <div class="checkbox mb-3">
  45. <label>
  46. </label>
  47. </div>
  48. <button class="w-40 btn btn-lg btn-secondary" type="submit">Confirm</button>
  49. <button class="w-40 btn btn-lg btn-secondary" type="button" onclick="Login();">Cancel</button>
  50. </form>
  51. {% endblock %}