打卡工具
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>考勤工具</title>
  5. <style>
  6. body {
  7. font-family: Arial, sans-serif;
  8. padding: 20px;
  9. background-color: #f0f2f5;
  10. }
  11. .container {
  12. max-width: 400px;
  13. margin: 0 auto;
  14. background: white;
  15. padding: 20px;
  16. border-radius: 8px;
  17. box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  18. }
  19. .form-group {
  20. margin-bottom: 15px;
  21. }
  22. label {
  23. display: block;
  24. margin-bottom: 5px;
  25. }
  26. input[type="text"],
  27. input[type="password"] {
  28. width: 100%;
  29. padding: 8px;
  30. border: 1px solid #ddd;
  31. border-radius: 4px;
  32. box-sizing: border-box;
  33. }
  34. .checkbox-group {
  35. margin: 10px 0;
  36. }
  37. button {
  38. background-color: #1890ff;
  39. color: white;
  40. padding: 10px 15px;
  41. border: none;
  42. border-radius: 4px;
  43. cursor: pointer;
  44. width: 100%;
  45. margin-bottom: 10px;
  46. }
  47. button:hover {
  48. background-color: #40a9ff;
  49. }
  50. .attendance-buttons {
  51. display: none;
  52. margin-top: 20px;
  53. }
  54. #checkInBtn {
  55. background-color: #52c41a;
  56. }
  57. #checkOutBtn {
  58. background-color: #f5222d;
  59. }
  60. .status {
  61. margin-top: 10px;
  62. text-align: center;
  63. color: #666;
  64. }
  65. .user-info {
  66. display: none;
  67. margin: 15px 0;
  68. padding: 10px;
  69. background-color: #f8f9fa;
  70. border-radius: 4px;
  71. }
  72. .user-info p {
  73. margin: 5px 0;
  74. color: #333;
  75. }
  76. .attendance-status {
  77. margin-top: 10px;
  78. font-size: 0.9em;
  79. color: #666;
  80. }
  81. .time-info {
  82. color: #1890ff;
  83. font-weight: bold;
  84. }
  85. </style>
  86. </head>
  87. <body>
  88. <div class="container">
  89. <h2>考勤系统</h2>
  90. <div id="loginForm">
  91. <div class="form-group">
  92. <label for="username">用户名:</label>
  93. <input type="text" id="username" required>
  94. </div>
  95. <div class="form-group">
  96. <label for="password">密码:</label>
  97. <input type="password" id="password" required>
  98. </div>
  99. <div class="checkbox-group">
  100. <input type="checkbox" id="remember">
  101. <label for="remember">记住账号密码</label>
  102. </div>
  103. <button id="loginBtn">登录</button>
  104. </div>
  105. <div id="userInfo" class="user-info">
  106. <p>欢迎,<span id="userName">-</span></p>
  107. <div class="attendance-status">
  108. <p>上班打卡时间: <span id="checkInTime" class="time-info">-</span></p>
  109. <p>下班打卡时间: <span id="checkOutTime" class="time-info">-</span></p>
  110. </div>
  111. </div>
  112. <div id="attendanceButtons" class="attendance-buttons">
  113. <button id="checkInBtn">上班打卡</button>
  114. <button id="checkOutBtn">下班打卡</button>
  115. </div>
  116. <div id="status" class="status"></div>
  117. </div>
  118. <script src="renderer.js"></script>
  119. </body>
  120. </html>