1
0
forked from bot/app

Merge pull request #61 from ElapsingDreams/main

🩹非关键问题的简单修复:插件服务声明
This commit is contained in:
远野千束 2024-08-12 20:40:22 +08:00 committed by GitHub
commit 551ca06ea7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

2
.gitignore vendored
View File

@ -3,6 +3,8 @@
.vscode/ .vscode/
.cache/ .cache/
venv/
node_modules/ node_modules/
data/ data/
db/ db/

View File

@ -227,7 +227,7 @@
justify-content: center; justify-content: center;
} }
.attribution-info { #attribution-info {
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
padding: 0 5px 0; padding: 0 5px 0;
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);

View File

@ -178,7 +178,6 @@ function get_time_hour(fxTime) {
return fxTime.split("T")[1].split("+")[0] return fxTime.split("T")[1].split("+")[0]
} }
let attrinfo = document.getElementById('attribution-info');
if (!is_dev & !attr) attrinfo.parentElement.style.display = "none"
attrinfo.innerText = is_dev ? "Weather Service Drived by QWeather" : (attr ? attr : "Weather Service Drived by QWeather") let attrinfo = document.getElementById('attribution-info');
attrinfo.innerText = is_dev ? "Weather Service Drived by QWeather" : (attr ? attr : "Weather Service Drived by QWeather");

View File

@ -83,7 +83,7 @@
<script src="./js/card.js"></script> <script src="./js/card.js"></script>
<div class="attribution-box"> <div class="attribution-box">
<div class="attribution-info"></div> <div id="attribution-info"></div>
</div> </div>
<script src="./js/weather_now.js"></script> <script src="./js/weather_now.js"></script>