summaryrefslogtreecommitdiffstats
path: root/includes/footer.php
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2019-08-23 14:27:20 +0800
committerGitHub <noreply@github.com>2019-08-23 14:27:20 +0800
commit01c38fabcc1e19ba1c54b8ee8d2f1c3449e42022 (patch)
tree8df8d52477122bf50c1c91146d94afe06c6b568b /includes/footer.php
parent1acb6faa47f94a8038b90b58a72e705f4eec9527 (diff)
Perf: Move some functions to `Miracles.min.js`
Diffstat (limited to 'includes/footer.php')
-rw-r--r--includes/footer.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/footer.php b/includes/footer.php
index 6f16238..0895488 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -37,12 +37,12 @@
<script>var siteurl = '<?php $this->options->SiteUrl() ;?>';var owoJson = '<?php Utils::indexTheme('assets/OwO.json'); ?>';<?php if($this->options->customModel!=''): ?>var modelJson = "<?php echo $this->options->customModel(); ?>";<?php else: ?>var modelJson = '<?php if($this->options->cat && $this->options->cat==1){Utils::indexTheme('assets/model/hijiki/assets/hijiki.model.json');}elseif($this->options->cat && $this->options->cat==2){Utils::indexTheme('assets/model/tororo/assets/tororo.model.json');}?>';<?php endif;?><?php if($this->options->ModelHeight!=NULL): ?>var modelHeight = <?php echo $this->options->ModelHeight(); ?>;<?php endif; ?><?php if($this->options->ModelWidth!=NULL): ?>var modelWidth = <?php echo $this->options->ModelWidth(); ?>;<?php endif; ?>
<?php if($this->options->pjax && $this->options->pjax!=0) :?>var loadPjax = true;
beforePjax = function() {NProgress.start();}
- afterPjax = function() {<?php if($this->is('post') || $this->is('page')): ?>owoLoad();<?php endif; ?><?php $this->options->pjax_complete(); ?>}<?php endif; ?></script>
+ afterPjax = function() {owoLoad();<?php $this->options->pjax_complete(); ?>}<?php endif; ?></script>
<!-- Script that must be after -->
<?php if($this->options->cat!=0 || $this->options->customModel!=''): ?><script src="<?php Utils::indexTheme('assets/js/l2dwidget.min.js'); ?>"></script><?php endif; ?>
<script src="<?php Utils::indexTheme('assets/js/miracles.min.js'); ?>"></script>
- <!-- Send News and Loader -->
- <script><?php if($this->is('index')): ?><?php if($this->options->news==!''): ?>alertSend('公告:<?php echo $this->options->news(); ?>');<?php endif; ?><?php endif; ?>LazyLoad();PrismLoad();<?php if($this->is('post') || $this->is('page')): ?>owoLoad();<?php endif; ?>panguLoad();<?php $this->options->jsEcho(); ?></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>
<!-- Others -->
<?php $this->footer(); ?>
</body>