mirror of https://github.com/IoTcat/acg.watch.git
parent
df12aacca5
commit
91393214b8
3 changed files with 81 additions and 6 deletions
@ -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>观看经典番剧</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 517f61a3355b34d4d5ee296c7405e896031d02da |
||||
Subproject commit e70ebc4f85b25f1a09b9ff325865f342aa075c0e |
Loading…
Reference in new issue