你连错了投屏
分类:
娱乐
简介:代码 <!DOCTYPE html>
<html lang="zh CN">
<head>
<meta charset="UTF 8">
<meta name="viewport" content="width=device width, initial scale=1.0">
<title>投屏错误</title>
<style>
body {
margin: 0;
height: 100vh;
display: flex;
justify content: center;
align items: center;
background color: #f5f5f5;
font family: "Microsoft YaHei", sans serif;
}
.error container {
text align: center;
animation: fadeIn 1s ease in;
}
.error icon {
font size: 80px;
color: #ff4d4d;
margin bottom: 20px;
animation: bounce 2s infinite;
}
.error message {
font size: 24px;
color: #333;
margin bottom: 15px;
}
@keyframes bounce {
0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}
40% {
transform: translateY( 30px);
}
60% {
transform: translateY( 15px);
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY( 20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.retry button {
padding: 10px 20px;
font size: 16px;
background color: #4CAF50;
color: white;
border: none;
border radius: 5px;
cursor: pointer;
transition: background color 0.3s;
}
.retry button:hover {
background color: #45a049;
}
</style>
</head>
<body>
<div class="error container">
<div class="error icon">❌</div>
<div class="error message">你连错了投屏</div>
<button class="retry button" onclick="window.location.reload()">检查Wi Fi</button>
</div>
</body>
</html>
随机小姐姐
简介:示例
连续: 开
换一个
(function (window, document) {
if (top != self) {
window.top.location.replace(self.location.href);
}
var get = function (id) {
return document.getElementById(id);
}
var bind = function (element, event, callback) {
return element.addEventListener(event, callback);
}
var auto = true;
var player = get('player');
var randomm = function () {
player.src = 'http://v.nrzj.vip/video.php?_t=' + Math.random();
player.play();
}
bind(get('next1'), 'click', randomm);
bind(player, 'error', function () {
randomm();
});
bind(get('switch'), 'click', function () {
auto = !auto;
this.innerText = '连续: ' + (auto ? '开' : '关');
});
bind(player, 'ended', function () {
if (auto) randomm();
});
})(window, document);
var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?a8569fd6981018f096d774868306a054";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();
#switch,#next1{
background: #7F9CCC;
color:#fff;
line height:40px;
text align:center;
width:100px;
border:none;
margin:0 6px;
border radius:6px;
font weight:bold;
}
代码{hide}<div>
<section id="main">
<video id="player" src="http://v.nrzj.vip/video.php" controls="controls" width="100%" height="400px"></video>
</section>
</div>
<div style="text align: center;">
<section id="buttons">
<button id="switch">连续: 开</button>
<button id="next1">换一个</button>
</section>
</div>
<script src="https://hm.baidu.com/hm.js?a8569fd6981018f096d774868306a054"></script>
<script>
(function (window, document) {
if (top != self) {
window.top.location.replace(self.location.href);
}
var get = function (id) {
return document.getElementById(id);
}
var bind = function (element, event, callback) {
return element.addEventListener(event, callback);
}
var auto = true;
var player = get('player');
var randomm = function () {
player.src = 'http://v.nrzj.vip/video.php?_t=' + Math.random();
player.play();
}
bind(get('next1'), 'click', randomm);
bind(player, 'error', function () {
randomm();
});
bind(get('switch'), 'click', function () {
auto = !auto;
this.innerText = '连续: ' + (auto ? '开' : '关');
});
bind(player, 'ended', function () {
if (auto) randomm();
});
})(window, document);</script>
<script>var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?a8569fd6981018f096d774868306a054";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();</script>
<style>
#switch,#next1{
background: #7F9CCC;
color:#fff;
line height:40px;
text align:center;
width:100px;
border:none;
margin:0 6px;
border radius:6px;
font weight:bold;
}
</style>