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

推荐订阅源

Engineering at Meta
Engineering at Meta
T
Threatpost
P
Palo Alto Networks Blog
NISL@THU
NISL@THU
O
OpenAI News
Project Zero
Project Zero
G
GRAHAM CLULEY
P
Privacy International News Feed
A
Arctic Wolf
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
S
Security @ Cisco Blogs
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
D
Docker
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
W
WeLiveSecurity
P
Proofpoint News Feed
腾讯CDC
Cloudbric
Cloudbric
S
Secure Thoughts
C
Check Point Blog
博客园 - Franky
T
The Exploit Database - CXSecurity.com
T
Troy Hunt's Blog
GbyAI
GbyAI
Security Archives - TechRepublic
Security Archives - TechRepublic
Application and Cybersecurity Blog
Application and Cybersecurity Blog
月光博客
月光博客
C
Cyber Attacks, Cyber Crime and Cyber Security
I
Intezer
TaoSecurity Blog
TaoSecurity Blog
L
Lohrmann on Cybersecurity
V
Visual Studio Blog
F
Fortinet All Blogs
博客园 - 叶小钗
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
C
Cisco Blogs
博客园 - 司徒正美
Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research

云云星羽

halo自定义字体 iphone苹果设备越狱详细图文教程IOS 11.0 ~ IOS 14.8 嗐,域名还是换回去了 随机视频,单页 indexNow推送测试 由于此设备上的安全设置已更改,你的PIN不再可用。 highlight.js 代码高亮-主题预览 短网址程序 YOURLS 安装配置中文设置教程 换域名了,辛苦看到了改一下链接 wps公式,计算当月范围的休息天数 K8S架构原理及其工作流程 CloudFlare公共优选Cname域名地址 我的播客 免费图床 奥特格斗进化重生-连招 解决Alist上传文件时的413和504问题 解决静态资源跨域 alist跨域报错解决 alist外链
pix侧边栏随机视频
云云星羽 · 2025-07-22 · via 云云星羽
<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <title>随机视频</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        body {
            background: rgb(235, 242, 237);
            margin: 0;
            font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
            box-sizing: border-box;
        }

        .card {
            width: 100%;
            max-width: 100vw;
            margin: 0 auto;
            background: rgb(235, 242, 237);
            border-radius: 1.5rem;
            box-shadow: 0 4px 24px rgba(80, 80, 120, 0.10);
            padding: 8px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-sizing: border-box;
        }

        .video-wrapper {
            width: 100%;
            max-width: 100vw;
            aspect-ratio: 9/16;
            border-radius: 1rem;
            overflow: hidden;
            background: rgb(235, 242, 237);
            box-shadow: 0 2px 12px rgba(80, 80, 120, 0.12);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-sizing: border-box;
        }

        video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 1rem;
            background: rgba(245, 245, 255, 0.7);
            display: block;
        }

        #refreshBtn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(60, 60, 60, 0.7);
            border: none;
            outline: none;
            cursor: grab;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 16px rgba(60, 60, 60, 0.88);
            border-radius: 50%;
            padding: 0;
            width: 36px;
            height: 36px;
            transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
            z-index: 2;
            user-select: none;
        }

        #refreshBtn:active {
            transform: translateY(-50%) rotate(-30deg) scale(0.95);
            box-shadow: 0 1px 4px rgba(80, 80, 120, 0.18);
            background: rgba(60, 60, 60, 0.85);
            cursor: grabbing;
        }

        @media (max-width: 500px) {
            .card {
                width: 100vw;
                max-width: 100vw;
                padding: 4px 0;
                border-radius: 0.8rem;
            }

            .video-wrapper {
                width: 100vw;
                max-width: 100vw;
                border-radius: 0.8rem;
            }
        }
    </style>
</head>

<body>
    <div class="card">
        <div class="video-wrapper">
            <video id="randomVideo" src="https://api.yujn.cn/api/zzxjj.php" controls></video>
            <button id="refreshBtn" title="刷新视频">
                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="24" height="24">
                    <path
                        d="M12 4C9.25144 4 6.82508 5.38626 5.38443 7.5H8V9.5H2V3.5H4V5.99936C5.82381 3.57166 8.72764 2 12 2C17.5228 2 22 6.47715 22 12H20C20 7.58172 16.4183 4 12 4ZM4 12C4 16.4183 7.58172 20 12 20C14.7486 20 17.1749 18.6137 18.6156 16.5H16V14.5H22V20.5H20V18.0006C18.1762 20.4283 15.2724 22 12 22C6.47715 22 2 17.5228 2 12H4Z">
                    </path>
                </svg>
            </button>
        </div>
    </div>
    <script>
        // 刷新视频功能
        document.getElementById('refreshBtn').onclick = function (e) {
            // 如果正在拖动则不触发刷新
            if (window._draggingBtn) return;
            var video = document.getElementById('randomVideo');
            video.src = 'https://api.yujn.cn/api/zzxjj.php?t=' + Date.now();
            video.load();
            video.play();
        };

        // 拖动按钮功能
        (function () {
            var btn = document.getElementById('refreshBtn');
            var wrapper = btn.parentElement;
            var dragging = false, offsetX = 0, offsetY = 0;
            var startX, startY, btnX, btnY;

            // 初始位置
            btn.style.right = '10px';
            btn.style.top = '50%';
            btn.style.left = '';
            btn.style.bottom = '';

            btn.addEventListener('mousedown', function (e) {
                dragging = true;
                window._draggingBtn = true;
                btn.style.cursor = 'grabbing';
                var rect = wrapper.getBoundingClientRect();
                var btnRect = btn.getBoundingClientRect();
                startX = e.clientX;
                startY = e.clientY;
                btnX = btnRect.left - rect.left;
                btnY = btnRect.top - rect.top;
                document.body.style.userSelect = 'none';
            });

            document.addEventListener('mousemove', function (e) {
                if (!dragging) return;
                var wrapperRect = wrapper.getBoundingClientRect();
                var x = btnX + (e.clientX - startX);
                var y = btnY + (e.clientY - startY);
                // 限制在容器内
                x = Math.max(0, Math.min(wrapperRect.width - btn.offsetWidth, x));
                y = Math.max(0, Math.min(wrapperRect.height - btn.offsetHeight, y));
                btn.style.left = x + 'px';
                btn.style.top = y + 'px';
                btn.style.right = '';
                btn.style.transform = '';
            });

            document.addEventListener('mouseup', function (e) {
                if (dragging) {
                    dragging = false;
                    window._draggingBtn = false;
                    btn.style.cursor = 'grab';
                    document.body.style.userSelect = '';
                }
            });
        })();
    </script>
</body>

</html>