Skip to content

Commit

Permalink
format output of various search libraries to have consistent appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
Jieiku committed Aug 6, 2024
1 parent f72e5fb commit 9806e4a
Show file tree
Hide file tree
Showing 10 changed files with 264 additions and 254 deletions.
2 changes: 1 addition & 1 deletion static/js/abridge.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/abridge_nopwa.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ window.onload = function() {

// add <em/> around search terms
if (word[1] === TERM_WEIGHT) {
teaser.push("<b>");
teaser.push("<mark>");
}

startIndex = word[2] + word[0].length;
Expand All @@ -354,7 +354,7 @@ window.onload = function() {
}

if (word[1] === TERM_WEIGHT) {
teaser.push("</b>");
teaser.push("</mark>");
}
}
teaser.push("…");
Expand Down
2 changes: 1 addition & 1 deletion static/js/search_elasticlunr.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/search_tinysearch.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions static/js/searchjava.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ window.onload = function() {

// add <em/> around search terms
if (word[1] === TERM_WEIGHT) {
teaser.push("<b>");
teaser.push("<mark>");
}

startIndex = word[2] + word[0].length;
Expand All @@ -342,7 +342,7 @@ window.onload = function() {
}

if (word[1] === TERM_WEIGHT) {
teaser.push("</b>");
teaser.push("</mark>");
}
}
teaser.push("…");
Expand Down
4 changes: 2 additions & 2 deletions static/js/searchjavaugly.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ window.onload = function() {

// add <em/> around search terms
if (word[1] === TERM_WEIGHT) {
teaser.push("<b>");
teaser.push("<mark>");
}

startIndex = word[2] + word[0].length;
Expand All @@ -342,7 +342,7 @@ window.onload = function() {
}

if (word[1] === TERM_WEIGHT) {
teaser.push("</b>");
teaser.push("</mark>");
}
}
teaser.push("…");
Expand Down
Loading

0 comments on commit 9806e4a

Please sign in to comment.