From 75725d2c9fd81580886580923b09c2b485df3d6e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 4 Feb 2015 10:31:27 -0800 Subject: Use new dingus address and hash format for "interact" links. --- tools/template.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools') 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=' + -- cgit v1.2.3