$previewURL=$crud->entry->getPreviewURL(['widget'=>1,'action'=>'fullscreen'],0)
@endphp
+@push('after_scripts')
+ <script>
+ (function ($) {
+ $(function () {
+ $(document).on('change', 'form input,select,textarea', function () {
+ var json=JSON.stringify($(this).closest('form').serialize());
+ console.log(json);
+ });
+ })
+ })(jQuery);
+ </script>
+@endpush
+
@section('form_below_shortcuts')
<style type="text/css">
#themePreview {
position: absolute;
top: 0;
left: 0;
- width: 100%;
- height: 100%;;
+ width: 200%;
+ height: 200%;
+ transform-origin: 0 0;
+ transform: scale(0.5);
}
</style>
+
<div class="card" id="themePreview">
<iframe src="{{$previewURL}}" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>
</div>