Skip to content

Commit

Permalink
embed pdf path
Browse files Browse the repository at this point in the history
  • Loading branch information
Natooz committed Oct 8, 2023
1 parent 189598c commit d418398
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions page/layouts/shortcodes/embed-pdf.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if not ($.Page.Scratch.Get "embed-pdf-count") -}}

<script type="text/javascript" src= '/bpe-symbolic-music/js/pdf-js/build/pdf.js'></script>
<script type="text/javascript" src= '/BPE-Symbolic-Music/js/pdf-js/build/pdf.js'></script>
<!-- <script type="text/javascript" src='{{"/js/pdf-js/build/pdf.js" | relURL}}'></script> -->

<style>
Expand All @@ -11,32 +11,32 @@
min-height: 20vh;
/* overflow-y:scroll; */
}

.pdf-canvas {
border: 1px solid black;
direction: ltr;
width: 100%;
height: auto;
display: none;
}

#the-canvas {
border: 1px solid black;
direction: ltr;
width: 100%;
height: auto;
display: none;
}


.pdf-loadingWrapper {
display: none;
justify-content: center;
align-items: center;
width: 100%;
height: 350px;
}

.pdf-loading {
display: inline-block;
width: 50px;
Expand All @@ -47,17 +47,17 @@
animation: spin 1s ease-in-out infinite;
-webkit-animation: spin 1s ease-in-out infinite;
}

{{/* Download link */}}



#overlayText {
word-wrap: break-word;
display: grid;
justify-content: end;
}

#overlayText a {
position: relative;
top: 10px;
Expand All @@ -71,14 +71,14 @@
border-color: #00000030;
text-decoration: none;
}

#overlayText svg {
height: clamp(1em, 2vw, 1.4em);
width: clamp(1em, 2vw, 1.4em);
}



@keyframes spin {
to { -webkit-transform: rotate(360deg); }
}
Expand Down

0 comments on commit d418398

Please sign in to comment.