]> _ Git - fluidbook-toolbox.git/commitdiff
wait #4592 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 16 Jul 2021 17:38:00 +0000 (19:38 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 16 Jul 2021 17:38:00 +0000 (19:38 +0200)
resources/views/fluidbook_theme/preview.blade.php

index 15f58277d3233826e21b46ef4500d59c6abb39d0..39927c3a09fec9f9c02aeab91fa014551427ea91 100644 (file)
@@ -2,6 +2,19 @@
     $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>