Fix img
parent
0fdcae3c0c
commit
a1264857d0
|
@ -236,7 +236,7 @@
|
||||||
if (bilibilis) {
|
if (bilibilis) {
|
||||||
ids = bilibilis.map(item => item.replace(/{\s*bilibili\s*(.*)\s*}/, '$1').replace(/.*video\/([^\/]*).*/, '$1').trim());
|
ids = bilibilis.map(item => item.replace(/{\s*bilibili\s*(.*)\s*}/, '$1').replace(/.*video\/([^\/]*).*/, '$1').trim());
|
||||||
}
|
}
|
||||||
content = content.replace(/#(.*?)\s/g, '').replace(/{.*}/g, '').replace(/\!\[(.*?)\]\((.*?)\)/g, '').replace(/```/g, '')
|
content = content.replace(/#(.*?)\s/g, '').replace(/{.*}/g, '').replace(/\!\[(.*?)\]\((.*?)\)/g, '').replace(/```/g,'')
|
||||||
let text = content.replace(/\[(.*?)\]\((.*?)\)/g, '[链接]').trim();
|
let text = content.replace(/\[(.*?)\]\((.*?)\)/g, '[链接]').trim();
|
||||||
return {content, ids, text}
|
return {content, ids, text}
|
||||||
}
|
}
|
||||||
|
|
|
@ -271,9 +271,7 @@
|
||||||
html += `<div class="talk_item"><div class="talk_meta"><img class="no-lightbox no-lazyload avatar" src="https://q1.qlogo.cn/g?b=qq&nk={{ .Data.qq }}&s=5"><div class="info"><span class="talk_nick">Leonus</span><span class="talk_date">${item.date}</span></div><a href="javascript:;" class="goComment" onclick="goComment('${item.text}')"><span class="icon"><i class="fa-solid fa-message fa-fw"></i></span></a></div><div class="talk_content">${item.content}</div></div>`
|
html += `<div class="talk_item"><div class="talk_meta"><img class="no-lightbox no-lazyload avatar" src="https://q1.qlogo.cn/g?b=qq&nk={{ .Data.qq }}&s=5"><div class="info"><span class="talk_nick">Leonus</span><span class="talk_date">${item.date}</span></div><a href="javascript:;" class="goComment" onclick="goComment('${item.text}')"><span class="icon"><i class="fa-solid fa-message fa-fw"></i></span></a></div><div class="talk_content">${item.content}</div></div>`
|
||||||
})
|
})
|
||||||
document.getElementById('talk').innerHTML = html
|
document.getElementById('talk').innerHTML = html
|
||||||
imgStatus.watch('.talk-img', () => {
|
imgStatus.watch('.talk-img', () => { waterfall('#talk')})
|
||||||
waterfall('#talk')
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
</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/waterfall.min.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue