Skip to content

Commit

Permalink
Mobile-friendly embedded PDFs.
Browse files Browse the repository at this point in the history
It turns out I'd misread some things. I thought you were supposed to put
embeds inside objects, but actually objects supersede embeds.
See https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Other_embedding_technologies#the_embed_and_object_elements
  • Loading branch information
kousu committed Nov 1, 2021
1 parent 7721689 commit 1e783d6
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 5 deletions.
Binary file added _static/_media/201907187tspinecoil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/_media/20201120updatedprojects.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/_media/acdc3t.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/_media/neuropolyslides.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _static/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ div.pdf-container.r4-3 {
padding-top: 78%;
}

div.pdf-container > embed[type="application/pdf"] {
div.pdf-container > object[type="application/pdf"] {
position: absolute;
top: 0;
left: 0;
Expand Down
5 changes: 4 additions & 1 deletion research/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ collaborations
```

<div class="pdf-container r4-3">
<embed src="../_static/_media/neuropolyslides.pdf" type="application/pdf" />
<object data="../_static/_media/neuropolyslides.pdf" type="application/pdf">
<!-- fallback: -->
<a href="../_static/_media/neuropolyslides.pdf"><img src="../_static/_media/neuropolyslides.png" type="image/png" /></a>
</object>
</div>
15 changes: 12 additions & 3 deletions research/rf-and-shim-coil-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,26 @@ The RF Lab is supported by [TransMedTech](https://www.polymtl.ca/transmedtech/en
## RF Coils for MRI

<div class="pdf-container r16-9">
<embed src="../_static/_media/20201120updatedprojects.pdf" type="application/pdf" />
<object data="../_static/_media/20201120updatedprojects.pdf" type="application/pdf">
<!-- fallback -->
<a href="../_static/_media/20201120updatedprojects.pdf"><img src="../_static/_media/20201120updatedprojects.png" /></a>
</object>
</div>

## C-Spine Coil for 7T MRI

<div class="pdf-container r16-9">
<embed src="../_static/_media/201907187tspinecoil.pdf" type="application/pdf" />
<object data="../_static/_media/201907187tspinecoil.pdf" type="application/pdf" />
<!-- fallback -->
<a href="../_static/_media/201907187tspinecoil.pdf"><img src="../_static/_media/201907187tspinecoil.png" /></a>
</object>
</div>

## Real-time shimming

<div class="pdf-container r16-9">
<embed src="../_static/_media/acdc3t.pdf" type="application/pdf" />
<object data="../_static/_media/acdc3t.pdf" type="application/pdf" />
<!-- fallback -->
<a href="../_static/_media/acdc3t.pdf"><img src="../_static/_media/acdc3t.png" /></a>
</object>
</div>

0 comments on commit 1e783d6

Please sign in to comment.