You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

79 lines
3.0 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ACG WATCH</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/awsm.css@3.0.4/dist/awsm_theme_pearl-lusta.min.css">
<script type="text/javascript">block_aplayer = true;lang = ['zh', 'en'];</script>
<script src="https://cdn.yimian.xyz/ushio-js/ushio-head.min.js"></script>
<script type="text/javascript">page.proj = 'iotcat/acg.watch';</script>
<script>//page.auth = ['any'];</script>
</head>
<body>
<header>
<h1>ACG.WATCH</h1>
<p><span class=".zh"><abbr title="在 ACG.WATCH">让ACG视频无国界</abbr></span><span class=".en">Free ACG Video<abbr title="At ACG.WATCH"></abbr></span></p>
<nav>
<ul>
<li><a href="./" aria-hidden="false"><span class=".zh">主页</span><span class=".en">Homepage</span></a></li>
<li><a href="./list.html"><span class=".zh">列表</span><span class=".en">Playlist</span></a></li>
<li><a href="https://iotcat.me/"><span class=".zh">关于作者</span><span class=".en">About Me</span></a></li>
</ul>
</nav>
</header>
<main>
<article id="content">
<section>
<p>
<strong>S.F.</strong>
<span id="last_watch"><span>
<script>session.onload(function(){if(session.get('acg/last_watch'))$('#last_watch').html('<a href="https://acg.watch/player/?url='+session.get('acg/last_watch')+'">'+((page.tran.getLang() == 'zh')?'继续上次观看':'Continue Your Last Watch')+'</a>');});</script>
</p>
<p>
<strong>R.L.</strong> <span class=".zh">从链接播放视频</span><span class=".en">Play video form URL</span>
<p><input type="text" id="url" placeholder="https://xxx.xxxx.xxx/xxx/xxx.mp4"><button onClick="window.location.href='/player/?url='+$('#url').val()"><span class=".zh">播放</span><span class=".en">Play</span></button></p>
</p>
</section>
</article>
</main>
<footer>
<p style="text-align: center;"> Powered By <a href="https://ushio.yimian.xyz/">Ushio</a> | Made with love by <a href="https://iotcat.me">iotcat</a> </p>
<br>
</footer>
<script src="https://cdn.yimian.xyz/ushio-js/ushio-footer.min.js"></script>
<script type="text/javascript">
var root = 'https://acg.watch/';
$.get(root+'api/getAll', res => {
console.log(res);
//res = JSON.parse(res);
Object.keys(res).forEach(classes => {
var section = `
<section>
<h2>${classes}</h2>`;
Object.keys(res[classes]).forEach(series => {
section += `
<details>
<summary>${res[classes][series]['series']}</summary>
<ul>`;
res[classes][series]['video'].forEach(video => {
section += `
<li><a href="${root+'player?url='+video.url}">${video.name}</a></li>`;
});
section += `
</ul>
</details>`;
});
section += `
</section>`;
//$('#content').append(section);
});
});
/* reload func */
function reload(){
$.get('https://acg.watch/reloadCache.php', err => location.reload());
}
</script>
</body>
</html>