From cc7788cf62999d317626301960f83d42219acb7e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 27 Oct 2014 12:38:01 -0700 Subject: Improved (interact) links in spec. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Link now has pointer cursor. - → is converted to tab. Closes #174. --- template.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'template.html') diff --git a/template.html b/template.html index 4c64524..24b2372 100644 --- a/template.html +++ b/template.html @@ -60,7 +60,7 @@ pre.html span.space:after { } #watermark a { color: white; } div.examplenum { font-size: 82%; text-align: left; } -a.dingus { color: red; } +a.dingus { color: red; cursor: pointer; } a.footnoteRef > sup:before { content: "["; } @@ -78,7 +78,8 @@ $$(document).ready(function() { $$("div.example").each(function(e) { var t = $$(this).find('pre.markdown > code').text(); $$(this).find('a.dingus').click(function(f) { - window.open('/dingus.html?text=' + encodeURIComponent(t)); + window.open('/dingus.html?text=' + + encodeURIComponent(t.replace(/→/g,"\t"))); }); }); $$("pre.markdown").dblclick(function(e) { window.open('/dingus.html?text=' + -- cgit v1.2.3