58 lines
3.3 KiB
PHP
58 lines
3.3 KiB
PHP
<script>
|
||
window.Joe = {
|
||
LIVE2D: '<?php $this->options->JLive2d() ?>',
|
||
BASE_API: '/index.php/joe/api',
|
||
DYNAMIC_BACKGROUND: '<?php $this->options->JDynamic_Background() ?>',
|
||
WALLPAPER_BACKGROUND_PC: '<?php $this->options->JWallpaper_Background_PC() ?>',
|
||
IS_MOBILE: /windows phone|iphone|android/gi.test(window.navigator.userAgent),
|
||
BAIDU_PUSH: <?php echo $this->options->JBaiduToken ? 'true' : 'false' ?>,
|
||
encryption: str => window.btoa(unescape(encodeURIComponent(str))),
|
||
decrypt: str => decodeURIComponent(escape(window.atob(str))),
|
||
}
|
||
/* 用于页面一进入,直接判断是否是黑夜模式,请勿将它移走或删除,必须放这里,解决闪烁问题,下面的style也是,请勿修改 */
|
||
if (localStorage.getItem('data-night')) document.querySelector("html").setAttribute("data-night", "night")
|
||
</script>
|
||
<style>
|
||
body::before {
|
||
background: <?php
|
||
if (_isMobile()) {
|
||
echo $this->options->JWallpaper_Background_WAP ? "url(" . $this->options->JWallpaper_Background_WAP . ")" : "#f5f5f5";
|
||
} else {
|
||
echo $this->options->JWallpaper_Background_PC ? "url(" . $this->options->JWallpaper_Background_PC . ")" : "#f5f5f5";
|
||
}
|
||
?>;
|
||
background-position: center 0;
|
||
background-repeat: no-repeat;
|
||
background-size: cover;
|
||
}
|
||
</style>
|
||
|
||
<!-- <<<<<<<<<<<<<<<<<<<< 主题开始 >>>>>>>>>>>>>>>>>>>> -->
|
||
|
||
<meta charset="utf-8" />
|
||
<meta name="renderer" content="webkit" />
|
||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
|
||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, shrink-to-fit=no, viewport-fit=cover">
|
||
<link rel="shortcut icon" href="<?php $this->options->JFavicon() ?>" />
|
||
<title><?php $this->archiveTitle(array('category' => '分类 %s 下的文章', 'search' => '包含关键字 %s 的文章', 'tag' => '标签 %s 下的文章', 'author' => '%s 发布的文章'), '', ' - '); ?><?php $this->options->title(); ?></title>
|
||
|
||
<?php $this->header(); ?>
|
||
|
||
<!-- 全局公用CSS -->
|
||
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.normalize.css'); ?>">
|
||
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.global.css'); ?>">
|
||
<link rel="stylesheet" href="https://apip.weatherdt.com/standard/static/css/weather-standard.css">
|
||
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.owo.css'); ?>">
|
||
|
||
<!-- 全局公用JS -->
|
||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
|
||
<script src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/js/joe.scroll.js"></script>
|
||
<script src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/js/joe.lazyload.js"></script>
|
||
<script src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/js/joe.sketchpad.js"></script>
|
||
<script src="<?php $this->options->themeUrl('assets/js/joe.owo.js'); ?>"></script>
|
||
<script src="<?php $this->options->themeUrl('assets/js/joe.global.js'); ?>"></script>
|
||
|
||
<!-- 下面是异步加载的JS -->
|
||
<script async src="https://apip.weatherdt.com/standard/static/js/weather-standard.js?v=2.0"></script>
|
||
<script async src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/js/joe.smooth.js"></script>
|