aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-02-04 10:31:27 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-02-04 10:31:27 -0800
commit75725d2c9fd81580886580923b09c2b485df3d6e (patch)
tree7bcbdff2f4c6c24f9ebba910a052d3b63ebf0f0a /tools
parentb5e205fba226b3d8d94418e050022c48a37997f8 (diff)
Use new dingus address and hash format for "interact" links.
Diffstat (limited to 'tools')
-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=' +