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>
我现在是想在另1个脚本里面用
https://xubai-owo.github.io/post/cang-shu-ru-fa-%28Hamster%29%20-zi-yong-jiao-ben.html
这个里面Deeplx中英自动翻译脚本
我没有deeplx_key
我要怎么修改这个脚本呢,我用AI帮我改了几次没弄成功,请大佬有时间的时候指点12啊?
我加上/translate 就提示404了?
头像:https://bryantxue.com/wp-content/uploads/2024/07/1720758271-优菈.jpg
地址:https://bryantxue.com
描述:以此苦旅,终抵星辰已配置贵站友链,详见 https://bryantxue.com/254-2/
感谢!
博客网址: https://www.seayj.cn
博客头像: https://www.seayj.cn/img/avatar.png
博客介绍: 她站在那里,就像一个小小的永恒!
网站快照: https://www.seayj.cn/img/siteshoot.jpg