Commit 59c133b3 authored by Van's avatar Van

🎨 #12695

parent e59c3495
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* *
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a> * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.6.0.0, Feb 21, 2019 * @version 1.7.0.0, Mar 4, 2019
*/ */
/** /**
...@@ -93,6 +93,14 @@ var Util = { ...@@ -93,6 +93,14 @@ var Util = {
}) })
} }
}, },
/**
* 图片预览
*/
previewImg:function () {
$('body').on('click', '.content-reset img', function () {
window.open(this.src);
});
},
/** /**
* 按需加载 MathJax 及 flow * 按需加载 MathJax 及 flow
* @returns {undefined} * @returns {undefined}
...@@ -286,6 +294,7 @@ var Util = { ...@@ -286,6 +294,7 @@ var Util = {
Util.setTopBar() Util.setTopBar()
Util.parseMarkdown() Util.parseMarkdown()
Util.initSW() Util.initSW()
Util.previewImg()
}, },
/** /**
* @description 注册 Service Work * @description 注册 Service Work
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment