This commit is contained in:
杜恒 2021-01-22 13:32:24 +08:00
parent 68368c0bc5
commit d94a487332
2 changed files with 2 additions and 5 deletions

View File

@ -3,13 +3,10 @@ window.Joe = function () {
const BASE_API = '/index.php/joe/api'; const BASE_API = '/index.php/joe/api';
/* 头部高度 */ /* 头部高度 */
const Header_Height = $('.joe_header').height(); const Header_Height = $('.joe_header').height();
/* 解决移动端Hover问题 */ /* 解决移动端Hover问题 */
document.addEventListener('touchstart', () => {}); document.addEventListener('touchstart', () => {});
/* 判断是否是手机 */ /* 判断是否是手机 */
const IsMobile = /windows phone|iphone|android/gi.test(window.navigator.userAgent); const IsMobile = /windows phone|iphone|android/gi.test(window.navigator.userAgent);
/* 设置侧边栏最后一个元素的高度 */ /* 设置侧边栏最后一个元素的高度 */
$('.joe_aside .joe_aside__item:last-child').css('top', Header_Height + 15); $('.joe_aside .joe_aside__item:last-child').css('top', Header_Height + 15);

View File

@ -14,8 +14,8 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.7.2/animate.min.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.7.2/animate.min.css" />
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <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="<?php $this->options->themeUrl('assets/js/joe.lazyload.js'); ?>"></script> <script src="<?php $this->options->themeUrl('assets/js/joe.lazyload.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('assets/js/joe.scroll.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('assets/js/joe.global.js'); ?>"></script> <script src="<?php $this->options->themeUrl('assets/js/joe.global.js'); ?>"></script>
<script async src="https://apip.weatherdt.com/standard/static/js/weather-standard.js?v=2.0"></script> <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> <script async src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/js/joe.smooth.js"></script>