summaryrefslogtreecommitdiffstats
path: root/includes/footer.php
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2020-03-30 17:17:25 +0800
committerGitHub <noreply@github.com>2020-03-30 17:17:25 +0800
commita00926df6288ceed993cdf3262eee5b5f3a9a69c (patch)
treeb25fbb0897df42f93c6dae94246a1b6581c012f5 /includes/footer.php
parent255b61904f77fbe1570a4bc3f76141a67865613c (diff)
parent4c5eeb63b77a2ef1771eac74264addcf61def824 (diff)
Merge pull request #41 from outtimes/master
pull request
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>