summaryrefslogtreecommitdiffstats
path: root/includes/footer.php
diff options
context:
space:
mode:
authorouttime <i@timewk.cn>2020-03-30 17:08:40 +0800
committerouttime <i@timewk.cn>2020-03-30 17:08:40 +0800
commitc4d75f1d3c8b2aa9984859f71c1b16ae0e773643 (patch)
tree7cec2aab8650139c6f69e4313f749fab39b49a7e /includes/footer.php
parent2f80bbc0d6b869764464c82fd117867048839f73 (diff)
🍡Perf: 修复一些问题
Diffstat (limited to 'includes/footer.php')
-rw-r--r--includes/footer.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/includes/footer.php b/includes/footer.php
index bfc6b04..cf8d32e 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -20,9 +20,9 @@
<div class="fixed-tools">
<button title="返回顶部" class="fixed-button gotop-button" id="gotop"><i class="iconfont icon-chevron-up"></i></button>
</div>
- <!-- JavaScript -->
+ <!-- JavaScript Require-->
<?php
- $js_files=array("jquery","pjax.jquery","jquery.fancybox","jquery.lazyload.min","nprogress","OwO.min","highlight","highlight-line-number","pangu");
+ $js_files=array("jquery","pjax.jquery","jquery.fancybox","jquery.lazyload.min","nprogress","OwO.min","highlight","highlight-line-number","pangu","qrcode.min");
generate_require($js_files,"js",$this->options->CDN?"https://cdn.jsdelivr.net/gh/BigCoke233/miracles@":"");
?>
<!-- Varribles and Functions -->
@@ -36,9 +36,15 @@
<!-- Script that must be after-->
<script src="<?php Utils::indexTheme('assets/js/cmt.miracles.js'); ?>"></script>
<script src="<?php Utils::indexTheme('assets/js/miracles.min.js'); ?>"></script>
- <!-- BuildTime -->
+ <!-- JavaScript -->
<script>
<?php if($this->options->build_time)echo "startTime(\"".$this->options->build_time."\");" ?>
+ var post_qr = new QRCode(document.getElementById("post-qr"), {
+ width: 230,
+ height: 230,
+ colorLight : "#f1f1f1",
+ correctLevel : QRCode.CorrectLevel.L
+ });
</script>
<!-- Send News and Loaders -->
<script><?php if($this->is('post') || $this->is('page')): ?>owoLoad();<?php endif; ?><?php $this->options->jsEcho(); ?></script>