Compare commits

...

3 Commits

Author SHA1 Message Date
cn.yimian.xyz c7f640ac1e h 3 years ago
cn.yimian.xyz 91393214b8 list 3 years ago
cn.yimian.xyz df12aacca5 u 3 years ago
  1. 2
      api
  2. 14
      index.html
  3. 77
      list.html
  4. 2
      player

2
api

@ -1 +1 @@
Subproject commit 0ce1fc1d2de655b42fe0b14995fc2cfb87842372
Subproject commit 5b45972f011e6df3d87e4634d12971684acf7bfa

@ -12,29 +12,27 @@
<body>
<header>
<h1>ACG.WATCH</h1>
<p><span class=".zh"><abbr title="在 ACG.WATCH">在线</abbr>观看经典番剧</span><span class=".en">Watch ACG video <abbr title="At ACG.WATCH">ONLINE</abbr></span></p>
<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="./"><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>
<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>
<aside>
<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>
<a href="#" onClick="reload()"><span class=".zh">重载缓存</span><span class=".en">Reload Cache</span></a>
<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>
</aside>
</section>
</article>
</main>
@ -69,7 +67,7 @@
});
section += `
</section>`;
$('#content').append(section);
//$('#content').append(section);
});
});
/* reload func */

@ -0,0 +1,77 @@
<!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.auth = ['any'];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">在线</abbr>观看IoTcat的收藏</span><span class=".en">Watch ACG video <abbr title="At ACG.WATCH">ONLINE</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>
<aside>
<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>
</aside>
</section>
</article>
</main>
<footer>
<p style="text-align: center;"> Powered By <a href="https://ushio.cool/">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>

@ -1 +1 @@
Subproject commit 812b6f3861c87fdf271a0869f58de442f8ef504a
Subproject commit 2da9f343f88228d7de102dc8bacd08076d1b4315
Loading…
Cancel
Save