diff options
author | Wu Cheng-Han | 2016-08-15 11:25:27 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-08-15 11:25:27 +0800 |
commit | a013c9d3bc0eb98c935e80bdb694c1a1cf7bd4c4 (patch) | |
tree | 5078a64286601b5b476f9613ecaee39e6837aa1d /public/js | |
parent | e12fae699981762a69a72f6f164c0ec0254ddcf2 (diff) |
Update slide mode to show extra info and support url actions and support disqus via yaml-metadata
Diffstat (limited to '')
-rw-r--r-- | public/js/slide.js | 11 |
1 files changed, 11 insertions, 0 deletions
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++) { |