mirror of
https://github.com/searxng/searxng.git
synced 2026-06-01 15:37:16 +02:00
[mod] oscar: move compiled files to the src directory
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
window.addEventListener('load', function() {
|
||||
// Hide infobox toggle if shrunk size already fits all content.
|
||||
$('.infobox').each(function() {
|
||||
var infobox_body = $(this).find('.infobox_body');
|
||||
var total_height = infobox_body.prop('scrollHeight') + infobox_body.find('img.infobox_part').height();
|
||||
var max_height = infobox_body.css('max-height').replace('px', '');
|
||||
if (total_height <= max_height) {
|
||||
$(this).find('.infobox_toggle').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user