diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-02-04 10:31:27 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-02-04 10:31:27 -0800 |
commit | 75725d2c9fd81580886580923b09c2b485df3d6e (patch) | |
tree | 7bcbdff2f4c6c24f9ebba910a052d3b63ebf0f0a /tools | |
parent | b5e205fba226b3d8d94418e050022c48a37997f8 (diff) |
Use new dingus address and hash format for "interact" links.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/template.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/template.html b/tools/template.html index 10bbdb5..78614db 100644 --- a/tools/template.html +++ b/tools/template.html @@ -73,8 +73,10 @@ $$(document).ready(function() { $$("div.example").each(function(e) { var t = $$(this).find('code.language-markdown').text(); $$(this).find('a.dingus').click(function(f) { - window.open('/dingus.html?text=' + - encodeURIComponent(t.replace(/→/g,"\t"))); + window.open('/dingus/#md64=' + + window.btoa(JSON.stringify({ + source: t.replace(/→/g,"\t"), + defaults: {}}))); }); }); $$("code.language-markdown").dblclick(function(e) { window.open('/dingus.html?text=' + |