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 > 700) {math.style.fontSize = Math.floor(700/w * 100)+"%"}
+
   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]);
});
});

Revision as of 00:42, 13 October 2014

iGEM ETH Zurich 2014