Team:ETH Zurich/tpl/head
From 2014.igem.org
(Difference between revisions)
Line 21: | Line 21: | ||
<!-- MathJax (LaTeX for the web) --> | <!-- MathJax (LaTeX for the web) --> | ||
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG"></script> | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG"></script> | ||
+ | <script> | ||
+ | MathJax.Hub.Queue(function () { | ||
+ | var math = document.getElementById("dynamic"); | ||
+ | math.style.display = "inline"; var w = math.offsetWidth; math.style.display = ""; | ||
+ | if (w > 700) {math.style.fontSize = Math.floor(700/w * 100)+"%"} | ||
+ | MathJax.Hub.Queue(["Rerender",MathJax.Hub,math]); | ||
+ | }); | ||
+ | </script> | ||
<noscript> | <noscript> | ||
<link rel="stylesheet" href="https://2014.igem.org/Team:ETH_Zurich/css/style.css?action=raw&ctype=text/css" type="text/css"/> | <link rel="stylesheet" href="https://2014.igem.org/Team:ETH_Zurich/css/style.css?action=raw&ctype=text/css" type="text/css"/> |