summaryrefslogtreecommitdiffstats
path: root/includes/footer.php
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2019-07-14 15:15:28 +0800
committerGitHub <noreply@github.com>2019-07-14 15:15:28 +0800
commit04457c3f793c46c1bd34f8c1c8b1715ccba5f207 (patch)
tree1a26ef730200eca79a1839c793d2b7152e97c2ef /includes/footer.php
parent9f76c533f9688c8fb76daf366c651e813093aade (diff)
图片懒加载、修复灯箱 BUG、优化某些样式在夜间模式下的显示
Diffstat (limited to 'includes/footer.php')
-rw-r--r--includes/footer.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/footer.php b/includes/footer.php
index f014627..82d527a 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -50,6 +50,13 @@
width: '400px',
maxHeight: '250px'
});
+ jQuery(function() {
+ jQuery("img").lazyload({threshold: 200,effect: "fadeIn"});
+ });
+ });
+ //LazyLoad
+ jQuery(function() {
+ jQuery("img").lazyload({threshold: 200,effect: "fadeIn"});
});
//解决刷新后不显示行号的问题
var pres = document.getElementsByTagName('pre');