diff options
| author | outtime <i@timewk.cn> | 2020-03-30 16:49:22 +0800 |
|---|---|---|
| committer | outtime <i@timewk.cn> | 2020-03-30 16:49:22 +0800 |
| commit | 2f80bbc0d6b869764464c82fd117867048839f73 (patch) | |
| tree | 10d5c79588a8fe07e11a0a656a6a6ef8314648da /assets | |
| parent | 255b61904f77fbe1570a4bc3f76141a67865613c (diff) | |
📱 Perf: 使用canvas来生成二维码
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/js/miracles.min.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/js/miracles.min.js b/assets/js/miracles.min.js index 9dec38b..882d44a 100644 --- a/assets/js/miracles.min.js +++ b/assets/js/miracles.min.js @@ -453,7 +453,7 @@ $('#post-qrcode-btn').on("click", togglePostQrcode); eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('e.d("%c \\f\\g h i %c j 7 8://9.a %c ","b: #6; 1: 2 0; 3: 4 0; 5: #k;","1: 2 0; 3: 4 0; 5: #l;","m: n;1-o:-0.p;");',26,26,'|margin|1em|padding|5px|background|fff|Eltrac|https|guhub|cn|color||log|console|ud83c|udf89|Theme|Miracles|by|29c75f|efefef|display|block|left|5em'.split('|'),0,{}))
/**
- * Load Pjax
+ * Load Pjaxgit
*/
if (loadPjax = true) {
$(document).pjax('a[href^="' + siteurl + '"]:not(a[target="_blank"], a[no-pjax], .comment-reply a, .cancel-comment-reply a)', {
@@ -477,6 +477,8 @@ if (loadPjax = true) { $("#pjax-container").css({
'height': 'auto'
});
+ //qrcode
+ $('#post-qrcode-btn').on("click", togglePostQrcode);
//NProgress
NProgress.done();
//LazyLoad
|
