الحصول على الرابط Facebook X Pinterest بريد إلكتروني التطبيقات الأخرى يوليو 22, 2025 🔢 عدد المصطلحات المعروضة: 0 🔍 اختر مجالًا Python JavaScript PHP قواعد بيانات💾 تصدير القاموس كـ CSV function filterByField() { const value = document.getElementById("fieldFilter").value.toLowerCase(); document.querySelectorAll("#dictionaryTable tbody tr").forEach(row => { const cell = row.cells[2].textContent.toLowerCase(); // المجال row.style.display = value === "" || cell.includes(value) ? '' : 'none'; }); } function exportCSV() { let csv = "المصطلح,الترجمة,المجال,التعريف,مثال,رابط\n"; document.querySelectorAll("#dictionaryTable tbody tr").forEach(row => { const cells = Array.from(row.cells).map(td => `"${td.textContent}"`); csv += cells.join(",") + "\n"; }); const blob = new Blob([csv], { type: "text/csv" }); const link = document.createElement("a"); link.href = URL.createObjectURL(blob); link.download = "technical_dictionary.csv"; link.click(); } function updateTermCount() { const visibleRows = Array.from(document.querySelectorAll("#dictionaryTable tbody tr")).filter(r => r.style.display !== 'none'); document.getElementById("termCount").textContent = visibleRows.length; } // أضف هذه الاستدعاءات في المناسبات: document.getElementById("searchInput").addEventListener("keyup", function() { // ... فلترة البحث ... updateTermCount(); }); function showAllRows() { /*...*/ updateTermCount(); } function filterByTag(tag) { /*...*/ updateTermCount(); } const tdCopy = newRow.insertCell(); const btnCopy = document.createElement("button"); btnCopy.textContent = "📋 نسخ"; btnCopy.onclick = () => copyTerm(term); tdCopy.appendChild(btnCopy); الحصول على الرابط Facebook X Pinterest بريد إلكتروني التطبيقات الأخرى تعليقات
تعليقات
إرسال تعليق