Commit 25a28678 authored by Kevin Yumang's avatar Kevin Yumang

SERV-2286 - pdf viewer modal element WIP

parent 92bc159f
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
@section('Limitless::Content') @section('Limitless::Content')
@php @php
$pdfPath = secure_url("/ceetrox/sidekick/resource/public/Elements/pdfmodal/sample.pdf"); $pdfPath = secure_url("/ceetrox/sidekick/resource/public/Elements/pdfmodal/pdf-sample.pdf");
@endphp @endphp
@Limitless::CardStart(['title' => "Description", 'icon' => 'icon-info22']) @Limitless::CardStart(['title' => "Description", 'icon' => 'icon-info22'])
......
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<iframe class="pdfIframe" <iframe class="pdfIframe"
src="https://cdn.backoffice.online/pdfjs/web/viewer.html?file={{ $url }}" {{ header("Access-Control-Allow-Origin: *") }}
src="https://cdn.backoffice.online/pdfjs/web/viewer.html?file={{ urlencode($url) }}"
style="border:1px solid #999999;" width="100%"> style="border:1px solid #999999;" width="100%">
</iframe> </iframe>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment