This commit is contained in:
杜恒 2021-04-13 11:04:03 +08:00
parent cf77ae219e
commit 5c4893255d
7 changed files with 8 additions and 10 deletions

View File

@ -159,8 +159,8 @@ document.addEventListener('DOMContentLoaded', () => {
const key = $('.joe_aside__item.weather').attr('data-key');
const style = $('.joe_aside__item.weather').attr('data-style');
const aqiColor = { 1: 'FFFFFF', 2: '4A4A4A', 3: 'FFFFFF' };
window.WIDGET = { CONFIG: { layout: 2, width: '220', height: '270', background: style, dataColor: aqiColor[style], language: 'zh', key: key } };
$.getScript('http://apip.weatherdt.com/standard/static/js/weather-standard.js?v=2.0');
window.WIDGET = { CONFIG: { layout: 2, width: '220', height: '270', background: style, dataColor: aqiColor[style], language: 'zh', key } };
$.getScript('https://widget.qweather.net/standard/static/js/he-standard-common.js?v=2.0');
}
}

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
/* 获取主题当前版本号 */
function _getVersion()
{
return "6.3.3";
return "6.3.4";
};
/* 判断是否是手机 */

View File

@ -580,7 +580,8 @@ function themeConfig($form)
'天气栏KEY值 - PC',
'介绍:用于初始化天气栏 <br/>
注意:填写时务必填写正确!不填写则不会显示<br />
其他:免费申请地址:<a href="//cj.weather.com.cn">cj.weather.com.cn</a> '
其他:免费申请地址:<a href="//widget.qweather.com/create-standard">widget.qweather.com/create-standard</a><br />
简要在网页生成时配置项随便选择只需要生成代码后的Token即可'
);
$JAside_Weather_Key->setAttribute('class', 'joe_content joe_aside');
$form->addInput($JAside_Weather_Key);

View File

@ -1,6 +1,6 @@
{
"name": "typecho-joe-next",
"version": "6.3.3",
"version": "6.3.4",
"description": "A Theme Of Typecho",
"main": "index.php",
"keywords": [

View File

@ -131,7 +131,7 @@
<span class="line"></span>
</div>
<div class="joe_aside__item-contain">
<div id="weather-v2-plugin-standard"></div>
<div id="he-plugin-standard"></div>
</div>
</section>
<?php endif; ?>

View File

@ -21,9 +21,6 @@
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.global.min.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.responsive.min.css'); ?>">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typecho-joe-next@6.0.0/plugin/qmsg/qmsg.css">
<?php if ($this->options->JAside_Weather_Key) : ?>
<link rel="stylesheet" href="http://apip.weatherdt.com/standard/static/css/weather-standard.css">
<?php endif; ?>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
<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/font-awesome@4.7.0/css/font-awesome.min.css">