Spaces:
Sleeping
Sleeping
Update templates/generator.html
Browse files- templates/generator.html +11 -7
templates/generator.html
CHANGED
|
@@ -18,7 +18,9 @@
|
|
| 18 |
color: #ffffff;
|
| 19 |
line-height: 1.6;
|
| 20 |
min-height: 100vh;
|
| 21 |
-
|
|
|
|
|
|
|
| 22 |
direction: rtl;
|
| 23 |
}
|
| 24 |
|
|
@@ -30,7 +32,7 @@
|
|
| 30 |
width: 100%;
|
| 31 |
max-width: 550px;
|
| 32 |
border: 1px solid #2a3a5a;
|
| 33 |
-
margin: 0 auto;
|
| 34 |
}
|
| 35 |
|
| 36 |
h1 {
|
|
@@ -58,16 +60,20 @@
|
|
| 58 |
margin-bottom: 20px;
|
| 59 |
box-sizing: border-box;
|
| 60 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
select {
|
| 63 |
background-color: #0b132b;
|
| 64 |
color: #ffffff;
|
| 65 |
border: 2px solid #2a3a5a;
|
| 66 |
-
appearance: none;
|
| 67 |
padding-left: 15px;
|
| 68 |
}
|
| 69 |
|
| 70 |
-
/* تنسيق زر التوليد */
|
| 71 |
.generate-btn {
|
| 72 |
background-color: #00aaff;
|
| 73 |
color: #111a30;
|
|
@@ -126,7 +132,7 @@
|
|
| 126 |
|
| 127 |
<label for="difficulty_level">اختر مستوى صعوبة كلمة السر المطلوبة:</label>
|
| 128 |
<select id="difficulty_level">
|
| 129 |
-
<option value="100">100% - جنونية الصعوبة (طول: 18-21،
|
| 130 |
<option value="75" selected>75% - قوية جداً (طول: 14-17، رموز وجميع الأحرف)</option>
|
| 131 |
<option value="50">50% - آمنة (طول: 10-13، أحرف وأرقام)</option>
|
| 132 |
<option value="25">25% - أساسية (طول: 8-10، أحرف صغيرة وأرقام)</option>
|
|
@@ -157,9 +163,7 @@
|
|
| 157 |
const passwordText = document.getElementById('generated_password').textContent;
|
| 158 |
const copyIcon = document.getElementById('copy_icon');
|
| 159 |
|
| 160 |
-
// نسخ النص
|
| 161 |
navigator.clipboard.writeText(passwordText).then(() => {
|
| 162 |
-
// تغيير الأيقونة والنص مؤقتاً
|
| 163 |
const originalIconClass = copyIcon.className;
|
| 164 |
copyIcon.className = 'fas fa-check';
|
| 165 |
setTimeout(() => {
|
|
|
|
| 18 |
color: #ffffff;
|
| 19 |
line-height: 1.6;
|
| 20 |
min-height: 100vh;
|
| 21 |
+
/* تم تعديل هذا لضمان التمرير على الأجهزة الصغيرة */
|
| 22 |
+
padding-top: 50px;
|
| 23 |
+
padding-bottom: 50px;
|
| 24 |
direction: rtl;
|
| 25 |
}
|
| 26 |
|
|
|
|
| 32 |
width: 100%;
|
| 33 |
max-width: 550px;
|
| 34 |
border: 1px solid #2a3a5a;
|
| 35 |
+
margin: 0 auto; /* هذا يضمن توسيط الحاوية */
|
| 36 |
}
|
| 37 |
|
| 38 |
h1 {
|
|
|
|
| 60 |
margin-bottom: 20px;
|
| 61 |
box-sizing: border-box;
|
| 62 |
}
|
| 63 |
+
|
| 64 |
+
/* تعديل النص في القائمة المنسدلة ليتوافق مع اللغة الإنجليزية فقط */
|
| 65 |
+
#difficulty_level option[value="100"] {
|
| 66 |
+
content: "100% - جنونية الصعوبة (طول: 18-21، رموز وجميع الأحرف)";
|
| 67 |
+
}
|
| 68 |
|
| 69 |
select {
|
| 70 |
background-color: #0b132b;
|
| 71 |
color: #ffffff;
|
| 72 |
border: 2px solid #2a3a5a;
|
| 73 |
+
appearance: none;
|
| 74 |
padding-left: 15px;
|
| 75 |
}
|
| 76 |
|
|
|
|
| 77 |
.generate-btn {
|
| 78 |
background-color: #00aaff;
|
| 79 |
color: #111a30;
|
|
|
|
| 132 |
|
| 133 |
<label for="difficulty_level">اختر مستوى صعوبة كلمة السر المطلوبة:</label>
|
| 134 |
<select id="difficulty_level">
|
| 135 |
+
<option value="100">100% - جنونية الصعوبة (طول: 18-21، رموز وجميع الأحرف)</option>
|
| 136 |
<option value="75" selected>75% - قوية جداً (طول: 14-17، رموز وجميع الأحرف)</option>
|
| 137 |
<option value="50">50% - آمنة (طول: 10-13، أحرف وأرقام)</option>
|
| 138 |
<option value="25">25% - أساسية (طول: 8-10، أحرف صغيرة وأرقام)</option>
|
|
|
|
| 163 |
const passwordText = document.getElementById('generated_password').textContent;
|
| 164 |
const copyIcon = document.getElementById('copy_icon');
|
| 165 |
|
|
|
|
| 166 |
navigator.clipboard.writeText(passwordText).then(() => {
|
|
|
|
| 167 |
const originalIconClass = copyIcon.className;
|
| 168 |
copyIcon.className = 'fas fa-check';
|
| 169 |
setTimeout(() => {
|