main
Ilham Wara Nugroho 2026-02-04 12:00:14 +07:00
parent 559a87b66b
commit 6bb675f7c0
1 changed files with 17 additions and 0 deletions

View File

@ -136,6 +136,23 @@
@section('page-js')
<script type="text/javascript" src="{{asset('assets/js/formplugins/dropzone/dropzone.js')}}"></script>
<script type="text/javascript">
$('.clickModal').on('click',function(){
$('.remove').remove();
const fileType = $(this).data('type');
const title = $(this).data('title');
const url = $(this).data('url');
$('.titleModal').html(title);
if (fileType === 'pdf') {
var body = `<iframe class="remove" src="${url}" width="100%" height=500"></iframe>`;
} else {
var body = `<img class="remove" src="${url}" width="70%" style="max-width:100%; max-height:50%;">`;
}
$('.bodyModal').append(body);
});
@if(session('group_alias') == 'sekolah')
@if(($kuesioner->status != 1) && ($kuesioner->status != 5))
$('.dropzone').remove();