Skip to content

Commit

Permalink
Add link to other string, and make string display inline
Browse files Browse the repository at this point in the history
  • Loading branch information
kordwarshuis committed Jul 12, 2024
1 parent ff5568d commit f227cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/typesenseInstantSearchInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,15 @@ const typesenseInstantSearchCreateDomElements = () => {
if (timestampElement) {
// Extracting and logging the content of the paragraph
const timestampContent = timestampElement.textContent;
document.querySelector('#index-created-timestamp-target-search-modal').innerHTML = `<a target="_blank" rel="noopener" href="indexed-in-KERISSE.html">` + timestampContent + `</a>`;
document.querySelector('#index-created-timestamp-target-search-modal').textContent = timestampContent;
} else {
console.log('Element with id "index-created-timestamp-source" not found.');
}

if (pageCountElement) {
// Extracting and logging the content of the paragraph
const pageCountContent = pageCountElement.textContent;
document.querySelector('#index-created-page-count-target-search-modal').textContent = pageCountContent;
document.querySelector('#index-created-page-count-target-search-modal').innerHTML = `<a class="d-inline" target="_blank" rel="noopener" href="indexed-in-KERISSE.html">` + pageCountContent + `</a>`;
} else {
console.log('Element with id "index-created-page-count-source" not found.');
}
Expand Down

0 comments on commit f227cb4

Please sign in to comment.