mirror of
https://github.com/ivabus/www
synced 2024-11-22 15:45:05 +03:00
Adobe PDF Embed API > iFrame (won't work unless URL's match)
This commit is contained in:
parent
318a492e04
commit
b9a5de70b6
1 changed files with 21 additions and 3 deletions
|
@ -24,7 +24,25 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{- partial "full-width-cta-split.html" -}}
|
||||
<section>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div id="adobe-dc-view" style="width: 100%;"></div>
|
||||
<script src="https://documentservices.adobe.com/view-sdk/viewer.js"></script>
|
||||
<script type="text/javascript">
|
||||
document.addEventListener("adobe_dc_view_sdk.ready", function(){
|
||||
var adobeDCView = new AdobeDC.View({clientId: "a62ebfbea2724a45bf0f973e895d620f", divId: "adobe-dc-view"});
|
||||
adobeDCView.previewFile({
|
||||
content:{location: {url: "https://tea.xyz/tea.white-paper.pdf"}},
|
||||
metaData:{fileName: "tea.white-paper.pdf"}
|
||||
}, {embedMode: "IN_LINE"});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
const versions = [
|
||||
|
@ -85,7 +103,7 @@
|
|||
|
||||
</style>
|
||||
|
||||
<!-- Start PDF
|
||||
<!-- Start PDF -->
|
||||
|
||||
<div class="container pdf-iframe"
|
||||
style="margin-bottom:100px; overflow:auto; -webkit-overflow-scrolling:touch; z-index:2;">
|
||||
|
@ -108,6 +126,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue