Skip to content
Snippets Groups Projects
Commit f06f414d authored by Karl Hasselbring's avatar Karl Hasselbring
Browse files

Added Key input field for ad-free search
parent 1dd8e610
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
......@@ -51,7 +51,8 @@ class StartpageController extends Controller
->with('time', $request->input('param_time', '1500'))
->with('sprueche', $request->input('param_sprueche', 'on'))
->with('newtab', $request->input('param_newtab', 'on'))
->with('maps', $maps = $request->input('param_maps', 'off'));
->with('maps', $maps = $request->input('param_maps', 'off'))
->with('key', $request->input('param_key', ''));
}
public function loadPage($subpage)
......
......@@ -5,10 +5,13 @@ $(document).ready(function () {
$('#save').removeClass('hidden');
$('#save').click(function () {
localStorage.setItem('pers', true);
$('input[type=checkbox]:checked, input[type=hidden]').each(function (el) {
$('input[type=checkbox]:checked, input[type=hidden]').each(function () {
localStorage.setItem($(this).attr('name'), $(this).val());
});
$('select').each(function (el) {
$('select').each(function () {
localStorage.setItem($(this).attr('name'), $(this).val());
});
$('input[type=text]').each(function () {
localStorage.setItem($(this).attr('name'), $(this).val());
});
document.location.href = $('#save').attr('data-href');
......
......@@ -36,10 +36,13 @@ return [
'request' => 'Abfragemethode',
'autocomplete' => 'Auto-Vervollständigung (Sucheingabe)',
'autocomplete.label'=> 'Auto-Vervollständigung (Sucheingabe)',
'autocomplete.on' => 'ein',
'autocomplete.off' => 'aus',
'key.label' => 'Schlüssel für Werbefreie Suche',
'key.placeholder' => 'Schlüssel eingeben',
"foki.web" => "Web",
"foki.andere" => "Andere",
"foki.produktsuche" => "Produktsuche",
......
......@@ -291,6 +291,7 @@
<input type="hidden" name="sprueche" value={{ $sprueche }} >
<input type="hidden" name="newtab" value={{ $newtab }} >
<input type="hidden" name="maps" value={{ $maps }} >
<input type="hidden" name="key" value={{ $key }} >
@foreach ($focusPages as $fp)
<input type="hidden" name={{ $fp }} value="on">
@endforeach
......
......@@ -46,12 +46,16 @@
</select>
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<label class="select-label">@lang('settings.autocomplete'):</label>
<label class="select-label">@lang('settings.autocomplete.label'):</label>
<select class="form-control settings-form-control" name="param_autocomplete">
<option value="on" selected>@lang('settings.autocomplete.on')</option>
<option value="off">@lang('settings.autocomplete.off')</option>
</select>
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<label class="select-label">@lang('settings.key.label'):</label>
<input type="text" class="form-control settings-form-control" name="param_key" placeholder="@lang('settings.key.placeholder')">
</div>
</div>
</container>
<div id="settingsButtons">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment