trend link design

This commit is contained in:
cutls 2022-12-08 01:07:31 +09:00
parent af3442b414
commit 5504c4039a

View File

@ -37,6 +37,7 @@ function src(mode, offset) {
var acct_id = $('#src-acct-sel').val() var acct_id = $('#src-acct-sel').val()
if (acct_id == 'tootsearch') { if (acct_id == 'tootsearch') {
tsAdd(q) tsAdd(q)
$('#src-contents').html('')
return false return false
} }
localStorage.setItem('last-use', acct_id) localStorage.setItem('last-use', acct_id)
@ -361,16 +362,12 @@ async function trend() {
console.log(linkTrends) console.log(linkTrends)
let links = '' let links = ''
for (const link of linkTrends) { for (const link of linkTrends) {
links = links + `<a href="${link.url}" target="_blank">${link.url}</a><br />` + cardHtml(link, acct_id, '') + `<br />` links = links + `<a href="${link.url}" target="_blank">${link.url}</a><br />` + cardHtml(link, acct_id, '') + `<hr />`
} }
$('#src-contents').append(`<div id="src-content-link">Trend Links<br />${links}</div>`) $('#src-contents').append(`<div id="src-content-link">Trend Links<br />${links}</div>`)
} catch { } catch {
} }
} }
function srcBox(mode) { function srcBox(mode) {
if (mode == 'open') { if (mode == 'open') {