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

Added Key input field for ad-free search
parent 0e0589c3
No related branches found
No related tags found
2 merge requests!939Development,!933Added Key input field for ad-free search
...@@ -51,7 +51,8 @@ class StartpageController extends Controller ...@@ -51,7 +51,8 @@ class StartpageController extends Controller
->with('time', $request->input('param_time', '1500')) ->with('time', $request->input('param_time', '1500'))
->with('sprueche', $request->input('param_sprueche', 'on')) ->with('sprueche', $request->input('param_sprueche', 'on'))
->with('newtab', $request->input('param_newtab', '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) public function loadPage($subpage)
......
...@@ -5,10 +5,13 @@ $(document).ready(function () { ...@@ -5,10 +5,13 @@ $(document).ready(function () {
$('#save').removeClass('hidden'); $('#save').removeClass('hidden');
$('#save').click(function () { $('#save').click(function () {
localStorage.setItem('pers', true); 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()); 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()); localStorage.setItem($(this).attr('name'), $(this).val());
}); });
document.location.href = $('#save').attr('data-href'); document.location.href = $('#save').attr('data-href');
......
...@@ -36,10 +36,13 @@ return [ ...@@ -36,10 +36,13 @@ return [
'request' => 'Abfragemethode', 'request' => 'Abfragemethode',
'autocomplete' => 'Auto-Vervollständigung (Sucheingabe)', 'autocomplete.label'=> 'Auto-Vervollständigung (Sucheingabe)',
'autocomplete.on' => 'ein', 'autocomplete.on' => 'ein',
'autocomplete.off' => 'aus', 'autocomplete.off' => 'aus',
'key.label' => 'Schlüssel für Werbefreie Suche',
'key.placeholder' => 'Schlüssel eingeben',
"foki.web" => "Web", "foki.web" => "Web",
"foki.andere" => "Andere", "foki.andere" => "Andere",
"foki.produktsuche" => "Produktsuche", "foki.produktsuche" => "Produktsuche",
......
...@@ -291,6 +291,7 @@ ...@@ -291,6 +291,7 @@
<input type="hidden" name="sprueche" value={{ $sprueche }} > <input type="hidden" name="sprueche" value={{ $sprueche }} >
<input type="hidden" name="newtab" value={{ $newtab }} > <input type="hidden" name="newtab" value={{ $newtab }} >
<input type="hidden" name="maps" value={{ $maps }} > <input type="hidden" name="maps" value={{ $maps }} >
<input type="hidden" name="key" value={{ $key }} >
@foreach ($focusPages as $fp) @foreach ($focusPages as $fp)
<input type="hidden" name={{ $fp }} value="on"> <input type="hidden" name={{ $fp }} value="on">
@endforeach @endforeach
......
...@@ -46,12 +46,16 @@ ...@@ -46,12 +46,16 @@
</select> </select>
</div> </div>
<div class="col-sm-6 col-md-4 col-lg-3"> <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"> <select class="form-control settings-form-control" name="param_autocomplete">
<option value="on" selected>@lang('settings.autocomplete.on')</option> <option value="on" selected>@lang('settings.autocomplete.on')</option>
<option value="off">@lang('settings.autocomplete.off')</option> <option value="off">@lang('settings.autocomplete.off')</option>
</select> </select>
</div> </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> </div>
</container> </container>
<div id="settingsButtons"> <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