Sha256: ac95099d206a1af1ea8f980ea4993af43eaa2cd2fc773db0f5c7db0b9f097406
Contents?: true
Size: 622 Bytes
Versions: 4
Compression:
Stored size: 622 Bytes
Contents
var roundedCornersOnLoad = function () { swapDOM("visual_version", SPAN(null, MochiKit.Visual.VERSION)); roundClass("h1", null); roundClass("h2", null, {corners: "bottom"}); }; addLoadEvent(roundedCornersOnLoad); // rewrite the view-source links addLoadEvent(function () { var elems = getElementsByTagAndClassName("A", "view-source"); var page = "rounded_corners/"; for (var i = 0; i < elems.length; i++) { var elem = elems[i]; var href = elem.href.split(/\//).pop(); elem.target = "_blank"; elem.href = "../view-source/view-source.html#" + page + href; } });
Version data entries
4 entries across 4 versions & 1 rubygems