From ff2fc76491c11fad33ae6c62c4d5b5c47b431597 Mon Sep 17 00:00:00 2001 From: Cheng-Han, Wu Date: Sun, 31 Jan 2016 15:42:26 -0600 Subject: Supported export to gist --- public/js/index.js | 5 ++++- public/views/header.ejs | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'public') diff --git a/public/js/index.js b/public/js/index.js index bc3ee793..f4b6904e 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -311,7 +311,8 @@ var ui = { html: $(".ui-download-html") }, export: { - dropbox: $(".ui-save-dropbox") + dropbox: $(".ui-save-dropbox"), + gist: $(".ui-save-gist") }, import: { dropbox: $(".ui-import-dropbox"), @@ -857,6 +858,8 @@ ui.toolbar.export.dropbox.click(function () { }; Dropbox.save(options); }); +//export to gist +ui.toolbar.export.gist.attr("href", url + "/gist"); //import from dropbox ui.toolbar.import.dropbox.click(function () { var options = { diff --git a/public/views/header.ejs b/public/views/header.ejs index c98202c0..4e3a9938 100644 --- a/public/views/header.ejs +++ b/public/views/header.ejs @@ -36,6 +36,8 @@
  • Dropbox
  • +
  • Gist +
  • Dropbox @@ -111,6 +113,8 @@
  • Dropbox
  • +
  • Gist +
  • Dropbox -- cgit v1.2.3