Merge pull request #5 from jiz4oh/patch-1

feat: add a link
This commit is contained in:
Levy,Wang 2025-03-13 15:47:45 +08:00 committed by GitHub
commit f02f4efc44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,7 +243,7 @@ function displaySearchResults(results) {
<div class="flex flex-col gap-4">
<h3 class="font-medium text-inherit break-all">${title}</h3>
<h3 class="font-medium text-inherit break-all"><a rel="nofollow" href="${magnet}" target="_blank" onclick="return false;">${title}</a></h3>
<div class="flex flex-wrap gap-2">
@ -1228,7 +1228,7 @@ function displayCollections(collections) {
collectionItem.className = 'magnet-item p-6 rounded-xl';
collectionItem.innerHTML = `
<div class="flex flex-col gap-4">
<h3 class="font-medium text-inherit break-all">${collection.title}</h3>
<h3 class="font-medium text-inherit break-all"><a rel="nofollow" href="${collection.link}" target="_blank" onclick="return false;">${collection.title}</a></h3>
<button onclick="copyToClipboard('${collection.link}')"
class="copy-button w-full px-4 py-2 rounded-lg text-sm font-medium text-white">
${translations[currentLang].copyButton}
@ -1244,7 +1244,7 @@ function displayCollections(collections) {
collectionItem.className = 'magnet-item p-6 rounded-xl';
collectionItem.innerHTML = `
<div class="flex flex-col gap-4">
<h3 class="font-medium text-inherit break-all">${title}</h3>
<h3 class="font-medium text-inherit break-all"><a rel="nofollow" href="${link}" target="_blank" onclick="return false;">${title}</a></h3>
<button onclick="copyToClipboard('${link}')"
class="copy-button w-full px-4 py-2 rounded-lg text-sm font-medium text-white">
${translations[currentLang].copyButton}