Skip to content

Commit e509c80

Browse files
committed
更新天气api
1 parent 548a624 commit e509c80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/header-banner.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* @Author URI: https://www.iowen.cn/
77
* @Date: 2019-02-22 21:26:02
88
* @LastEditors: iowen
9-
* @LastEditTime: 2022-07-25 18:11:27
10-
* @FilePath: \WebStack\templates\header-banner.php
9+
* @LastEditTime: 2024-07-30 17:31:38
10+
* @FilePath: /WebStack/templates/header-banner.php
1111
* @Description:
1212
*/
1313
if ( ! defined( 'ABSPATH' ) ) { exit; } ?>
@@ -22,8 +22,8 @@
2222
<!-- 天气 -->
2323
<li>
2424
<div id="he-plugin-simple"></div>
25-
<script>WIDGET = {CONFIG: {"modules": "12034","background": 5,"tmpColor": "aaa","tmpSize": 16,"cityColor": "aaa","citySize": 16,"aqiSize": 16,"weatherIconSize": 24,"alertIconSize": 18,"padding": "30px 10px 30px 10px","shadow": "1","language": "auto","borderRadius": 5,"fixed": "false","vertical": "middle","horizontal": "left","key": "a922adf8928b4ac1ae7a31ae7375e191"}}</script>
26-
<script src="https://widget.heweather.net/simple/static/js/he-simple-common.js?v=1.1"></script>
25+
<script>(function(T,h,i,n,k,P,a,g,e){g=function(){P=h.createElement(i);a=h.getElementsByTagName(i)[0];P.src=k;P.charset="utf-8";P.async=1;a.parentNode.insertBefore(P,a)};T["ThinkPageWeatherWidgetObject"]=n;T[n]||(T[n]=function(){(T[n].q=T[n].q||[]).push(arguments)});T[n].l=+new Date();if(T.attachEvent){T.attachEvent("onload",g)}else{T.addEventListener("load",g,false)}}(window,document,"script","tpwidget","//widget.seniverse.com/widget/chameleon.js"))</script>
26+
<script>tpwidget("init",{"flavor": "slim","location": "WX4FBXXFKE4F","geolocation": "enabled","language": "zh-chs","unit": "c","theme": "chameleon","container": "he-plugin-simple","bubble": "enabled","alarmType": "badge","color": "#999999","uid": "UD5EFC1165","hash": "2ee497836a31c599f67099ec09b0ef62"});tpwidget("show");</script>
2727
</li>
2828
<!-- 天气 end -->
2929
</ul>

0 commit comments

Comments
 (0)