1var d = new Date(); 2m = d.getMonth() + 1; 3dd = d.getDate(); 4y = d.getFullYear(); 5 6// å ¬ç¥æ¥ 7if (m == 9 && dd == 18) { 8 document.getElementsByTagName("html")[0].setAttribute("style", "filter: grayscale(60%);"); 9 if (sessionStorage.getItem("isPopupWindow") != "1") { 10 Swal.fire("ä»å¤©æ¯ä¹ä¸å «äºå" + (y - 1931).toString() + "å¨å¹´çºªå¿µæ¥\nðªå¿å¿å½è»ï¼æ¯å ´ä¸åðª"); 11 sessionStorage.setItem("isPopupWindow", "1"); 12 } 13} 14if (m == 7 && dd == 7) { 15 document.getElementsByTagName("html")[0].setAttribute("style", "filter: grayscale(60%);"); 16 if (sessionStorage.getItem("isPopupWindow") != "1") { 17 Swal.fire("ä»å¤©æ¯å¢æ²æ¡¥äºå" + (y - 1937).toString() + "å¨å¹´çºªå¿µæ¥\nðªå¿å¿å½è»ï¼æ¯å ´ä¸åðª"); 18 sessionStorage.setItem("isPopupWindow", "1"); 19 } 20} 21if (m == 12 && dd == 13) { 22 document.getElementsByTagName("html")[0].setAttribute("style", "filter: grayscale(60%);"); 23 if (sessionStorage.getItem("isPopupWindow") != "1") { 24 Swal.fire("ä»å¤©æ¯åäº¬å¤§å± æ" + (y - 1937).toString() + "å¨å¹´çºªå¿µæ¥\nðªå¿å¿å½è»ï¼æ¯å ´ä¸åðª"); 25 sessionStorage.setItem("isPopupWindow", "1"); 26 } 27} 28if (m == 8 && dd == 14) { 29 document.getElementsByTagName("html")[0].setAttribute("style", "filter: grayscale(60%);"); 30 if (sessionStorage.getItem("isPopupWindow") != "1") { 31 Swal.fire("ä»å¤©æ¯ä¸çæ °å®å¦çºªå¿µæ¥\nðªå¿å¿å½è»ï¼æ¯å ´ä¸åðª"); 32 sessionStorage.setItem("isPopupWindow", "1"); 33 } 34} 35 36 37// è忥 38if (m == 10 && dd <= 3) {//å½åºè 39 if (sessionStorage.getItem("isPopupWindow") != "1") { 40 Swal.fire("ç¥ç¥å½" + (y - 1949).toString() + "å²çæ¥å¿«ä¹ï¼"); 41 sessionStorage.setItem("isPopupWindow", "1"); 42 } 43} 44if (m == 8 && dd == 15) {//ææ¥ç©çï¼å°æ¥åæé 45 if (sessionStorage.getItem("isPopupWindow") != "1") { 46 Swal.fire("å°æ¥åå·²ç»æé" + (y - 1945).toString() + "å¹´äºð"); 47 sessionStorage.setItem("isPopupWindow", "1"); 48 } 49} 50if (m == 1 && dd == 1) {//å æ¦è 51 if (sessionStorage.getItem("isPopupWindow") != "1") { 52 Swal.fire(y.toString() + "å¹´å æ¦å¿«ä¹ï¼ð"); 53 sessionStorage.setItem("isPopupWindow", "1"); 54 } 55} 56if (m == 3 && dd == 8) {//å¦å¥³è 57 if (sessionStorage.getItem("isPopupWindow") != "1") { 58 Swal.fire("åä½å¥³ç¥ä»¬ï¼å¦å¥³èå¿«ä¹ï¼ð©"); 59 sessionStorage.setItem("isPopupWindow", "1"); 60 } 61} 62l = ["éå¸¸æ±æï¼å 为ä¸å¯æ§åå ï¼å客å°äºæå¤©åæ¢è¿è¥ï¼", "å¥½æ¶æ¯ï¼æ¥æ¬æ²¡äºï¼", "ç¾å½å®äºï¼åå ç«ç¶æ¯å·æ®ï¼", "微软å®äºï¼", "ä½ ççµèå·²ç»è¿è½½ï¼å»ºè®®ç«å³å ³æºï¼", "ä½ ç¥éåï¼ç«é¿å¾åæ¬¢ä½ å¦ï¼", "ä¸åéæ61ç§å¦", "ä½ åæ¬¢ç人è·å«äººè·äºï¼"] 63if (m == 4 && dd == 1) {//æäººèï¼éæºè°è¯ 64 if (sessionStorage.getItem("isPopupWindow") != "1") { 65 Swal.fire(l[Math.floor(Math.random() * l.length)]); 66 sessionStorage.setItem("isPopupWindow", "1"); 67 } 68} 69if (m == 5 && dd == 1) {//å³å¨è 70 if (sessionStorage.getItem("isPopupWindow") != "1") { 71 Swal.fire("å³å¨èå¿«ä¹\n为åè¡åä¸è¾å¤å·¥ä½çäººä»¬è´æ¬ï¼"); 72 sessionStorage.setItem("isPopupWindow", "1"); 73 } 74} 75if (m == 5 && dd == 4) {//éå¹´è 76 if (sessionStorage.getItem("isPopupWindow") != "1") { 77 Swal.fire("éå¹´èå¿«ä¹\n鿥䏿¯åå¿éå»,èæ¯ææ¡ç°å¨ï¼"); 78 sessionStorage.setItem("isPopupWindow", "1"); 79 } 80} 81if (m == 5 && dd == 20) {//520 82 if (sessionStorage.getItem("isPopupWindow") != "1") { 83 Swal.fire("ä»å¹´æ¯520æ 人è\nå¿«åä½ åæ¬¢ç人ä¸èµ·è¿å§ï¼ð"); 84 sessionStorage.setItem("isPopupWindow", "1"); 85 } 86} 87if (m == 7 && dd == 1) {//建å è 88 if (sessionStorage.getItem("isPopupWindow") != "1") { 89 Swal.fire("ç¥ä¸å½å ±äº§å " + (y - 1921).toString() + "å²çæ¥å¿«ä¹ï¼"); 90 sessionStorage.setItem("isPopupWindow", "1"); 91 } 92} 93if (m == 9 && dd == 10) {//æå¸è 94 if (sessionStorage.getItem("isPopupWindow") != "1") { 95 Swal.fire("åä½èå¸ä»¬æå¸èå¿«ä¹ï¼ð©âð«"); 96 sessionStorage.setItem("isPopupWindow", "1"); 97 } 98} 99if (m == 12 && dd == 25) {//å£è¯è 100 if (sessionStorage.getItem("isPopupWindow") != "1") { 101 Swal.fire("å£è¯èå¿«ä¹ï¼ð"); 102 sessionStorage.setItem("isPopupWindow", "1"); 103 } 104} 105 106//ä¼ ç»èæ¥é¨å 107 108if ((y == 2023 && m == 4 && dd == 5) || (y == 2024 && m == 4 && dd == 4) || (y == 2025 && m == 4 && dd == 4)) {//æ¸ æè 109 if (sessionStorage.getItem("isPopupWindow") != "1") { 110 Swal.fire("æ¸ ææ¶èé¨çº·çº·,䏿é²è±ç¥æ 人ð"); 111 sessionStorage.setItem("isPopupWindow", "1"); 112 } 113} 114if ((y == 2023 && m == 12 && dd == 22) || (y == 2024 && m == 12 && dd == 21) || (y == 2025 && m == 12 && dd == 21)) {//å¬è³ 115 if (sessionStorage.getItem("isPopupWindow") != "1") { 116 Swal.fire("å¬è³å¿«ä¹\nå¿«åä¸ä¸ç¢çççæ±¤åå饺åå§ð§"); 117 sessionStorage.setItem("isPopupWindow", "1"); 118 } 119} 120 121var lunar = calendarFormatter.solar2lunar(); 122 123//ååéç¨æ±å计ç®ï¼é²æ¢åºç°é°æå¯¼è´é®é¢ 124
125if ((lunar["IMonthCn"] == "æ£æ" && lunar["IDayCn"] == "åå ") || (lunar["IMonthCn"] == "æ£æ" && lunar["IDayCn"] == "åäº") || (lunar["IMonthCn"] == "æ£æ" && lunar["IDayCn"] == "åå") || (lunar["IMonthCn"] == "æ£æ" && lunar["IDayCn"] == "åä¸") || (lunar["IMonthCn"] == "æ£æ" && lunar["IDayCn"] == "åäº") || (lunar["IMonthCn"] == "æ£æ" && lunar["IDayCn"] == "åä¸") || (lunar["IMonthCn"] == "è æ" && lunar["IDayCn"] == "ä¸å") || (lunar["IMonthCn"] == "è æ" && lunar["IDayCn"] == "廿ä¹")) { 126 //æ¥èï¼æ¬æ¥åªæå¤§å¹´ä¸åå°åå ï¼ä½æ¯ææ¶åé¤å¤æ¯å¤§å¹´äºåä¹ï¼æä»¥ä¹å ä¸äº 127 if (sessionStorage.getItem("isPopupWindow") != "1") { 128 Swal.fire(y.toString() + "å¹´æ°å¹´å¿«ä¹\nðç¥ä½ å¿æ³äºæï¼è¯¸äºé¡ºå©ð"); 129 sessionStorage.setItem("isPopupWindow", "1"); 130 } 131} 132if ((lunar["IMonthCn"] == "æ£æ" && lunar["IDayCn"] == "åäº")) { 133 //å 宵è 134 if (sessionStorage.getItem("isPopupWindow") != "1") { 135 Swal.fire("å 宵èå¿«ä¹\néä½ ä¸ä¸ªå¤§å¤§çç¯ç¬¼ð§ "); 136 sessionStorage.setItem("isPopupWindow", "1"); 137 } 138} 139if ((lunar["IMonthCn"] == "äºæ" && lunar["IDayCn"] == "åäº")) { 140 //端åè 141 if (sessionStorage.getItem("isPopupWindow") != "1") { 142 Swal.fire("端åèå¿«ä¹\nè¯·ä½ å䏿¡ç²½åð"); 143 sessionStorage.setItem("isPopupWindow", "1"); 144 } 145} 146if ((lunar["IMonthCn"] == "䏿" && lunar["IDayCn"] == "åä¸")) { 147 //ä¸å¤è 148 if (sessionStorage.getItem("isPopupWindow") != "1") { 149 Swal.fire("ä¸å¤èå¿«ä¹\n黿å,æ³æ¢¢å¤´,çéç»å¥³æ¥ç¢°å¤´"); 150 sessionStorage.setItem("isPopupWindow", "1"); 151 } 152} 153if ((lunar["IMonthCn"] == "å «æ" && lunar["IDayCn"] == "åäº")) { 154 //ä¸ç§è 155 if (sessionStorage.getItem("isPopupWindow") != "1") { 156 Swal.fire("ä¸ç§èå¿«ä¹\nè¯·ä½ åä¸åæé¥¼ðª"); 157 sessionStorage.setItem("isPopupWindow", "1"); 158 } 159} 160if ((lunar["IMonthCn"] == "乿" && lunar["IDayCn"] == "åä¹")) { 161 //éé³è 162 if (sessionStorage.getItem("isPopupWindow") != "1") { 163 Swal.fire("éé³èå¿«ä¹\nç¬å¨å¼ä¹¡ä¸ºå¼å®¢ï¼æ¯é¢ä½³èåæäº²"); 164 sessionStorage.setItem("isPopupWindow", "1"); 165 } 166} 167 168// 忢䏻颿é 169// if (y == 2022 && m == 12 && (dd >= 18 && dd <= 20)) { 170// if (sessionStorage.getItem("isPopupWindow") != "1") { 171// Swal.fire("ç½ç«æ¢æå¬æ¥éå®ä¸»é¢å¦â"); 172// sessionStorage.setItem("isPopupWindow", "1"); 173// } 174// }
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.