Initial commit

This commit is contained in:
GuilhermeStrice
2025-06-26 02:32:02 +01:00
commit 136ee79098
3 changed files with 54 additions and 0 deletions

14
script.js Normal file
View File

@ -0,0 +1,14 @@
document.getElementById('vcardFile').addEventListener('change', function(event) {
const file = event.target.files[0];
if (file) {
const reader = new FileReader();
reader.onload = function(e) {
const content = e.target.result;
const vcardContentDiv = document.getElementById('vcardContent');
// For now, just display the raw content.
// We can implement more sophisticated parsing later.
vcardContentDiv.textContent = content;
};
reader.readAsText(file);
}
});