From 031c96c72d168a23cca0c609f46e019eced8bc64 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Fri, 18 Dec 2015 09:40:52 -0600 Subject: Updated slide mode --- public/js/index.js | 11 +++++- public/views/header.ejs | 23 ++++++----- public/views/slide/listing.hbs | 22 +++++++++++ public/views/slide/reveal.hbs | 78 +++++++++++++++++++++++++++++++++++++ public/views/templates/listing.html | 22 ----------- public/views/templates/reveal.html | 72 ---------------------------------- 6 files changed, 123 insertions(+), 105 deletions(-) create mode 100644 public/views/slide/listing.hbs create mode 100644 public/views/slide/reveal.hbs delete mode 100644 public/views/templates/listing.html delete mode 100644 public/views/templates/reveal.html (limited to 'public') 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) { diff --git a/public/views/header.ejs b/public/views/header.ejs index 47246a1d..c98202c0 100644 --- a/public/views/header.ejs +++ b/public/views/header.ejs @@ -21,14 +21,18 @@ -