summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorouttime <i@timewk.cn>2019-12-19 14:41:27 +0800
committerouttime <i@timewk.cn>2019-12-19 14:41:27 +0800
commit4a675768d3a2b9c525e862c22eeeb3c624821742 (patch)
treea2b2119748c62f1b74df1fce33bf18519a7a334f
parentb78ec636d0f617df4c2acbe8b657c2f86407a2ff (diff)
🍔Perf:修正一些问题
-rw-r--r--assets/css/main/post.css3
-rw-r--r--includes/footer.php10
2 files changed, 8 insertions, 5 deletions
diff --git a/assets/css/main/post.css b/assets/css/main/post.css
index f35786e..4c6a942 100644
--- a/assets/css/main/post.css
+++ b/assets/css/main/post.css
@@ -22,7 +22,8 @@
}
.post-banner-box {
height: 100%;
- overflow: hidden
+ overflow: hidden;
+ padding: 0;
}
.post-banner img {
width: 100%;
diff --git a/includes/footer.php b/includes/footer.php
index 754d25d..81b153d 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -10,7 +10,7 @@
$faces = "<span class=\"anime-face\">".$faces[rand(0,count($faces))]."</span>";
}
if($faces && $this->options->build_time)echo $faces;
- ?>;
+ ?>
<p class="copyright">&copy; <?php echo date('Y'); ?> <a href="<?php $this->options->SiteUrl(); ?>"><?php $this->options->title(); ?></a> All rights reserved.<br />
<?php
if($faces && !$this->options->build_time)echo $faces;
@@ -35,9 +35,11 @@
<?php if($this->options->pjax && $this->options->pjax!=0) :?>var loadPjax = true;
beforePjax = function() {NProgress.start();};
afterPjax = function() {owoLoad();<?php $this->options->pjax_complete(); ?>};<?php endif; ?></script>
- <!-- Script that must be after and BuildTime-->
- <script src="<?php Utils::indexTheme('assets/js/miracles.min.js'); ?>">
- <?php if($this->options->build_time)echo "buildTime(".$this->options->build_time.");" ?>
+ <!-- Script that must be after-->
+ <script src="<?php Utils::indexTheme('assets/js/miracles.min.js'); ?>"></script>
+ <!-- BuildTime -->
+ <script>
+ <?php if($this->options->build_time)echo "startTime(\"".$this->options->build_time."\");" ?>
</script>
<!-- Send News and Loaders -->
<script><?php if($this->is('index')): ?><?php if($this->options->news==!''): ?>alertSend('公告:<?php echo $this->options->news(); ?>');<?php endif; ?><?php endif; ?><?php if($this->is('post') || $this->is('page')): ?>owoLoad();<?php endif; ?><?php $this->options->jsEcho(); ?></script>