Skip to content

Commit

Permalink
1!!
Browse files Browse the repository at this point in the history
  • Loading branch information
lupengfei3 committed Nov 25, 2024
1 parent 10e055d commit bd6a1bf
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ fetch('https://v1.hitokoto.cn?max_length=24')
fetch('https://restapi.amap.com/v3/weather/weatherInfo?city=110000&extensions=base&key=34752fd7db29f988eca725b5af12102d')
.then(response => response.json())
.then(data => {
console.log(`%c${data}`)
$('#wea_text').html(data.lives.weather)
$('#city_text').html(data.lives.city)
$('#tem_day').html(data.lives.temperature)
Expand Down Expand Up @@ -271,14 +272,14 @@ $("#more").hover(function () {
})

//屏蔽右键
document.oncontextmenu = function () {
iziToast.show({
timeout: 2000,
iconUrl: './img/icon/warn.png',
message: '为了浏览体验,本站禁用右键'
});
return false;
}
// document.oncontextmenu = function () {
// iziToast.show({
// timeout: 2000,
// iconUrl: './img/icon/warn.png',
// message: '为了浏览体验,本站禁用右键'
// });
// return false;
// }

//自动变灰
var myDate = new Date;
Expand Down

0 comments on commit bd6a1bf

Please sign in to comment.