Generated Identifiers
Click 'Generate' to create UUIDs.
Export Settings
Generated on:
Generated UUIDs
| No. | UUID (Version 4) |
|---|
No UUIDs generated.
'; return; } generatedList.forEach(uuid => { const div = document.createElement('div'); div.className = 'uuid-item'; div.innerText = uuid; listDisplay.appendChild(div); }); } function clearList() { generatedList = []; renderList(); } // --- Download Helpers --- function getFileName(ext) { const prefix = document.getElementById('cfg-prefix').value || 'uuid_list'; return `${prefix}_${new Date().toISOString().split('T')[0]}.${ext}`; } function download(format) { if (generatedList.length === 0) { alert("Please generate UUIDs before attempting to download."); return; } let content = ""; let type = ""; let ext = ""; if (format === 'json') { const data = { metadata: { count: generatedList.length, version: 'v4', date: new Date().toISOString() }, uuids: generatedList }; content = JSON.stringify(data, null, 2); type = 'application/json'; ext = 'json'; } else if (format === 'csv') { content = "Number,UUID\n"; generatedList.forEach((uuid, index) => { content += `${index + 1},${uuid}\n`; }); type = 'text/csv'; ext = 'csv'; } const filename = getFileName(ext); const blob = new Blob([content], { type: type }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = filename; document.body.appendChild(a); a.click(); document.body.removeChild(a); } function generatePDF() { if (generatedList.length === 0) { alert("Please generate UUIDs before attempting to download the report."); return; } const template = document.getElementById('pdf-template'); const tbody = document.getElementById('pdf-tbody'); // Populate Metadata document.getElementById('pdf-title').innerText = document.getElementById('cfg-report-title').value || 'UUID Generation Audit'; document.getElementById('pdf-date').innerText = new Date().toLocaleString(); // Populate Table tbody.innerHTML = ''; generatedList.forEach((uuid, index) => { tbody.innerHTML += `