From 4c49b61be0b3eec9a816e5a6bd39d8d8a623c9da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=95=E5=B1=82=E7=94=A8=E6=88=B7?= Date: Mon, 13 Dec 2021 14:43:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E7=BA=AA=E5=BF=B5?= =?UTF-8?q?=E6=97=A5=E8=87=AA=E5=8A=A8=E5=8F=98=E7=81=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 1 + js/main.js | 30 +++++++++++++++++++++++------- old/index.html | 4 ++-- 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index b4889b3..7671988 100644 --- a/index.html +++ b/index.html @@ -324,6 +324,7 @@  星期进度条显示错误  移动端动画及细节  Js 文件优化 +  返回旧版站点 diff --git a/js/main.js b/js/main.js index f17b96c..02c4bf3 100644 --- a/js/main.js +++ b/js/main.js @@ -13,12 +13,6 @@ iziToast.settings({ iconColor: '#efefef', }); -iziToast.info({ - icon: 'fad fa-vial', - title: '新版站点试运行', - message: '还存在亿些小问题 ~ 返回旧版' -}); - //控制台输出 /* let date = '2021-09-27 21:32' @@ -319,4 +313,26 @@ document.oncontextmenu = function () { message: '为了浏览体验,本站禁用右键' }); return false; -} \ No newline at end of file +} + +//自动变灰 +var myDate = new Date; + var mon = myDate.getMonth() + 1; + var date = myDate.getDate(); + var days = ['4.4', '5.12', '7.7', '9.9', '9.18', '12.13']; + for (var day of days) { + var d = day.split('.'); + if (mon == d[0] && date == d[1]) { + document.write( + '' + ) + $("#change").html("Silence in silence"); + $("#change1").html("今天是国家纪念日,全站已切换为黑白模式"); + iziToast.info({ + timeout: 14000, + icon: 'fad fa-candle-holder', + title: '今天是国家纪念日', + message: '历史不会忘记,人民永远铭记!' + }); + } + } \ No newline at end of file diff --git a/old/index.html b/old/index.html index 77ebd30..eb60cdf 100644 --- a/old/index.html +++ b/old/index.html @@ -96,8 +96,8 @@