1.去和风天气创建一个插件,最后生成代码
2.在navbar.php中添加
<div id="he-plugin-simple"></div>
<script>
WIDGET = {
"CONFIG": {
"modules": "01234",
"background": "5",
"tmpColor": "000000",
"tmpSize": "16",
"cityColor": "000000",
"citySize": "16",
"aqiColor": "000000",
"aqiSize": "16",
"weatherIconSize": "24",
"alertIconSize": "18",
"padding": "10px 10px 10px 10px",
"shadow": "0",
"language": "auto",
"fixed": "false",
"vertical": "top",
"horizontal": "left",
"key": "dd350946eb62489888b88035a9fd39bb"
}
}
</script>
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>
网站名:Corrain's blog
头像:https://file.corrain.top/webAvatar/Corrain11725253984123744.jpg
站名:Darian.MingのBlog
头像:https://blog.darian-ming.cn/static/img/avatar.jpg
链接:https://blog.darian-ming.cn/
描述:镜花水月,不过尔尔,无悔过去,不问将来
邮箱:admin@darian-ming.cn
站点链接:https://suxiaorong.top/
头像:https://weavatar.com/avatar/c7d0fd4a1acdf03bb98b5b099d1a38f8?s=96&d=mm&r=g
站点描述:世上本无事,庸人自扰之。