一个在哀悼日会让网站变灰, 并且显示指定内容的脚本.

字节锻造团队
字节锻造团队
发布于 2023-10-04 / 31 阅读
0
0

一个在哀悼日会让网站变灰, 并且显示指定内容的脚本.

mourning 哀悼日

开源Github仓库地址: byteforgecn/mourning

一个在哀悼日会让网站变灰, 并且显示指定内容的脚本.

A script that greys the site and displays specified content on a day of mourning.

中国的哀悼日是指全国范围内为了纪念和哀悼重大的国家灾难、重大人员伤亡事件或国家重要人物去世而设立的特殊日子。在这一天,全国人民都会通过默哀、降半旗、停止娱乐活动等方式来表达对逝者的哀悼和对国家的悲痛之情。

China's mourning day refers to a special day set up nationwide to commemorate and mourn major national disasters, major casualties or the death of important national figures. On this day, people across the country observe a moment of silence, fly flags at half-mast and stop entertainment activities to express their grief for the deceased and the nation.


你可以自定义日期, 文字, 持续时间, 可以满足任意国家哀悼日的需求. 哀悼行为并不狂热, 我们应当心怀感恩, 铭记历史.

You can customize the date, the text, and the duration to meet the needs of any national mourning day. Mourning is not fanatical. We should be grateful and remember history.

Effect 效果

哀悼日演示2.png

哀悼日演示.png

Usage 用法

key

value

days

0404,0512,1213 4月4日 5月12日 12月13日

duration

毫秒 milliseconds

text

🕯沉重悼念 文本内容

以下内容可以直接复制到你网站的header中使用, 你可以自定义days的日期为今天来测试效果
The following can be copied directly into the header of your website, and you can customize the date of days to be today to test the effect
​
<script defer src="https://cdn.jsdelivr.net/gh/byteforgecn/mourning@0.0.2/mourning.min.js" days="0404,0512,1213" duration="10000" text="🕯沉重悼念"></script>

常见网站配置方式

哀悼日使用方式1.png

哀悼日使用方式2.png


评论