mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Merge branch 'searxng:master' into master
This commit is contained in:
commit
faf96ccd78
136 changed files with 1344 additions and 721 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
searx/static/themes/simple/js/searxng.min.js
vendored
2
searx/static/themes/simple/js/searxng.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -16,6 +16,10 @@
|
|||
}
|
||||
));
|
||||
|
||||
if (d.querySelector('#search_url button#copy_url')) {
|
||||
d.querySelector('#search_url button#copy_url').style.display = "block";
|
||||
}
|
||||
|
||||
searxng.on('.btn-collapse', 'click', function () {
|
||||
var btnLabelCollapsed = this.getAttribute('data-btn-text-collapsed');
|
||||
var btnLabelNotCollapsed = this.getAttribute('data-btn-text-not-collapsed');
|
||||
|
|
@ -41,6 +45,12 @@
|
|||
}
|
||||
});
|
||||
|
||||
searxng.on('#copy_url', 'click', function () {
|
||||
var target = this.parentElement.querySelector('pre');
|
||||
navigator.clipboard.writeText(target.innerText);
|
||||
this.innerText = this.dataset.copiedText;
|
||||
});
|
||||
|
||||
searxng.selectImage = function (resultElement) {
|
||||
/* eslint no-unused-vars: 0 */
|
||||
if (resultElement) {
|
||||
|
|
|
|||
|
|
@ -441,6 +441,7 @@ article[data-vim-selected].category-social {
|
|||
|
||||
& > a {
|
||||
position: relative;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
img {
|
||||
|
|
@ -729,9 +730,18 @@ summary.title {
|
|||
#search_url {
|
||||
div.selectable_url {
|
||||
pre {
|
||||
float: left;
|
||||
width: 200em;
|
||||
}
|
||||
}
|
||||
|
||||
button#copy_url {
|
||||
float: right;
|
||||
padding: 0.4rem;
|
||||
margin-left: 0.5rem;
|
||||
border-radius: 0.3rem;
|
||||
display: none; // will be shown by JS.
|
||||
}
|
||||
}
|
||||
|
||||
#links_on_top {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue