mirror of https://github.com/IoTcat/acg.watch.git
Compare commits
3 Commits
7be8460c12
...
c7f640ac1e
Author | SHA1 | Date |
---|---|---|
cn.yimian.xyz | c7f640ac1e | 3 years ago |
cn.yimian.xyz | 91393214b8 | 3 years ago |
cn.yimian.xyz | df12aacca5 | 3 years ago |
4 changed files with 85 additions and 10 deletions
@ -1 +1 @@ |
||||
Subproject commit 0ce1fc1d2de655b42fe0b14995fc2cfb87842372 |
||||
Subproject commit 5b45972f011e6df3d87e4634d12971684acf7bfa |
@ -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…
Reference in new issue