update
parent
559a87b66b
commit
6bb675f7c0
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue