DZAPPZ.COM: the best blogger template for posting apps as well as articles in one blog.. Test link Get now!

Latest posts

Zombie Sniper War 3 - Fire FPS

Sygic GPS Navigation & Maps 24.3.4-2324

Shot FX: vfx special effects v 3.12.886

Mostory: Story Maker for IG

GIF Maker, GIF to Video

Smart Video Compressor resizer

Newest
Cookie Consent

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.

Google Translate
Bookmark Post
function updateTable() { const tableBody = document.getElementById('fileTable').querySelector('tbody'); tableBody.innerHTML = ''; files.forEach(file => { for (const key in file) { if (file.hasOwnProperty(key)) { const row = document.createElement('tr'); const attributeCell = document.createElement('td'); attributeCell.innerHTML = `${key.replace(/([A-Z])/g, ' $1').replace(/^./, str => str.toUpperCase())}:`; row.appendChild(attributeCell); const valueCell = document.createElement('td'); if (key === 'fileUrl') { const downloadButton = document.createElement('a'); downloadButton.href = file[key]; downloadButton.className = 'download-button'; downloadButton.innerHTML = ` ${file.fileName}`; valueCell.appendChild(downloadButton); } else if (key === 'fileDescription') { // Add an icon for descriptions const icon = document.createElement('i'); icon.className = 'fas fa-file-alt'; valueCell.appendChild(icon); valueCell.appendChild(document.createTextNode(` ${file[key]}`)); } else { valueCell.textContent = file[key]; } row.appendChild(valueCell); tableBody.appendChild(row); } } }); }