diff options
author | Wu Cheng-Han | 2015-12-18 09:40:52 -0600 |
---|---|---|
committer | Wu Cheng-Han | 2015-12-18 09:40:52 -0600 |
commit | 031c96c72d168a23cca0c609f46e019eced8bc64 (patch) | |
tree | 6e10c7dd5c10294aa7230d11626f4f0004b78f91 /public/js | |
parent | 54b33f181f70786a2df624061e7a2ffb93a3eb73 (diff) |
Updated slide mode
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/index.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js index 4706d210..88410749 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -283,7 +283,6 @@ var ui = { shortStatus: $(".ui-short-status"), status: $(".ui-status"), new: $(".ui-new"), - slide: $(".ui-slide"), publish: $(".ui-publish"), download: { markdown: $(".ui-download-markdown"), @@ -296,6 +295,10 @@ var ui = { dropbox: $(".ui-import-dropbox"), clipboard: $(".ui-import-clipboard") }, + beta: { + pdf: $(".ui-beta-pdf"), + slide: $(".ui-beta-slide") + }, mode: $(".ui-mode"), edit: $(".ui-edit"), view: $(".ui-view"), @@ -793,7 +796,6 @@ function closestIndex(arr, closestTo) { var url = window.location.protocol + '//' + window.location.host + window.location.pathname; //share ui.toolbar.publish.attr("href", url + "/publish"); -ui.toolbar.slide.attr("href", url + "/slide"); //download //markdown ui.toolbar.download.markdown.click(function () { @@ -853,6 +855,11 @@ ui.toolbar.uploadImage.bind('change', function (e) { ui.toc.dropdown.click(function (e) { e.stopPropagation(); }); +//beta +//pdf +ui.toolbar.beta.pdf.attr("download", "").attr("href", url + "/pdf"); +//slide +ui.toolbar.beta.slide.attr("href", url + "/slide"); function scrollToTop() { if (currentMode == modeType.both) { |