mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
oscar template: implement search input, index page,...
This commit is contained in:
parent
ef1ead9c4b
commit
a538bed745
6 changed files with 48 additions and 9 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 7.5 KiB |
BIN
searx/static/oscar/img/searx_logo.png
Normal file
BIN
searx/static/oscar/img/searx_logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
|
|
@ -12,15 +12,11 @@ $(document).ready(function(){
|
|||
var btnClass = 'btn-' + $(this).data('btn-class');
|
||||
var btnLabelDefault = $(this).data('btn-label-default');
|
||||
var btnLabelToggled = $(this).data('btn-label-toggled');
|
||||
if(btnLabelToggled != '')
|
||||
{
|
||||
if($(this).hasClass('btn-default'))
|
||||
{
|
||||
if(btnLabelToggled != '') {
|
||||
if($(this).hasClass('btn-default')) {
|
||||
|
||||
var html = $(this).html().replace(btnLabelDefault, btnLabelToggled);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
var html = $(this).html().replace(btnLabelToggled, btnLabelDefault);
|
||||
}
|
||||
$(this).html(html);
|
||||
|
|
@ -28,4 +24,18 @@ $(document).ready(function(){
|
|||
$(this).toggleClass(btnClass);
|
||||
$(this).toggleClass('btn-default');
|
||||
});
|
||||
|
||||
$('.btn-collapse').click(function() {
|
||||
var btnTextCollapsed = $(this).data('btn-text-collapsed');
|
||||
var btnTextNotCollapsed = $(this).data('btn-text-not-collapsed');
|
||||
|
||||
if(btnTextCollapsed != '' && btnTextNotCollapsed != '') {
|
||||
if($(this).hasClass('collapsed')) {
|
||||
var html = $(this).html().replace(btnTextCollapsed, btnTextNotCollapsed);
|
||||
} else {
|
||||
var html = $(this).html().replace(btnTextNotCollapsed, btnTextCollapsed);
|
||||
}
|
||||
$(this).html(html);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue