[Tutorial] How to time public memorial days and add greycodes for the entire station to the website
Tomorrow , December 13, 20 24 is the 11 th Nan jing Massa cre Vic tims National Public Day , in order to facilit ate the website to schedule the whole station gr ay , the following code has been modi fied :
<script type =' text / javas cript'>
if (a ida ori) {
$("html").css({
"filter":"gray !important",
"filter":"progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)",
"filter":"grayscale(100%)",
"-webkit-filter":"grayscale(100%)",
"-moz-filter":"grayscale(100%)",
"-ms-filter":"grayscale(100%)",
"-o-filter":"grayscale(100%)"
});
}
The function is the same as the function .
The array is the same as the array ." 0404"," 0512"," 1213");
var mydate = new Date();
var str = "";
var mm = mydate.getMonth()+1;
if(mydate.getMonth()>9){
str += mm;
}else{
str += "0" + mm;
}
if(mydate.getDate()>9){
str += mydate.getDate();
}else{
str += "0" + mydate.getDate();
}
if(aidaoriarr.indexOf(str)>-1){
return 1;
}else{
return 0;
}
}
</script>
War m rem inder : If you do not need to add the date , you can directly copy the above code to yourself</ head> You can just go inside .
The date of the red can be modi fied to the time specified by yourself , such as 0 40 4 date , can be added as follows , and so on .
The array is the same as the array ." 0404"," 0512"," 1213");
Let us remember this period of suffering history together , remember the national shame , remember the mart yrs , roll up our s lee ves and make our own contribution to the national re ju ven ation !
© Website copyright and disclaimer
1.[honmau Media] independently owns the copyright of all materials on relevant pages of this website;
2. No one is allowed to copy it without the express written permission of [honmau Media];
3. The articles that do not indicate "honmau Media" on this website are all from the Internet and are only for everyone to learn and refer;
4. If there is any infringement/violation/irregularity, please contact customer service QQ or email to delete it, please understand;
5.[honmau Media] reserves the right to correct, modify and update this statement at any time.legal notice