由于游戏更新,Wiki正在更新页面,当前内容可能并非最新版本,欢迎进群督促!
由于游戏更新,Wiki正在更新页面,当前内容可能并非最新版本,欢迎进群督促!
Widget:MapPageCompendium
<style> .MapScence {
display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 0;
}
.MapScence > div {
position: relative; border-radius: 12px; overflow: hidden; background-color: #f0f0f0;
}
.MapScence > div h3 {
margin: 0; width: 100%; height: 145px; background-color: transparent !important; background-size: cover; background-position: center; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; text-shadow: 1px 1px 2px black;
}
.MapScence > div .caption {
position: absolute; left: 0; right: 0; bottom: 0; margin: 0; color: white; background-color: rgba(0, 0, 0, 0.6); padding: 6px 12px; text-align: center; border-radius: 0 0 12px 12px; font-size: 14px; z-index: 1; box-sizing: border-box;
} .MapScence_009 .caption {
color: rgba(0, 0, 0, 0)!important;
} .MapPreview_img {
position: absolute; top: 5%; left: 1%; height:40px ; width:40px ; z-index: 2; background-color: rgba(255,255,255,0.5); border-radius: 4px; overflow: hidden;
} .MapName-text {
position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: white; background-color: rgba(0, 0, 0, 0); padding: 0 0; font-size: 30px; text-shadow: 3px 0 0 #000, 2.77px 1.15px 0 #000, 2.12px 2.12px 0 #000, 1.15px 2.77px 0 #000, 0 3px 0 #000, -1.15px 2.77px 0 #000, -2.12px 2.12px 0 #000, -2.77px 1.15px 0 #000, -3px 0 0 #000, -2.77px -1.15px 0 #000, -2.12px -2.12px 0 #000, -1.15px -2.77px 0 #000, 0 -3px 0 #000, 1.15px -2.77px 0 #000, 2.12px -2.12px 0 #000, 2.77px -1.15px 0 #000; font-weight: bold; z-index: 2; margin: 0; white-space: nowrap;
}
@media screen and (min-width:769px){ .Mode {
display:flex; width: 100%; padding: 2%; justify-content:center;
} .Mode > div {
display: block; width: 30%; margin: 1%; position:relative;
} .GameMode:active{
transform:translateY(4px) scale(0.98);
} .Mode > div > div {
display: flex; height: 48%; width:100%; position:relative;
} .ModeName {
position:absolute; bottom: 10%; left: 50%; transform: translateX(-50%); color:white; font-weight:bold; font-size:2.55vh; text-shadow: 3px 0 0 #000, 2.77px 1.15px 0 #000, 2.12px 2.12px 0 #000, 1.15px 2.77px 0 #000, 0 3px 0 #000, -1.15px 2.77px 0 #000, -2.12px 2.12px 0 #000, -2.77px 1.15px 0 #000, -3px 0 0 #000, -2.77px -1.15px 0 #000, -2.12px -2.12px 0 #000, -1.15px -2.77px 0 #000, 0 -3px 0 #000, 1.15px -2.77px 0 #000, 2.12px -2.12px 0 #000, 2.77px -1.15px 0 #000;
} .ModeDescription {
position:absolute; bottom: 1.5%; left: 50%; transform: translateX(-50%); color:white; font-weight:bold; font-size:1.3vh;
} .MatchTag {
padding:3%; position:absolute; top: 10%; left: -3%; color:white; font-weight:bold; font-size:2vh; text-shadow: 3px 0 0 #000, 2.77px 1.15px 0 #000, 2.12px 2.12px 0 #000, 1.15px 2.77px 0 #000, 0 3px 0 #000, -1.15px 2.77px 0 #000, -2.12px 2.12px 0 #000, -2.77px 1.15px 0 #000, -3px 0 0 #000, -2.77px -1.15px 0 #000, -2.12px -2.12px 0 #000, -1.15px -2.77px 0 #000, 0 -3px 0 #000, 1.15px -2.77px 0 #000, 2.12px -2.12px 0 #000, 2.77px -1.15px 0 #000; background-color:#C6FF4C; box-shadow:0 0 20px rgba(0,0,0,0.2); border-radius:5px;
} }
@media screen and (max-width:768px){ .Mode {
display:block; width: 100%; padding: 2%; justify-content:center;
} .Mode > div {
display: block; margin: 1%; position:relative;
} .GameMode:active{
transform:translateY(4px) scale(0.68);
} .Mode > div > div {
display: flex; position:relative;
} .ModeName {
position:absolute; bottom: 10%; left: 50%; transform: translateX(-50%); color:white; font-weight:bold; font-size:2.65vh; text-shadow: 3px 0 0 #000, 2.77px 1.15px 0 #000, 2.12px 2.12px 0 #000, 1.15px 2.77px 0 #000, 0 3px 0 #000, -1.15px 2.77px 0 #000, -2.12px 2.12px 0 #000, -2.77px 1.15px 0 #000, -3px 0 0 #000, -2.77px -1.15px 0 #000, -2.12px -2.12px 0 #000, -1.15px -2.77px 0 #000, 0 -3px 0 #000, 1.15px -2.77px 0 #000, 2.12px -2.12px 0 #000, 2.77px -1.15px 0 #000;
} .ModeDescription {
position:absolute; bottom: 1.5%; left: 50%; transform: translateX(-50%); color:white; font-weight:bold; font-size:1.5vh;
} .MatchTag {
padding:3%; position:absolute; top: 10%; left: -3%; color:white; font-weight:bold; font-size:2vh; text-shadow: 1px -1px black, -1px -1px black, 1px 1px black, -1px 1px black; background-color:#C6FF4C; box-shadow:0 0 20px rgba(0,0,0,0.2); border-radius:5px;
} .MapPreview_img {
position: absolute; top: 2%; left: 2%; height:4vh ; width:4vh ; z-index: 2; background-color: rgba(255,255,255,0.5); border-radius: 4px; overflow: hidden;
} .MapScence > div h3 {
margin: 0; width: 100%; height: 145px; background-color: rgba(0,0,0,0.6) !important; background-size: cover; background-position: center; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; text-shadow: 1px 1px 2px black;
} .MapScence > div .caption {
position: absolute; left: 0; right: 0; bottom: 0; margin: 0; color: white; background-color: rgba(0, 0, 0, 0.6); padding: 6px 12px; text-align: center; border-radius: 0 0 12px 12px; font-size: 10px; z-index: 1; box-sizing: border-box;
} .MapName-text {
position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: white; background-color: rgba(0, 0, 0, 0); padding: 0 0; font-size: 20px; text-shadow: 3px 0 0 #000, 2.77px 1.15px 0 #000, 2.12px 2.12px 0 #000, 1.15px 2.77px 0 #000, 0 3px 0 #000, -1.15px 2.77px 0 #000, -2.12px 2.12px 0 #000, -2.77px 1.15px 0 #000, -3px 0 0 #000, -2.77px -1.15px 0 #000, -2.12px -2.12px 0 #000, -1.15px -2.77px 0 #000, 0 -3px 0 #000, 1.15px -2.77px 0 #000, 2.12px -2.12px 0 #000, 2.77px -1.15px 0 #000; font-weight: bold; z-index: 2; margin: 0; white-space: nowrap;
} } </style> <script> const btns = document.querySelectorAll('.GameMode'); const box1 = document.querySelector('#box1'); const box2 = document.querySelector('#box2'); const box3 = document.querySelector('#box3'); const box4 = document.querySelector('#box4'); const box5 = document.querySelector('#box5'); const box6 = document.querySelector('#box6');
// 初始化状态 - 隐藏所有box function hideAllBoxes() {
if (box1) box1.style.display = "none"; if (box2) box2.style.display = "none"; if (box3) box3.style.display = "none"; if (box4) box4.style.display = "none"; if (box5) box5.style.display = "none"; if (box6) box6.style.display = "none";
}
// 初始隐藏所有 hideAllBoxes();
btns.forEach(btn => {
btn.onclick = () => {
// 先隐藏所有box
hideAllBoxes();
// 根据点击的按钮显示对应内容
if (btn.id === "btn1") {
if (box1) box1.style.display = "block";
if (box2) box2.style.display = "block";
if (box4) box4.style.display = "block";
}
else if (btn.id === "btn2") {
if (box1) box1.style.display = "block";
if (box3) box3.style.display = "block";
if (box5) box5.style.display = "block";
}
else if (btn.id === "btn3") {
if (box2) box2.style.display = "block";
if (box3) box3.style.display = "block";
if (box4) box4.style.display = "block";
if (box5) box5.style.display = "block";
}
else if (btn.id === "btn4") {
if (box6) box6.style.display = "block";
}
};
}); </script>

沪公网安备 31011002002714 号