From a013c9d3bc0eb98c935e80bdb694c1a1cf7bd4c4 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 15 Aug 2016 11:25:27 +0800 Subject: Update slide mode to show extra info and support url actions and support disqus via yaml-metadata --- public/js/slide.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'public/js/slide.js') diff --git a/public/js/slide.js b/public/js/slide.js index fe3cb1e8..e45f78a6 100644 --- a/public/js/slide.js +++ b/public/js/slide.js @@ -1,6 +1,17 @@ var body = $(".slides").html(); $(".slides").html(S(body).unescapeHTML().s); +createtime = lastchangeui.time.attr('data-createtime'); +lastchangetime = lastchangeui.time.attr('data-updatetime'); +updateLastChange(); +var url = window.location.pathname; +$('.ui-edit').attr('href', url + '/edit'); + +$(document).ready(function () { + //tooltip + $('[data-toggle="tooltip"]').tooltip(); +}); + function extend() { var target = {}; for (var i = 0; i < arguments.length; i++) { -- cgit v1.2.3