Skydata001 commited on
Commit
1df0579
·
verified ·
1 Parent(s): 9254410

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +13 -9
templates/index.html CHANGED
@@ -2,17 +2,22 @@
2
  <html lang="ar" dir="rtl">
3
  <head>
4
  <meta charset="UTF-8">
5
- <title>مدقق قوة وسلامة كلمة المرور</title>
 
6
  <style>
7
- /* كود CSS لتجميل الواجهة (تم اختصاره هنا لتجنب التكرار) */
8
  body { font-family: Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f7f6; direction: rtl; text-align: right; display: flex; justify-content: center; align-items: center; min-height: 100vh; }
9
  .container { background-color: #ffffff; padding: 30px; border-radius: 12px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); width: 100%; max-width: 500px; }
10
  h1 { color: #2c3e50; border-bottom: 3px solid #3498db; padding-bottom: 10px; margin-bottom: 25px; text-align: center; }
11
- input[type="password"] { width: 100%; padding: 15px; margin-bottom: 20px; border: 2px solid #ccc; border-radius: 8px; box-sizing: border-box; font-size: 18px; direction: ltr; text-align: left; }
12
- .result { padding: 15px; border-radius: 8px; margin-top: 20px; font-weight: bold; display: none; }
13
- .red { background-color: #f8d7da; color: #721c24; }
14
- .orange { background-color: #ffe8b7; color: #856404; }
15
- .green { background-color: #d4edda; color: #155724; }
 
 
 
 
 
16
  </style>
17
  </head>
18
  <body>
@@ -24,7 +29,7 @@
24
 
25
  <div id="result_box" class="result">
26
  <p><strong>حالة كلمة المرور:</strong> <span id="password_status"></span></p>
27
- <ul id="feedback_details"></ul>
28
  </div>
29
  </div>
30
 
@@ -46,7 +51,6 @@
46
  })
47
  .then(response => response.json())
48
  .then(data => {
49
- // تحديث الواجهة بالنتائج المستلمة
50
  resultBox.style.display = 'block';
51
  resultBox.className = `result ${data.color}`;
52
  document.getElementById('password_status').textContent = data.status;
 
2
  <html lang="ar" dir="rtl">
3
  <head>
4
  <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>مدقق قوة وسلامة كلمة المرور (AI)</title>
7
  <style>
 
8
  body { font-family: Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f7f6; direction: rtl; text-align: right; display: flex; justify-content: center; align-items: center; min-height: 100vh; }
9
  .container { background-color: #ffffff; padding: 30px; border-radius: 12px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); width: 100%; max-width: 500px; }
10
  h1 { color: #2c3e50; border-bottom: 3px solid #3498db; padding-bottom: 10px; margin-bottom: 25px; text-align: center; }
11
+ label { font-weight: bold; color: #34495e; }
12
+ input[type="password"] {
13
+ width: 100%; padding: 15px; margin-bottom: 20px; border: 2px solid #ccc; border-radius: 8px;
14
+ box-sizing: border-box; font-size: 18px; direction: ltr; text-align: left;
15
+ }
16
+ .result { padding: 15px; border-radius: 8px; margin-top: 20px; font-size: 1.1em; font-weight: bold; display: none; }
17
+ .feedback-list { padding-right: 20px; list-style-type: none; }
18
+ .red { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
19
+ .orange { background-color: #ffe8b7; color: #856404; border: 1px solid #ffda90; }
20
+ .green { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
21
  </style>
22
  </head>
23
  <body>
 
29
 
30
  <div id="result_box" class="result">
31
  <p><strong>حالة كلمة المرور:</strong> <span id="password_status"></span></p>
32
+ <ul id="feedback_details" class="feedback-list"></ul>
33
  </div>
34
  </div>
35
 
 
51
  })
52
  .then(response => response.json())
53
  .then(data => {
 
54
  resultBox.style.display = 'block';
55
  resultBox.className = `result ${data.color}`;
56
  document.getElementById('password_status').textContent = data.status;