Team:ETH Zurich/tpl/head
From 2014.igem.org
(Difference between revisions)
Line 25: | Line 25: | ||
var math = document.getElementById("Reactions"); | var math = document.getElementById("Reactions"); | ||
math.style.display = "inline"; var w = math.offsetWidth; math.style.display = ""; | math.style.display = "inline"; var w = math.offsetWidth; math.style.display = ""; | ||
- | if (w > | + | if (w > 400) {math.style.fontSize = Math.floor(400/w * 100)+"%"} |
MathJax.Hub.Queue(["Rerender",MathJax.Hub,math]); | MathJax.Hub.Queue(["Rerender",MathJax.Hub,math]); | ||
}); | }); |