diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2019-08-05 12:54:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-05 12:54:44 +0800 |
| commit | e70a3aa7486fd4b759918893476dff1c4e6147ef (patch) | |
| tree | 1f307144fb7d916515a61d621b7a2f015f3421eb /includes/footer.php | |
| parent | 12adea65b04339d52d4ba3dc13645e227382693c (diff) | |
样式优化/体验优化/Bug Fix
Diffstat (limited to 'includes/footer.php')
| -rw-r--r-- | includes/footer.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/includes/footer.php b/includes/footer.php index 489ca3a..d6444c2 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -34,14 +34,12 @@ <script src="<?php Utils::indexTheme('assets/js/pangu.js'); ?>"></script> <script src="<?php Utils::indexTheme('assets/js/l2dwidget.min.js'); ?>"></script> <?php endif; ?> - <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; ?> - var modelHeight = <?php echo $this->options->ModelHeight(); ?>;var modelWidth = <?php echo $this->options->ModelWidth(); ?>; - <?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> + <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> <script src="<?php Utils::indexTheme('assets/js/miracles.min.js'); ?>"></script> <script><?php if($this->options->news==!''): ?>alertSend('公告:<?php echo $this->options->news(); ?>');<?php endif; ?>LazyLoad();PrismLoad();<?php if($this->is('post') || $this->is('page')): ?>owoLoad();<?php endif; ?>panguLoad();<?php $this->options->jsEcho(); ?></script> <?php $this->footer(); ?> |
