惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
The Last Watchdog
The Last Watchdog
T
Tenable Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
Simon Willison's Weblog
Simon Willison's Weblog
V
Vulnerabilities – Threatpost
F
Fortinet All Blogs
Microsoft Security Blog
Microsoft Security Blog
A
Arctic Wolf
云风的 BLOG
云风的 BLOG
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
GbyAI
GbyAI
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
MyScale Blog
MyScale Blog
B
Blog
Spread Privacy
Spread Privacy
S
Schneier on Security
Project Zero
Project Zero
L
LINUX DO - 热门话题
M
MIT News - Artificial intelligence
F
Full Disclosure
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
Cyberwarzone
Cyberwarzone
AWS News Blog
AWS News Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 三生石上(FineUI控件)
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
Security Latest
Security Latest
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tailwind CSS Blog
K
Kaspersky official blog
Recent Announcements
Recent Announcements
NISL@THU
NISL@THU
Cisco Talos Blog
Cisco Talos Blog
S
Securelist
P
Privacy & Cybersecurity Law Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Exploit Database - CXSecurity.com
V
Visual Studio Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Webroot Blog
Webroot Blog

260手游网

我的世界联机版手机版下载-我的世界多人联机版安卓下载v1.0.0.7-260手游网 Yandex安卓版下载-Yandex官方版下载v25.2.1.103-260手游网 搭游app最新版下载-搭游app安卓版下载v3.1.5-260手游网 我就是吃鸡单机版下载-我就是吃鸡九游版下载v1.0.2-260手游网 TG Labapp最新版下载-TG Labapp安卓版下载-260手游网 蛰犬蜂潮小游戏单机版下载-蛰犬蜂潮小游戏九游版下载v1.0-260手游网 毁灭之救世主游戏下载-毁灭之救世主手游下载v1.1.6-260手游网 乐禾趣碰app最新版下载-乐禾趣碰app安卓版下载v2.0.1-260手游网 LIBVIO看剧APP下载-LIBVIO官方手机版下载安装v2.2.0-260手游网 Maple计算器app下载-Maple计算器手机版下载v4.3.0-260手游网 AIMP安卓中文版下载-AIMP音乐播放器中文版下载v4.25.1673-260手游网 第四次元ai手机版下载-第四次元ai最新版下载v1.1-260手游网 恰谈appapp最新版下载-恰谈appapp安卓版下载v5.3-260手游网 跑跑大作战 日程计划app最新版下载-日程计划app安卓版下载v3.5.358-260手游网 NY平台app最新版下载-NY平台app安卓版下载v3.50.2-260手游网 领土战争汉化版下载-领土战争下载安装v1.2.1-260手游网 谜语大全app最新版下载-谜语大全app安卓版下载v3.5-260手游网 生存战争2中文版下载-生存战争2汉化版下载v2.0.2.1-260手游网 金辉剧场app最新版下载-金辉剧场app安卓版下载v1.0.0-260手游网 群英三国软件九游版下载-群英三国软件官方正版下载v2.0.1-260手游网 懒人听书免费版下载-懒人听书高级版下载v8.7.39-260手游网 盲盒派对官方版下载-盲盒派对最新版下载v7.0-260手游网 X物app最新版下载-X物app安卓版下载v1.0.45-260手游网 战途王者单机版下载-战途王者九游版下载v1.1-260手游网 糟糕的愤怒父母最新版下载-糟糕的愤怒父母手机版下载v1.0.4-260手游网 哇嘎播放器手机版下载-哇嘎播放器最新版下载v5.1.5-260手游网 中研学堂app最新版下载-中研学堂app安卓版下载v1.2.0-260手游网 可口的披萨安卓版下载-可口的披萨正版下载无广告v5.25.1-260手游网 男生女生向前冲最新版2025下载-男生女生向前冲最新版手机版下载v1.2-260手游网 旗帜照片处理工具手机版下载-旗帜照片处理工具免费版下载v1.0.1-260手游网 注意力强化训练软件V1.0最新版下载-注意力强化训练软件V1.0安卓版下载-260手游网 twitch直播下载安卓客户端-twitch直播下载手机版v23.4.1-260手游网 荒野日记孤岛最新版下载-荒野日记孤岛手机版下载v1.9.0.0-260手游网 粉碎城市最新版下载-粉碎城市安卓版下载v1.7.1-260手游网 安腾云app最新版下载-安腾云app安卓版下载v2.20-260手游网 商标设计app最新版下载-商标设计app安卓版下载v24.8.26-260手游网 探客猫点单助手app最新版下载-探客猫点单助手app安卓版下载v1.4.01-260手游网 智配store官方新版本下载-智配storeapp下载v3.114-260手游网 极乐圈圈app最新版下载-极乐圈圈app安卓版下载v1.0.3-260手游网 弗士漫画app官网下载-弗士漫画安卓版下载v1.3-260手游网 Shark Home最新版下载-Shark Home安卓版下载-260手游网 LightTrip saylo最新版app下载-saylo免费版下载v2.2.6-260手游网 真三国无双7单机版下载-真三国无双7手游下载v1.002-260手游网 饭蛋 砰砰军团最新版下载-砰砰军团安卓版下载v5.390-260手游网 腾讯NOW直播 超级跳跃足球汉化版下载-超级跳跃足球安卓版下载V1.0.6-260手游网 小站托福app下载-小站托福官方版下载v5.10.0-260手游网 香港证券考试app最新版下载-香港证券考试app安卓版下载v1.5.3-260手游网 城市乌托邦手游下载安装-城市乌托邦最新版下载v20.0.11-260手游网 吞食天地2中文版安卓下载-吞食天地2完全版手机版下载v1.0.3-260手游网 三国大领主九游版下载-三国大领主官方正版下载v19.2-260手游网 万能打印机app最新版下载-万能打印机app安卓版下载v1.20-260手游网 丧尸乐园游戏下载-丧尸乐园官方版下载v1.1-260手游网 煌星游戏库app下载-煌星游戏库最新版下载v1.0-260手游网 cheatengine安卓版下载-cheat engine手机版下载v1.0-260手游网 英魂之刃手游 千年江湖 优培网校 尚蠡生活app最新版下载-尚蠡生活app安卓版下载v1.0.8-260手游网 巨吉搬运工发布方app最新版下载-巨吉搬运工发布方app安卓版下载v1.2.1-260手游网 Wallpaper Engine壁纸引擎下载-Wallpaper Engine手机版下载v2.6.9-260手游网 喵次元 荒原app最新版下载-荒原app安卓版下载v2.4.1-260手游网 Boylove 易面库 心雨影评正版 中华会计网校官方app 歪歪漫画正版 暴风影音16 Spotifyapp官网 飞鸟租号app下载-飞鸟租号最新版下载v3.1.7-260手游网 坦克世界闪击战网易版下载-坦克世界闪击战网易官方版下载v11.17.0.99-260手游网 小熊直播免费观看下载-小熊直播官网下载v30.1.5-260手游网 愤怒的小鸟2官方正版下载-愤怒的小鸟2正版下载安装最新版v8.0.2-260手游网 影视工场免费追剧下载-影视工场最新版下载v3.1.7-260手游网 主公跑跑跑九游版下载-主公跑跑跑官方正版下载v1.0.0-260手游网 我是大东家九游版下载-我是大东家官方正版下载v5.3.72-260手游网 魅影app下载免费版-魅影视频最新版免登录版下载v1.0.0-260手游网 无聊笔记安卓版下载-无聊笔记最新版下载v2.2.3-260手游网 灰烬大陆九游版下载-灰烬大陆官方正版下载v1.0.1-260手游网 求职通app下载-求职通正版下载v1.2.0-260手游网 灵幻AIapp官网下载-灵幻AI免费版下载安装v1.4.3.1202-260手游网 立码富商户app最新版下载-立码富商户app安卓版下载v1.7.8-260手游网 准星辅助器大师app最新版下载-准星辅助器大师app安卓版下载v1.0.5-260手游网 小蓝同志交友软件app最新版下载-小蓝同志交友软件app安卓版下载v2.1.5-260手游网 配音阁app下载-讯飞配音(原配音阁)官方版下载v2.8.45-260手游网 全免漫画正版下载最新版-全免漫画正版下载无广告v1.5.4-260手游网 惟德乃兴app最新版下载-惟德乃兴app安卓版下载v3.3.7-260手游网 央视新闻app 富豪闯三国九游版下载-富豪闯三国官方正版下载v5.9.0.4-260手游网 冒险岛枫之传说手游下载-冒险岛枫之传说中文版下载V2.140.4460-260手游网 葫芦娃影视免费追剧下载-葫芦娃影视安卓版下载v3.3.25-260手游网 韩语入门app最新版下载-韩语入门app安卓版下载v3.1.6-260手游网 音跃球球正版下载-音跃球球正版最新版下载v6.11.5-260手游网 动物园之星中文版免费下载-动物园之星中文版手机版下载v1.8-260手游网 转盘喵app最新版下载-转盘喵app安卓版下载v1.7-260手游网 全民泡泡超人官方正版下载-全民泡泡超人最新版下载v2.15.1-260手游网
代码样式优化下 - 260站长社区
Administrato · 2026-06-17 · via 260手游网

代码样式需要优化下

<style>
/* 节日弹窗样式 */
.festival-popup {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 999999;
cursor: pointer;
opacity: 0;
animation: fadeIn 0.3s forwards;
}

/* 海报图片样式 */
.festival-popup img {
max-width: 90%;
max-height: 90vh;
object-fit: contain;
border-radius: 12px;
}

/* 关闭按钮 × */
.close-btn {
position: absolute;
top: 20px;
right: 20px;
width: 44px;
height: 44px;
background: rgba(0, 0, 0, 0.5);
color: #fff;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}

/* 淡入动画 */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>

<script>
document.addEventListener('DOMContentLoaded', function () {

// ==========================
// 🎨 在这里替换你的海报图片
// ==========================

// 阳历节日
const solarList = [
{ name: "元旦", img: "https://picsum.photos/id/1/800/1000" },
{ name: "情人节", img: "https://picsum.photos/id/2/800/1000" },
{ name: "妇女节", img: "https://picsum.photos/id/3/800/1000" },
{ name: "愚人节", img: "https://picsum.photos/id/4/800/1000" },
{ name: "劳动节", img: "https://picsum.photos/id/5/800/1000" },
{ name: "儿童节", img: "https://picsum.photos/id/6/800/1000" },
{ name: "教师节", img: "https://picsum.photos/id/7/800/1000" },
{ name: "国庆节", img: "https://picsum.photos/id/8/800/1000" },
{ name: "双十一", img: "https://picsum.photos/id/9/800/1000" },
{ name: "圣诞节", img: "https://picsum.photos/id/10/800/1000" }
];

// 农历节日
const lunarList = [
{ name: "春节", img: "https://picsum.photos/id/11/800/1000" },
{ name: "元宵节", img: "https://picsum.photos/id/12/800/1000" },
{ name: "端午节", img: "https://picsum.photos/id/13/800/1000" },
{ name: "七夕节", img: "https://picsum.photos/id/14/800/1000" },
{ name: "中秋节", img: "https://picsum.photos/id/15/800/1000" },
{ name: "重阳节", img: "https://picsum.photos/id/16/800/1000" }
];

// 二十四节气
const solarTermsList = [
{ name: "立春", img: "https://picsum.photos/id/17/800/1000" },
{ name: "雨水", img: "https://picsum.photos/id/18/800/1000" },
{ name: "惊蛰", img: "https://picsum.photos/id/19/800/1000" },
{ name: "春分", img: "https://picsum.photos/id/20/800/1000" },
{ name: "清明", img: "https://picsum.photos/id/21/800/1000" },
{ name: "谷雨", img: "https://picsum.photos/id/22/800/1000" },
{ name: "立夏", img: "https://picsum.photos/id/23/800/1000" },
{ name: "小满", img: "https://picsum.photos/id/24/800/1000" },
{ name: "芒种", img: "https://picsum.photos/id/25/800/1000" },
{ name: "夏至", img: "https://picsum.photos/id/26/800/1000" },
{ name: "小暑", img: "https://picsum.photos/id/27/800/1000" },
{ name: "大暑", img: "https://picsum.photos/id/28/800/1000" },
{ name: "立秋", img: "https://picsum.photos/id/29/800/1000" },
{ name: "处暑", img: "https://picsum.photos/id/30/800/1000" },
{ name: "白露", img: "https://picsum.photos/id/31/800/1000" },
{ name: "秋分", img: "https://picsum.photos/id/32/800/1000" },
{ name: "寒露", img: "https://picsum.photos/id/33/800/1000" },
{ name: "霜降", img: "https://picsum.photos/id/34/800/1000" },
{ name: "立冬", img: "https://picsum.photos/id/35/800/1000" },
{ name: "小雪", img: "https://picsum.photos/id/36/800/1000" },
{ name: "大雪", img: "https://picsum.photos/id/37/800/1000" },
{ name: "冬至", img: "https://picsum.photos/id/38/800/1000" },
{ name: "小寒", img: "https://picsum.photos/id/39/800/1000" },
{ name: "大寒", img: "https://picsum.photos/id/40/800/1000" }
];

// ==========================
// 🔧 下方为系统逻辑,请勿修改
// ==========================

const solarMap = {
"元旦": "01-01", "情人节": "02-14", "妇女节": "03-08", "愚人节": "04-01",
"劳动节": "05-01", "儿童节": "06-01", "教师节": "09-10", "国庆节": "10-01",
"双十一": "11-11", "圣诞节": "12-25"
};

const lunarMap = {
"春节": "01-01", "元宵节": "01-15", "端午节": "05-05",
"七夕节": "07-07", "中秋节": "08-15", "重阳节": "09-09"
};

// 获取农历日期
function getLunarDate(date) {
const lunarInfo = [0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0,0x055d2,0x04ae0,0x0a5b6,0x0a4d0,0x0d250,0x1d255,0x0b540,0x0d6a0,0x0ada2,0x095b0,0x14977,0x04970,0x0a4b0,0x0b4b5,0x06a50,0x06d40,0x1ab54,0x02b60,0x09570,0x052f2,0x04970,0x06566,0x0d4a0,0x0ea50,0x06e95,0x05ad0,0x02b60,0x186e3,0x092e0,0x1c8d7,0x0c950,0x0d4a0,0x1d8a6,0x0b550,0x056a0,0x1a5b4,0x025d0,0x092d0,0x0d2b2,0x0a950,0x0b557,0x06ca0,0x0b550,0x15355,0x04da0,0x0a5d0,0x14573,0x052d0,0x0a9a8,0x0e950,0x06aa0,0x0aea6,0x0ab50,0x04b60,0x0aae4,0x0a570,0x05260,0x0f263,0x0d950,0x05b57,0x056a0,0x096d0,0x04dd5,0x04ad0,0x0a4d0,0x0d4d4,0x0d250,0x0d558,0x0b540,0x0b5a0,0x195a6,0x095b0,0x049b0,0x0a974,0x0a4b0,0x0b27a,0x06a50,0x06d40,0x0af46,0x0ab60,0x09570,0x04af5,0x04970,0x064b0,0x074a3,0x0ea50,0x06b58,0x055c0,0x0ab60,0x096d5,0x092e0,0x0c960,0x0d954,0x0d4a0,0x0da50,0x07552,0x056a0,0x0abb7,0x025d0,0x092d0,0x0cab5,0x0a950,0x0b4a0,0x0baa4,0x0ad50,0x055d9,0x04ba0,0x0a5b0,0x15176,0x052b0,0x0a930,0x07954,0x06aa0,0x0ad50,0x05b52,0x04b60,0x0a6e6,0x0a4e0,0x0d260,0x0ea65,0x0d530,0x05aa0,0x076a3,0x096d0,0x04bd7,0x04ad0,0x0a4d0,0x1d0b6,0x0d250,0x0d520,0x0dd45,0x0b5a0,0x056d0,0x055b2,0x049b0,0x0a577,0x0a4b0,0x0aa50,0x1b255,0x06d20,0x0ada0];
const solarMonth = [31,28,31,30,31,30,31,31,30,31,30,31];
function isLeapYear(y) { return (y%4==0&&y%100!=0)||(y%400==0); }
function lYearDays(y) { let sum=348; for(let i=0x8000;i>0x8;i>>=1) sum+=(lunarInfo[y-1900]&i)?1:0; return sum+leapDays(y); }
function leapMonth(y) { return lunarInfo[y-1900]&0xf; }
function leapDays(y) { return leapMonth(y)?(lunarInfo[y-1900]&0x10000?30:29):0; }
function monthDays(y,m){ return lunarInfo[y-1900]&(0x10000>>m)?30:29; }

let y = date.getFullYear(), m = date.getMonth(), d = date.getDate();
if(y<1900||y>2100) return null;
let total = 0;
for(let i=1900;i<y;i++) total+=lYearDays(i);
if(isLeapYear(y)&&m>1) total++;
for(let i=0;i<m;i++) total+=solarMonth[i]; total+=d;
let ly=1900; while(total>lYearDays(ly)){ total-=lYearDays(ly); ly++; }
let lm=1,leap=leapMonth(ly),isLeap=false;
while(true){
let md=monthDays(ly,lm,lunarInfo);
if(leap&&lm==leap&&!isLeap){ md=leapDays(ly); isLeap=true; }
else{ if(total<=md) break; total-=md; lm++; isLeap=false; }
}
return `${String(lm).padStart(2,"0")}-${String(total).padStart(2,"0")}`;
}

// 获取节气
function getSolarTerm(date){
const terms = ["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"];
const baseDate = new Date(2000,0,6,2,5,0);
const ts = (Date.UTC(date.getFullYear(),date.getMonth(),date.getDate()) - baseDate.getTime()) / 86400000;
return terms[Math.floor((ts + 21.16) / 15.218425) % 24];
}

// 获取今天信息
const today = new Date();
const solarKey = `${String(today.getMonth()+1).padStart(2,0)}-${String(today.getDate()).padStart(2,0)}`;
const lunarKey = getLunarDate(today);
const currentTerm = getSolarTerm(today);
const storageKey = `popup_${solarKey}`;

// 优先级匹配:阳历 → 农历 → 节气
let todayImage = null;
for (let item of solarList) { if (solarMap[item.name] === solarKey) { todayImage = item.img; break; } }
if (!todayImage && lunarKey) { for (let item of lunarList) { if (lunarMap[item.name] === lunarKey) { todayImage = item.img; break; } } }
if (!todayImage) { for (let item of solarTermsList) { if (item.name === currentTerm) { todayImage = item.img; break; } } }

// 弹出逻辑(图片加载成功才显示)
if (todayImage && !localStorage.getItem(storageKey)) {
const popup = document.createElement("div");
popup.className = "festival-popup";

const img = new Image();
img.src = todayImage;
img.onload = function () {
popup.innerHTML = `<img src="${todayImage}" alt="节日海报"><div class="close-btn">×</div>`;
document.body.appendChild(popup);

// 点击背景关闭
popup.onclick = function (e) {
if (e.target === popup) {
popup.remove();
localStorage.setItem(storageKey, "1");
}
};

// 点击×关闭
popup.querySelector(".close-btn").onclick = function () {
popup.remove();
localStorage.setItem(storageKey, "1");
};
};
}
});
</script>