perbaikan tampilan di penilai

This commit is contained in:
majid
2024-12-31 12:04:39 +07:00
parent 5b21243f3b
commit 1e6f12d3a4
3 changed files with 16 additions and 7 deletions

View File

@@ -63,7 +63,17 @@
function previewImage(input, previewId) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function(e) {
$('#' + previewId).attr('src', e.target.result).show();
}
reader.readAsDataURL(input.files[0]);
} else {
$('#' + previewId).hide();
}
}
function addClonableItem(containerId, itemClass) {
const container = document.getElementById(containerId);