File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed
Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,22 @@ bibliography: papers.bib
5454toc : true
5555
5656_styles : >
57- object {
58- width:100%;
59- max-height:100%;
57+ .container {
58+ position: relative;
59+ overflow: hidden;
60+ width: 100%;
61+ padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
62+ }
63+
64+ /* Then style the iframe to fit in the container div with full height and width */
65+ .responsive-iframe {
66+ position: absolute;
67+ top: 0;
68+ left: 0;
69+ bottom: 0;
70+ right: 0;
71+ width: 100%;
72+ height: 100%;
6073 }
6174---
6275
@@ -127,5 +140,7 @@ _Future Directions_:
127140
128141## Protocols
129142Here is the protocol(steps) to reproduce our work with ease.
130- <iframe src =" https://www.protocols.io/widgets/doi?uri=dx.doi.org/10.17504/protocols.io.n92ldr869g5b/v1 " style =" width : 520px ; height : 300px ; border : 1px solid transparent ;" ></iframe >
131- <object data =' {{ "/assets/pdf/protocol_mcba.pdf" | relative_url }} ' type =' application/pdf ' />
143+ <iframe src =" https://www.protocols.io/widgets/doi?uri=dx.doi.org/10.17504/protocols.io.n92ldr869g5b/v1 " style =" width : 100% ; height : 300px ; border : 1px solid transparent ;" ></iframe >
144+ <div class =" container " >
145+ <object data='{{ "/assets/pdf/protocol_mcba.pdf" | relative_url }}' class="responsive-iframe" type='application/pdf'/>
146+ </div >
You can’t perform that action at this time.
0 commit comments