From f51b7370f030c5cd1235fa7a23514a7e1ccef2dd Mon Sep 17 00:00:00 2001 From: xnum Date: Mon, 23 Nov 2015 20:38:26 +0800 Subject: Add Slide Mode using reveal.js and some part of reveal-md --- public/js/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'public/js/index.js') diff --git a/public/js/index.js b/public/js/index.js index 121737ed..276c0c8b 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -283,6 +283,7 @@ var ui = { shortStatus: $(".ui-short-status"), status: $(".ui-status"), new: $(".ui-new"), + slide: $(".ui-slide"), publish: $(".ui-publish"), download: { markdown: $(".ui-download-markdown"), @@ -792,6 +793,7 @@ function closestIndex(arr, closestTo) { var url = 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 () { @@ -2280,4 +2282,4 @@ $(editor.getInputField()) $(this).data('autocompleting', false); editor.setOption("extraKeys", defaultExtraKeys); } - }); \ No newline at end of file + }); -- cgit v1.2.3