stat2025 commited on
Commit
04f004a
·
verified ·
1 Parent(s): d1798a7

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +0 -12
index.html CHANGED
@@ -286,7 +286,6 @@
286
  </select>
287
  </div>
288
 
289
- <!-- يظهر فقط عند استجاب -->
290
  <div id="respondedBlock" style="grid-column:1/-1; display:none;">
291
  <div class="formGrid">
292
  <div style="grid-column:1/-1">
@@ -335,7 +334,6 @@
335
  </div>
336
  </div>
337
 
338
- <!-- يظهر للحالات التي تتطلب تنبيه تصوير -->
339
  <div id="photoNote" style="grid-column:1/-1; display:none;">
340
  <div class="noteBox warn">
341
  📸 <b>ملاحظة:</b> التقط صورة وسترفق لاحقًا بالنظام من قبلك.
@@ -355,7 +353,6 @@
355
  </div>
356
  </div>
357
 
358
- <!-- إدارة السجلات -->
359
  <div class="card">
360
  <h3>إدارة السجلات <span class="badge">بحث + حذف</span></h3>
361
 
@@ -373,7 +370,6 @@
373
  </div>
374
  </div>
375
 
376
- <!-- الجدول -->
377
  <div class="card" style="margin-top:14px;">
378
  <h3>الجدول</h3>
379
 
@@ -430,7 +426,6 @@
430
  deleteAllBtn: document.getElementById("deleteAllBtn"),
431
  };
432
 
433
- // التوقيع اليدوي
434
  const canvas = document.getElementById("signaturePad");
435
  const ctx = canvas.getContext("2d");
436
  let drawing = false;
@@ -552,7 +547,6 @@
552
  el.saveBtn.textContent = "✅ حفظ التعديل";
553
  updateConditionalUI();
554
 
555
- // رسم التوقيع المخزن على اللوحة إن وجد
556
  clearSignaturePad();
557
  if(rec.signature){
558
  const img = new Image();
@@ -622,7 +616,6 @@
622
  return "";
623
  }
624
 
625
- /* ====== التوقيع اليدوي (Canvas) ====== */
626
  function resizeCanvas(){
627
  const ratio = window.devicePixelRatio || 1;
628
  const rect = canvas.getBoundingClientRect();
@@ -637,7 +630,6 @@
637
  ctx.lineCap = "round";
638
  ctx.strokeStyle = "#000";
639
 
640
- // إعادة رسم التوقيع إذا كان موجودًا (عند تغيير المقاس)
641
  if(oldData){
642
  const img = new Image();
643
  img.onload = () => {
@@ -815,8 +807,6 @@
815
  { wch: 42 },
816
  ];
817
 
818
- // ملاحظة: Excel عبر SheetJS لا يدعم إدراج الصور في الخلايا كصورة مباشرة في المتصفح بدون حلول إضافية.
819
- // لذا نضع مؤشر "مرفق (صورة)" داخل Excel، بينما التوقيع يظهر كصورة داخل الصفحة.
820
  const wb = XLSX.utils.book_new();
821
  XLSX.utils.book_append_sheet(wb, ws, "الإقرارات");
822
  XLSX.writeFile(wb, `EQ_${todayISO()}.xlsx`);
@@ -849,8 +839,6 @@
849
  updateConditionalUI();
850
  render();
851
 
852
- // تجهيز لوحة التوقيع بعد ظهورها (وعند تحميل الصفحة)
853
- // نعمل resize الآن، وأيضًا عند تغيير الحجم
854
  setTimeout(() => { resizeCanvas(); }, 0);
855
  window.addEventListener("resize", () => { resizeCanvas(); });
856
  </script>
 
286
  </select>
287
  </div>
288
 
 
289
  <div id="respondedBlock" style="grid-column:1/-1; display:none;">
290
  <div class="formGrid">
291
  <div style="grid-column:1/-1">
 
334
  </div>
335
  </div>
336
 
 
337
  <div id="photoNote" style="grid-column:1/-1; display:none;">
338
  <div class="noteBox warn">
339
  📸 <b>ملاحظة:</b> التقط صورة وسترفق لاحقًا بالنظام من قبلك.
 
353
  </div>
354
  </div>
355
 
 
356
  <div class="card">
357
  <h3>إدارة السجلات <span class="badge">بحث + حذف</span></h3>
358
 
 
370
  </div>
371
  </div>
372
 
 
373
  <div class="card" style="margin-top:14px;">
374
  <h3>الجدول</h3>
375
 
 
426
  deleteAllBtn: document.getElementById("deleteAllBtn"),
427
  };
428
 
 
429
  const canvas = document.getElementById("signaturePad");
430
  const ctx = canvas.getContext("2d");
431
  let drawing = false;
 
547
  el.saveBtn.textContent = "✅ حفظ التعديل";
548
  updateConditionalUI();
549
 
 
550
  clearSignaturePad();
551
  if(rec.signature){
552
  const img = new Image();
 
616
  return "";
617
  }
618
 
 
619
  function resizeCanvas(){
620
  const ratio = window.devicePixelRatio || 1;
621
  const rect = canvas.getBoundingClientRect();
 
630
  ctx.lineCap = "round";
631
  ctx.strokeStyle = "#000";
632
 
 
633
  if(oldData){
634
  const img = new Image();
635
  img.onload = () => {
 
807
  { wch: 42 },
808
  ];
809
 
 
 
810
  const wb = XLSX.utils.book_new();
811
  XLSX.utils.book_append_sheet(wb, ws, "الإقرارات");
812
  XLSX.writeFile(wb, `EQ_${todayISO()}.xlsx`);
 
839
  updateConditionalUI();
840
  render();
841
 
 
 
842
  setTimeout(() => { resizeCanvas(); }, 0);
843
  window.addEventListener("resize", () => { resizeCanvas(); });
844
  </script>