This commit is contained in:
li
2026-01-28 15:54:52 +08:00
commit de8b686dac
2599 changed files with 419168 additions and 0 deletions
+154
View File
@@ -0,0 +1,154 @@
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="renderer" content="webkit">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<title>player</title>
<style type="text/css">
*{
padding: 0;
margin: 0;
}
body{
overflow: hidden;
width: 100vw;
height: 100vh;
}
canvas{
display: block;
width: 100%;
height: 100%;
}
.spinner {
position: absolute;
top: 50%;
left: 50%;
width: 50px;
height: 50px;
text-align: center;
font-size: 10px;
z-index: 999;
margin-left: -25px;
margin-top: -25px;
}
.spinner > div {
background-color: #67CF22;
height: 100%;
width: 3px;
display: inline-block;
-webkit-animation: stretchdelay 1.2s infinite ease-in-out;
animation: stretchdelay 1.2s infinite ease-in-out;
}
.spinner .rect2 {
-webkit-animation-delay: -1.1s;
animation-delay: -1.1s;
}
.spinner .rect3 {
-webkit-animation-delay: -1.0s;
animation-delay: -1.0s;
}
.spinner .rect4 {
-webkit-animation-delay: -0.9s;
animation-delay: -0.9s;
}
.spinner .rect5 {
-webkit-animation-delay: -0.8s;
animation-delay: -0.8s;
}
@-webkit-keyframes stretchdelay {
0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
20% { -webkit-transform: scaleY(1.0) }
}
@keyframes stretchdelay {
0%, 40%, 100% {
transform: scaleY(0.4);
-webkit-transform: scaleY(0.4);
} 20% {
transform: scaleY(1.0);
-webkit-transform: scaleY(1.0);
}
}
</style>
</head>
<body oncontextmenu="return false;">
<canvas width="1280" height="760" id="video"></canvas>
<div class="spinner" id="loading">
<div class="rect1"></div>
<div class="rect2"></div>
<div class="rect3"></div>
<div class="rect4"></div>
<div class="rect5"></div>
</div>
</body>
<script type="text/javascript" src="./v0.5.9/NodePlayer-full.min.js"></script>
<script type="text/javascript">
var videoUrl='';
var isfirst=true;
window.onload=function(){
window.addEventListener("message",this.handleMessage);
window.parent.postMessage('start', '*');
}
NodePlayer.debug(false);
var player = new NodePlayer();
player.setView("video");
player.setBufferTime(0);
player.setVolume(0.0);
function handleMessage(event){
var data = event.data;
videoUrl = data.params.url;
switch (data.cmd) {
case 'Hall':
player.start(data.params.url);
document.getElementById("video").style.visibility="visible";
break;
case 'Play':
player.start(data.params.url);
document.getElementById("video").style.visibility="visible";
break;
case 'Refresh':
player.stop();
document.getElementById("loading").style.display="block";
player.start(data.params.url);
break;
case 'Switch':
player.stop();
document.getElementById("loading").style.display="block";
player.start(data.params.url);
break;
case 'isOff':
autoStop=false;
player.stop();
document.getElementById("video").style.visibility="hidden";
break
}
}
player.on("videoInfo", () => {
setTimeout(function(){
document.getElementById("loading").style.display="none";
},1000)
});
player.on("error", () => {
console.log("链接超时");
setTimeout(function(){
document.getElementById("loading").style.display="block";
},1000)
});
player.on("stop", () => {
console.log("已经暂停!");
});
</script>
</html>
+63
View File
@@ -0,0 +1,63 @@
<?php
$yearmonth_text = "Jump to previous stats: ";
$awstatsindex = 'awsindex.html';
$script = "<script>function load_content(url){var iframe = document.getElementById(\"content\");iframe.src = url;}</script>\n";
if ($handle = opendir('.'))
{
while(false !== ($file = readdir($handle)))
{
if (substr($file,0,1) != "." && is_dir($file))
{
$orderkey = substr($file,0,4).substr($file,5,2);
if (substr($file,5,2) < 10 )
{
$orderkey = substr($file,0,4)."0".substr($file,5,2);
}
$awprev[$orderkey] = $file;
}
}
$month = date("n");
$year = date("Y");
if (date("d") == 1)
{
$month = date("m")-1;
if (date("m") == 1)
{
$year = date("Y")-1;
$month = "12";
}
}
$current = $year.$month;
if ( $month < 10 ) {
$current = $year."0".$month;
}
$awprev[$current] = $year."-".$month;
closedir($handle);
}
arsort($awprev);
$options = "";
foreach ($awprev as $key => $value)
{
if($key == $current) $options .= "<option selected=\"selected\" value=\"{$awstatsindex}\">{$value}</option>\n";
else $options .= "<option value=\"{$value}/{$awstatsindex}\">{$value}</option>\n";
}
$html = "<!DOCTYPE html>\n<html>\n<head>\n<title>Stats</title>\n";
$html .= "<style>\nhtml,body {margin:0px;padding:0px;width:100%;height:100%;background-color: #ccc;}\n";
$html .= "#header\n{\nwidth:100%;margin:0px auto;\nheight:20px;\nposition:fixed;\npadding:4px;\ntext-align:center;\n}\n";
$html .= "iframe {width:100%;height:90%;margin:0px;margin-top:40px;border:0px;padding:0px;}\n</style>\n</head>\n<body>\n";
$html .= $script;
$html .= "<div id=\"header\">{$yearmonth_text}\n";
$html .= "<select name=\"awdate\" onchange=\"load_content(this.value)\">\n";
$html .= $options;
$html .= "</select>\n</div>\n<iframe src=\"{$awstatsindex}\" id=\"content\"></iframe>\n";
$html .= "</body></html>";
echo $html;
?>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+151
View File
@@ -0,0 +1,151 @@
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="renderer" content="webkit">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<title>player</title>
<style type="text/css">
*{
padding: 0;
margin: 0;
}
body{
overflow: hidden;
width: 100vw;
height: 100vh;
}
canvas{
display: block;
width: 100%;
height: 100%;
}
.spinner {
position: absolute;
top: 50%;
left: 50%;
width: 50px;
height: 50px;
text-align: center;
font-size: 10px;
z-index: 999;
margin-left: -25px;
margin-top: -25px;
}
.spinner > div {
background-color: #67CF22;
height: 100%;
width: 3px;
display: inline-block;
-webkit-animation: stretchdelay 1.2s infinite ease-in-out;
animation: stretchdelay 1.2s infinite ease-in-out;
}
.spinner .rect2 {
-webkit-animation-delay: -1.1s;
animation-delay: -1.1s;
}
.spinner .rect3 {
-webkit-animation-delay: -1.0s;
animation-delay: -1.0s;
}
.spinner .rect4 {
-webkit-animation-delay: -0.9s;
animation-delay: -0.9s;
}
.spinner .rect5 {
-webkit-animation-delay: -0.8s;
animation-delay: -0.8s;
}
@-webkit-keyframes stretchdelay {
0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
20% { -webkit-transform: scaleY(1.0) }
}
@keyframes stretchdelay {
0%, 40%, 100% {
transform: scaleY(0.4);
-webkit-transform: scaleY(0.4);
} 20% {
transform: scaleY(1.0);
-webkit-transform: scaleY(1.0);
}
}
</style>
</head>
<body oncontextmenu="return false;">
<canvas width="1280" height="760" id="video"></canvas>
<div class="spinner" id="loading">
<div class="rect1"></div>
<div class="rect2"></div>
<div class="rect3"></div>
<div class="rect4"></div>
<div class="rect5"></div>
</div>
</body>
<script type="text/javascript" src="./v0.5.9/NodePlayer-full.min.js"></script>
<script type="text/javascript">
var videoUrl=getQueryString('url');
var isfirst=true;
window.onload=function(){
runEvery10Sec();
}
NodePlayer.debug(false);
var player = new NodePlayer();
player.setView("video");
player.setBufferTime(0);
player.setVolume(0.0);
player.start(videoUrl);
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
// 自动重新执行
function runEvery10Sec(){
// setTimeout(runEvery10Sec,60*1000*9);
// console.log(isfirst)
// if(isfirst!=true){
player.start(videoUrl);
// console.log("自动重新播放"+videoUrl);
// }
isfirst=false;
}
player.on("videoInfo", () => {
setTimeout(function(){
document.getElementById("loading").style.display="none";
},1000)
});
player.on("error", () => {
console.log("链接超时");
// setTimeout(function(){
// document.getElementById("loading").style.display="block";
// },1000)
});
player.on("stop", () => {
console.log("已经暂停!");
setTimeout(function(){
player.start(videoUrl);
console.log("自动重新播放"+videoUrl);
},1000)
});
</script>
</html>