aboutsummaryrefslogtreecommitdiff
path: root/tools/template.html
diff options
context:
space:
mode:
Diffstat (limited to 'tools/template.html')
-rw-r--r--tools/template.html6
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=' +