Difference between revisions of "Template:UChile-OpenBio"
Diegusleik (Talk | contribs) |
Diegusleik (Talk | contribs) |
||
Line 10: | Line 10: | ||
; (function(a){a.fn.rwdImageMaps = function(){var c = this; var b = function(){c.each(function(){if (typeof (a(this).attr("usemap")) == "undefined"){return}var e = this, d = a(e); a("<img />").load(function(){var g = "width", m = "height", n = d.attr(g), j = d.attr(m); if (!n || !j){var o = new Image(); o.src = d.attr("src"); if (!n){n = o.width}if (!j){j = o.height}}var f = d.width() / 100, k = d.height() / 100, i = d.attr("usemap").replace("#", ""), l = "coords"; a('map[name="' + i + '"]').find("area").each(function(){var r = a(this); if (!r.data(l)){r.data(l, r.attr(l))}var q = r.data(l).split(","), p = new Array(q.length); for (var h = 0; h < p.length; ++h){if (h % 2 === 0){p[h] = parseInt(((q[h] / n) * 100) * f)} else{p[h] = parseInt(((q[h] / j) * 100) * k)}}r.attr(l, p.toString())})}).attr("src", d.attr("src"))})}; a(window).resize(b).trigger("resize"); return this}})(jQuery); | ; (function(a){a.fn.rwdImageMaps = function(){var c = this; var b = function(){c.each(function(){if (typeof (a(this).attr("usemap")) == "undefined"){return}var e = this, d = a(e); a("<img />").load(function(){var g = "width", m = "height", n = d.attr(g), j = d.attr(m); if (!n || !j){var o = new Image(); o.src = d.attr("src"); if (!n){n = o.width}if (!j){j = o.height}}var f = d.width() / 100, k = d.height() / 100, i = d.attr("usemap").replace("#", ""), l = "coords"; a('map[name="' + i + '"]').find("area").each(function(){var r = a(this); if (!r.data(l)){r.data(l, r.attr(l))}var q = r.data(l).split(","), p = new Array(q.length); for (var h = 0; h < p.length; ++h){if (h % 2 === 0){p[h] = parseInt(((q[h] / n) * 100) * f)} else{p[h] = parseInt(((q[h] / j) * 100) * k)}}r.attr(l, p.toString())})}).attr("src", d.attr("src"))})}; a(window).resize(b).trigger("resize"); return this}})(jQuery); | ||
</script> | </script> | ||
+ | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | ||
<style> | <style> | ||
/* RESET */ | /* RESET */ |
Revision as of 12:58, 17 September 2015