Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Added badge to identify searX results
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrevinnoc committed Mar 12, 2021
1 parent 3c17824 commit 22e374b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/css/color/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ p#gathered {

.url_item .link_paragraph2 .link a, .video_item .link_paragraph2 .link a {
color: #b82f2f;
text-decoration: underline;
text-decoration: none;
}

@media screen and (max-width: 960px) and (max-height: 1000px) {
Expand Down
4 changes: 4 additions & 0 deletions static/css/default/INDEX.css
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ p#gathered {
font-size: 1.7vh;
}

.underlined_link {
text-decoration: underline;
}

.video_item .video_thumbnail {
margin-right: 20px;
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion static/js/index_animations.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ $(function() {
searx_response = data.result

searx_response["urls"].reverse().forEach(function(url) {
$("#links_list").prepend('<div class="url_item"><p class="link_paragraph"><span class="domain"><a href="' + url["url"] + '">' + url["header"] + '</a></span></p><p class="link_paragraph2"><span class="link"><a href="' + url["url"] + '">' + url["url"] + '</a></span></p><p class="body searchable">' + url["body"] + '<p></div>')
$("#links_list").prepend('<div class="url_item"><p class="link_paragraph"><span class="domain"><a href="' + url["url"] + '">' + url["header"] + '</a></span></p><p class="link_paragraph2"><span class="link"><a href="' + url["url"] + '"><img src="/searX_badge.png"></img> <span class="underlined_link">' + url["url"] + '</span></a></span></p><p class="body searchable">' + url["body"] + '<p></div>')
});

counter += 1
Expand Down
Binary file added static/searX_badge.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 22e374b

Please sign in to comment.