测试页面:修订间差异

来自SOKA CAFE
 
(未显示同一用户的3个中间版本)
第3行: 第3行:
     <meta charset="UTF-8">
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>整体页面</title>
     <title>自适应轮播图</title>
     <style>
     <style>
         * {
         * {
第10行: 第10行:
             box-sizing: border-box;
             box-sizing: border-box;
         }
         }
.container {
       
        max-width: 1200px;
        .container {
        margin: 0 auto;
            width: 90vw; /* 使用视口宽度 */
        background: #fff;
            max-width: 800px; /* 电脑端最大宽度 */
        border-radius: 12px;
            min-width: 280px; /* 最小宽度 */
        padding: 20px;
            height: auto;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            min-height: 120px; /* 最小高度 */
    }
            aspect-ratio: 2.03; /* 保持原有270/133≈2.03的比例 */
 
            margin: 20px auto;
    .title-bar {
            background: #fff;
        display: flex;
            border-radius: 12px;
        align-items: center;
            padding: 12px;
        justify-content: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        margin-bottom: 20px;
        }
        position: relative;
       
    }
        .carousel {
 
            position: relative;
    .title-bar::before, .title-bar::after {
            width: 100%;
        content: "";
            height: 100%;
        flex: 1;
            border-radius: 8px;
        height: 2px;
            overflow: hidden;
         background: #ccc;
        }
        margin: 0 20px;
       
    }
        .carousel-wrapper {
 
            display: flex;
    .title-text {
            width: 100%;
        font-size: 24px;
            height: 100%;
        font-weight: bold;
            transition: transform 0.5s ease;
        color: #333;
        }
    }
       
 
        .carousel-item {
    .search-box {
            flex: 0 0 100%;
        width: 100%;
            width: 100%;
        padding: 12px 16px;
            height: 100%;
        border: 1px solid #ddd;
         }
        border-radius: 8px;
       
        margin-bottom: 20px;
        .carousel-link {
        font-size: 16px;
            display: block;
        outline: none;
            width: 100%;
        transition: border-color 0.3s;
            height: 100%;
    }
        }
 
       
    .search-box:focus {
        .carousel-item img {
        border-color: #4facfe;
            width: 100%;
        box-shadow: 0 0 0 3px rgba(79,172,254,0.2);
            height: 100%;
    }
            object-fit: cover; /* 保持图片比例并填充容器 */
 
            object-position: center;
    .org-grid {
        }
        display: grid;
       
         grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        .carousel-btn {
         gap: 20px;
            position: absolute;
    }
            top: 50%;
 
            transform: translateY(-50%);
    .org-card {
            width: 36px;
        display: flex;
            height: 36px;
        align-items: center;
            background: rgba(0,0,0,0.4);
        background: #f8f9fa;
            color: #fff;
        border-radius: 8px;
            border: none;
         padding: 12px;
            border-radius: 50%;
        text-decoration: none;
            font-size: 18px;
        color: #333;
            cursor: pointer;
        transition: transform 0.3s, box-shadow 0.3s;
            z-index: 10;
    }
            display: flex;
 
            align-items: center;
    .org-card:hover {
            justify-content: center;
        transform: translateY(-5px);
            transition: background 0.3s;
         box-shadow: 0 6px 16px rgba(0,0,0,0.1);
        }
    }
       
 
        .carousel-btn:hover {
    .org-img {
            background: rgba(0,0,0,0.6);
        width: 80px;
        }
        height: 80px;
       
         object-fit: cover;
        .prev-btn {
        border-radius: 6px;
            left: 12px;
        margin-right: 16px;
         }
        border: 1px solid #eee;
       
    }
        .next-btn {
 
            right: 12px;
    .org-name {
         }
        font-size: 18px;
       
        font-weight: 600;
        .carousel-indicators {
        white-space: nowrap;
            position: absolute;
        overflow: hidden;
            bottom: 15px;
        text-overflow: ellipsis;
            left: 50%;
    }
            transform: translateX(-50%);
 
            display: flex;
    @media (max-width: 768px) {
            gap: 8px;
        .org-grid {
         }
             grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
       
        .indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            cursor: pointer;
            transition: all 0.3s;
        }
       
        .indicator.active {
            background: #fff;
            transform: scale(1.2);
         }
       
        /* 平板设备 */
        @media (max-width: 1024px) {
            .container {
                width: 85vw;
                max-width: 600px;
                padding: 10px;
            }
           
            .carousel-btn {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }
        }
       
        /* 手机设备 */
         @media (max-width: 768px) {
            .container {
                width: 92vw;
                max-width: 500px;
                padding: 8px;
                border-radius: 10px;
                margin: 15px auto;
            }
           
            .carousel {
                border-radius: 6px;
            }
           
            .carousel-btn {
                width: 28px;
                height: 28px;
                font-size: 14px;
                opacity: 0.9;
            }
           
            .prev-btn {
                left: 8px;
            }
           
            .next-btn {
                right: 8px;
            }
           
            .carousel-indicators {
                bottom: 10px;
             }
           
            .indicator {
                width: 8px;
                height: 8px;
            }
         }
         }
         .org-img {
          
             width: 60px;
        /* 小手机设备 */
            height: 60px;
        @media (max-width: 480px) {
            .container {
                width: 94vw;
                min-width: 260px;
                padding: 6px;
                margin: 10px auto;
            }
           
            .carousel-btn {
                width: 24px;
                height: 24px;
                font-size: 12px;
            }
           
            .prev-btn {
                left: 5px;
            }
           
            .next-btn {
                right: 5px;
             }
           
            .indicator {
                width: 6px;
                height: 6px;
            }
         }
         }
     }
     </style>
</style>
 
</head>
</head>
<body>
<body>
    <div style="font-size: min(4vw, 26px); margin-top: 20px; text-align: center; font-family: serif; padding: 0 10px;">
        '''欢迎来到「SOKA CAFE——エア本中文维基」'''
    </div>
    <div style="font-size: min(3vw, 18px); margin-bottom: 15px; text-align: center; margin-top: 10px; padding: 0 10px;">
        ''頭がパーン@wiki:中華エア本支部''
    </div>
   
     <div class="container">
     <div class="container">
         <div class="title-bar">
         <div class="carousel" id="carousel">
            <span class="title-text">主角势力</span>
            <div class="carousel-wrapper" id="carouselWrapper">
        </div>
                <div class="carousel-item">
        <input type="text" class="search-box" placeholder="搜索组织">
                    <a href="https://soka.cafe/index.php?title=创学" class="carousel-link">
        <div class="org-grid" id="orgGrid">
                        <img src="https://soka.cafe/Special:FilePath/解惑.jpg" alt="解惑">
                    </a>
                </div>
                <div class="carousel-item">
                    <a href="https://soka.cafe/index.php?title=维基观看与使用指南" class="carousel-link">
                        <img src="https://soka.cafe/Special:FilePath/导航1.1.jpg" alt="维基观看与使用指南">
                    </a>
                </div>
                <div class="carousel-item">
                    <a href="https://soka.cafe/index.php?title=入站须知" class="carousel-link">
                        <img src="https://soka.cafe/Special:FilePath/条责.jpg" alt="入站须知">
                    </a>
                </div>
            </div>
            <button class="carousel-btn prev-btn" id="prevBtn">&lt;</button>
            <button class="carousel-btn next-btn" id="nextBtn">&gt;</button>
            <div class="carousel-indicators" id="indicators"></div>
         </div>
         </div>
     </div>
     </div>
<script>
<script>
     const wikiDomain = "https://soka.cafe";  
     const carouselWrapper = document.getElementById("carouselWrapper");
     const orgData = [
     const prevBtn = document.getElementById("prevBtn");
        { imgName: "", link: "创价学会", name: "创价学会" },
    const nextBtn = document.getElementById("nextBtn");
        { imgName: "", link: "日莲正宗", name: "日莲正宗" },
    const indicators = document.getElementById("indicators");
        { imgName: "", link: "富士大石寺显正会", name: "富士大石寺显正会" },
    const carouselItems = document.querySelectorAll(".carousel-item");
     ];
    const itemCount = carouselItems.length;
     let currentIndex = 0;


     const orgGrid = document.getElementById("orgGrid");
     function renderIndicators() {
        indicators.innerHTML = "";
        for (let i = 0; i < itemCount; i++) {
            const indicator = document.createElement("div");
            indicator.className = `indicator ${i === currentIndex ? "active" : ""}`;
            indicator.addEventListener("click", () => goToSlide(i));
            indicators.appendChild(indicator);
        }
    }


     function getWikiImageUrl(imgName) {
     function goToSlide(index) {
         return `${wikiDomain}/Special:FilePath/${encodeURIComponent(imgName)}`;
         currentIndex = index;
        carouselWrapper.style.transform = `translateX(-${currentIndex * 100}%)`;
        renderIndicators();
     }
     }


     function renderOrgCards() {
     function prevSlide() {
         orgData.forEach(org => {
         currentIndex = (currentIndex - 1 + itemCount) % itemCount;
            const card = document.createElement("a");
        goToSlide(currentIndex);
            card.className = "org-card";
    }
            card.href = `${wikiDomain}/index.php?title=${encodeURIComponent(org.link)}`;
 
            const img = document.createElement("img");
            img.className = "org-img";
            img.src = getWikiImageUrl(org.imgName);
            img.alt = org.name;
            img.onerror = function() {
                this.src = `${wikiDomain}/Special:FilePath/默认图片.png`;
            };
 
            const name = document.createElement("div");
            name.className = "org-name";
            name.textContent = org.name;


            card.appendChild(img);
    function nextSlide() {
            card.appendChild(name);
        currentIndex = (currentIndex + 1) % itemCount;
            orgGrid.appendChild(card);
        goToSlide(currentIndex);
        });
     }
     }


     const searchBox = document.querySelector(".search-box");
    let autoPlay = setInterval(nextSlide, 5000);
     searchBox.addEventListener("input", function() {
     const carousel = document.getElementById("carousel");
        const keyword = this.value.toLowerCase().trim();
      
        orgGrid.innerHTML = "";
    // 鼠标悬停时暂停自动播放
        const filteredData = orgData.filter(org =>  
    carousel.addEventListener("mouseenter", () => clearInterval(autoPlay));
            org.name.toLowerCase().includes(keyword)
    carousel.addEventListener("mouseleave", () => {
        );
        clearInterval(autoPlay);
        filteredData.forEach(org => {
        autoPlay = setInterval(nextSlide, 5000);
            const card = document.createElement("a");
    });
            card.className = "org-card";
   
            card.href = `${wikiDomain}/index.php?title=${encodeURIComponent(org.link)}`;
    // 触摸设备支持
 
    let startX = 0;
            const img = document.createElement("img");
    let endX = 0;
            img.className = "org-img";
   
            img.src = getWikiImageUrl(org.imgName);
    carousel.addEventListener("touchstart", (e) => {
             img.alt = org.name;
        startX = e.touches[0].clientX;
            img.onerror = function() {
        clearInterval(autoPlay);
                this.src = `${wikiDomain}/Special:FilePath/默认图片.png`;
    });
            };
   
 
    carousel.addEventListener("touchend", (e) => {
            const name = document.createElement("div");
        endX = e.changedTouches[0].clientX;
            name.className = "org-name";
        if (startX - endX > 50) {
            name.textContent = org.name;
             nextSlide(); // 向左滑动
        } else if (endX - startX > 50) {
            prevSlide(); // 向右滑动
        }
        autoPlay = setInterval(nextSlide, 5000);
    });


            card.appendChild(img);
    prevBtn.addEventListener("click", prevSlide);
            card.appendChild(name);
    nextBtn.addEventListener("click", nextSlide);
            orgGrid.appendChild(card);
   
         });
    // 初始化
    renderIndicators();
   
    // 窗口大小变化时重新计算
    window.addEventListener("resize", () => {
        // 重新定位当前幻灯片
         goToSlide(currentIndex);
     });
     });
    renderOrgCards();
</script>
</script>
</body>
</body>
第196行: 第315行:




----
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
    <div id="pageContainer" style="position: relative; width: 300px; height: 200px; border: 1px solid #000; overflow: hidden;">
        <div id="page1" style="position: absolute; width: 100%; height: 100%; background: #f0f0f0; text-align: center; line-height: 200px; font-size: 20px;">
            第一页
        </div>
        <div id="page2" style="position: absolute; width: 100%; height: 100%; background: #e0e0e0; text-align: center; line-height: 200px; font-size: 20px; left: 300px;">
            第二页
        </div>
    </div>
    <button onclick="turnPage()" style="margin-top: 10px;">← 翻页</button>


    <script>
        let isFirstPage = true;
        const page1 = document.getElementById('page1');
        const page2 = document.getElementById('page2');
        const speed = 5;


        function turnPage() {
            if (isFirstPage) {
                animatePage(page1, -300, page2, 0);
            } else {
                animatePage(page2, 300, page1, 0);
            }
            isFirstPage = !isFirstPage;
        }


        function animatePage(pageOut, targetOut, pageIn, targetIn) {
            let currentOut = parseInt(pageOut.style.left || 0);
            let currentIn = parseInt(pageIn.style.left || 300);


            function frame() {
                if (currentOut !== targetOut) {
                    currentOut += (targetOut - currentOut) > 0 ? speed : -speed;
                    if (Math.abs(currentOut - targetOut) < speed) currentOut = targetOut;
                    pageOut.style.left = currentOut + 'px';
                }
                if (currentIn !== targetIn) {
                    currentIn += (targetIn - currentIn) > 0 ? speed : -speed;
                    if (Math.abs(currentIn - targetIn) < speed) currentIn = targetIn;
                    pageIn.style.left = currentIn + 'px';
                }
                if (currentOut !== targetOut || currentIn !== targetIn) {
                    requestAnimationFrame(frame);
                }
            }
            requestAnimationFrame(frame);
        }
    </script>
</body>
</html>





2026年1月27日 (二) 15:33的最新版本

自适应轮播图

'''欢迎来到「SOKA CAFE——エア本中文维基」'''
''頭がパーン@wiki:中華エア本支部''






第一页
第二页




</tabber> |-|历史上的星期=

【星期日】池田大作发表演讲《光荣属于战斗的学生部》

1968年9月8日,在创价学会第11届学生部大会中,池田大作面对一万数千名学生发表了历时1小时17分钟的演讲——《光荣属于战斗的学生部》,为创价学会推动中日邦交正常化作出重要贡献。

【星期日】第二次宗门事件正式拉开帷幕


第二次宗门事件,是创价学会与日莲正宗之间的矛盾已彻底无法调和的情况下所展开的最终决战。


|-|活动公告=

久本的虚拟化身“Paru”悬浮在宗教都市的圣殿中,脚下是由数以百万记的信徒们的祈祷所化作成的铁链。 在这片虚无的大地中,一道裂痕撕开了穹顶,《激突!美食赛跑!》的音乐,轰鸣而至……

</tabber>





字体测试

字体测试

字体测试
































表格测试

申请号 CN951080741 申请日期 1995-07-28
公告号 CN1141833A 公布/公告日期 1997-02-05
发明人 周寿坤、王志泽、孙正江 申请(专利权)人 北京汇佳物产技术公司
专利代理人 何润华 专利代理机构 北京申翔知识产权服务公司专利代理部
专利类型 发明专利 主分类号 B23K3/047
住所 北京市8756信箱
法律状态 -
摘要 本发明是对另一在先专利(ZL 94 21966.X)的改进方案。在焊枪装置上的改进是取消了焊针尾丝,和用于连接尾丝的衔接器、退焊针尾丝的滑杆。导电通路的这一部分直接由焊针连接卡爪、大簧座、大簧、导电套与穿过壳体的外接电源线连接。大簧兼作导电线圈和复位弹簧使用,通电时使内套磁化,吸引大簧座位移并带动卡爪夹带焊针在瓷环卡爪中拉弧,断电后使焊针复位固结焊口。自动拉弧钎焊机包括焊枪、焊针和自控电路。自控电路至少设置定时电路,还可串联过流保护电路,低于规定电压自锁电路、闪光电路。