mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[build] /static
This commit is contained in:
parent
2f1384f198
commit
39876d9f14
@ -1309,6 +1309,7 @@ input.cursor-text {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
z-index: 1000000;
|
z-index: 1000000;
|
||||||
|
max-width: 40rem;
|
||||||
}
|
}
|
||||||
td:hover .engine-tooltip,
|
td:hover .engine-tooltip,
|
||||||
th:hover .engine-tooltip,
|
th:hover .engine-tooltip,
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1336,6 +1336,7 @@ input.cursor-text {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
z-index: 1000000;
|
z-index: 1000000;
|
||||||
|
max-width: 40rem;
|
||||||
}
|
}
|
||||||
td:hover .engine-tooltip,
|
td:hover .engine-tooltip,
|
||||||
th:hover .engine-tooltip,
|
th:hover .engine-tooltip,
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -299,6 +299,29 @@ $(document).ready(function(){
|
|||||||
$( this ).off( event );
|
$( this ).off( event );
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
;$(document).ready(function(){
|
||||||
|
let engine_descriptions = null;
|
||||||
|
function load_engine_descriptions() {
|
||||||
|
if (engine_descriptions == null) {
|
||||||
|
$.ajax("engine_descriptions.json", dataType="json").done(function(data) {
|
||||||
|
engine_descriptions = data;
|
||||||
|
for (const [engine_name, description] of Object.entries(data)) {
|
||||||
|
let elements = $('[data-engine-name="' + engine_name + '"] .description');
|
||||||
|
for(const element of elements) {
|
||||||
|
let source = ' (<i>' + searx.translations['Source'] + ': ' + description[1] + '</i>)';
|
||||||
|
element.innerHTML = description[0] + source;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.querySelector('body[class="preferences_endpoint"]')) {
|
||||||
|
$('[data-engine-name]').hover(function() {
|
||||||
|
load_engine_descriptions();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
;$(document).ready(function(){
|
;$(document).ready(function(){
|
||||||
$("#allow-all-engines").click(function() {
|
$("#allow-all-engines").click(function() {
|
||||||
$(".onoffswitch-checkbox").each(function() { this.checked = false;});
|
$(".onoffswitch-checkbox").each(function() { this.checked = false;});
|
||||||
|
2
searx/static/themes/oscar/js/searx.min.js
vendored
2
searx/static/themes/oscar/js/searx.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
@ -1929,6 +1929,14 @@ td:hover .engine-tooltip,
|
|||||||
#main_preferences div.selectable_url pre {
|
#main_preferences div.selectable_url pre {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
#main_preferences th.name .engine-tooltip {
|
||||||
|
margin-top: 1.8rem;
|
||||||
|
left: 20rem;
|
||||||
|
max-width: 40rem;
|
||||||
|
}
|
||||||
|
#main_preferences th.name .engine-tooltip .engine-description {
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
}
|
||||||
@media screen and (max-width: 75em) {
|
@media screen and (max-width: 75em) {
|
||||||
.preferences_back {
|
.preferences_back {
|
||||||
clear: both;
|
clear: both;
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1929,6 +1929,14 @@ td:hover .engine-tooltip,
|
|||||||
#main_preferences div.selectable_url pre {
|
#main_preferences div.selectable_url pre {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
#main_preferences th.name .engine-tooltip {
|
||||||
|
margin-top: 1.8rem;
|
||||||
|
left: 20rem;
|
||||||
|
max-width: 40rem;
|
||||||
|
}
|
||||||
|
#main_preferences th.name .engine-tooltip .engine-description {
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
}
|
||||||
@media screen and (max-width: 75em) {
|
@media screen and (max-width: 75em) {
|
||||||
.preferences_back {
|
.preferences_back {
|
||||||
clear: both;
|
clear: both;
|
||||||
|
2
searx/static/themes/simple/css/searx.min.css
vendored
2
searx/static/themes/simple/css/searx.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -621,6 +621,33 @@ searx.ready(function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
})(window, document, window.searx);
|
})(window, document, window.searx);
|
||||||
|
;(function (w, d, searx) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
searx.ready(function() {
|
||||||
|
let engine_descriptions = null;
|
||||||
|
function load_engine_descriptions() {
|
||||||
|
if (engine_descriptions == null) {
|
||||||
|
searx.http("GET", "engine_descriptions.json").then(function(content) {
|
||||||
|
engine_descriptions = JSON.parse(content);
|
||||||
|
for (const [engine_name, description] of Object.entries(engine_descriptions)) {
|
||||||
|
let elements = d.querySelectorAll('[data-engine-name="' + engine_name + '"] .engine-description');
|
||||||
|
for(const element of elements) {
|
||||||
|
let source = ' (<i>' + searx.translations['Source'] + ': ' + description[1] + '</i>)';
|
||||||
|
element.innerHTML = description[0] + source;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (d.querySelector('body[class="preferences_endpoint"]')) {
|
||||||
|
for(const el of d.querySelectorAll('[data-engine-name]')) {
|
||||||
|
searx.on(el, 'mouseenter', load_engine_descriptions);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})(window, document, window.searx);
|
||||||
;/**
|
;/**
|
||||||
* searx is free software: you can redistribute it and/or modify
|
* searx is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
* it under the terms of the GNU Affero General Public License as published by
|
||||||
|
2
searx/static/themes/simple/js/searx.min.js
vendored
2
searx/static/themes/simple/js/searx.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
Loading…
Reference in New Issue
Block a user