Fix img
parent
dbd62b3156
commit
2b7fdf7b9f
|
@ -248,7 +248,7 @@
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
html += `<div class="bilibili_item"><span>${item.text}</span>`
|
html += `<div class="bilibili_item"><span>${item.text}</span>`
|
||||||
for (const id of item.ids) {
|
for (const id of item.ids) {
|
||||||
await fetch(window.location.origin+`/api/bilibili?bvid=${id}`).then(res => res.json()).then(data => {
|
await fetch(`/api/bilibili?bvid=${id}`).then(res => res.json()).then(data => {
|
||||||
html += `<a href="https://www.bilibili.com/video/${id}/" class="bilibili_box" id="${id}">
|
html += `<a href="https://www.bilibili.com/video/${id}/" class="bilibili_box" id="${id}">
|
||||||
<div class="bilibili_cover">
|
<div class="bilibili_cover">
|
||||||
<img src="https://s1.hdslb.com/bfs/static/player/img/play.svg" class="play_icon no-lazyload">
|
<img src="https://s1.hdslb.com/bfs/static/player/img/play.svg" class="play_icon no-lazyload">
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
{{define "footer"}}
|
{{define "footer"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
|
{{if ne .Config.Icp ""}}
|
||||||
<span>{{ .Config.Icp }}</span><span class="footer-divider"> | </span>
|
<span>{{ .Config.Icp }}</span><span class="footer-divider"> | </span>
|
||||||
|
{{ end }}
|
||||||
<span>
|
<span>
|
||||||
© 2018 - <script>document.write(new Date().getFullYear())</script> {{ .Config.Author }}
|
© 2018 - <script>document.write(new Date().getFullYear())</script> {{ .Config.Author }}
|
||||||
Powered By <a href="{{ .Config.AppRepository }}" target="_blank"> {{ .Config.AppName }} </a>
|
Powered By <a href="{{ .Config.AppRepository }}" target="_blank"> {{ .Config.AppName }} </a>
|
||||||
|
|
|
@ -206,6 +206,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="limit">- 只展示最近30条说说 -</div>
|
<div class="limit">- 只展示最近30条说说 -</div>
|
||||||
|
<script defer src="https://cdn.jsdelivr.net/gh/jkjoy/14e/js/waterfall.min.js"></script>
|
||||||
|
<script defer src="https://cdn.jsdelivr.net/gh/jkjoy/14e/js/imgStatus.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function Format(item) {
|
function Format(item) {
|
||||||
let date = getTime(new Date(item.createdTs * 1000).toString()),
|
let date = getTime(new Date(item.createdTs * 1000).toString()),
|
||||||
|
@ -276,6 +278,5 @@
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<script defer src="https://cdn.jsdelivr.net/gh/jkjoy/14e/js/waterfall.min.js"></script>
|
|
||||||
<script defer src="https://cdn.jsdelivr.net/gh/jkjoy/14e/js/imgStatus.min.js"></script>
|
|
||||||
{{template "footer" .}}
|
{{template "footer" .}}
|
||||||
|
|
Loading…
Reference in New Issue