|
|
@@ -902,7 +902,8 @@ $('#modal-form').on('shown.bs.modal', async function() { |
|
|
|
const file = event.target.files[0]; |
|
|
|
const data = await file.arrayBuffer(); |
|
|
|
const workbook = XLSX.read(data); |
|
|
|
const aoa = XLSX.utils.sheet_to_json(workbook.Sheets[workbook.SheetNames[0]], { header: 0 }); |
|
|
|
var aoa = XLSX.utils.sheet_to_json(workbook.Sheets[workbook.SheetNames[0]], { header: 0 }); |
|
|
|
aoa = aoa.filter((i)=>i["Status"]=='Hadir'); |
|
|
|
const container = document.getElementById('participantCounter'); |
|
|
|
container.innerHTML = `${aoa.length} Participant(s)`; |
|
|
|
$("input[name='ParticipantList']").val(JSON.stringify(aoa)); |
|
|
|