Line 345: | Line 345: | ||
</div> | </div> | ||
</div> | </div> | ||
− | <!-- End--> < | + | <!-- End--> |
− | + | <center id="pdf"> <object data="https://static.igem.org/mediawiki/2016/a/ad/T--UofC_Calgary--ChassisRes.pdf" type="application/pdf" width="100%" height="600px"> | |
+ | <span style="font-size: 20px">Your device does not support embed PDFs. Please click the following link to open up the PDF. <a href="https://static.igem.org/mediawiki/2016/a/ad/T--UofC_Calgary--ChassisRes.pdff">ChassisRes.pdf</a> </span> | ||
+ | </object></center> | ||
+ | |||
</div> | </div> | ||
</div> | </div> | ||
Line 646: | Line 649: | ||
</script> | </script> | ||
− | + | <script> | |
+ | IS_IPAD = navigator.userAgent.match(/iPad/i) != null; IS_IPHONE = (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null); if (IS_IPAD) { IS_IPHONE = false; } | ||
+ | |||
+ | if(IS_IPAD || IS_IPHONE){ | ||
+ | document.getElementById("pdf").remove(); | ||
+ | |||
+ | var img11=document.createElement("a"); | ||
+ | img11.href='https://static.igem.org/mediawiki/2016/a/ad/T--UofC_Calgary--ChassisRes.pdf'; | ||
+ | img11.innerHTML = 'View PDF'; | ||
+ | |||
+ | document.getElementById("empty").appendChild(img11); | ||
+ | |||
+ | } | ||
+ | |||
+ | |||
+ | </script> | ||
</div> | </div> | ||
</div> | </div> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 13:13, 19 October 2016