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

Merge with development

parents 2f21f7bf 5c43575c
Branches
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -10,23 +10,30 @@ $(document).ready(function () { ...@@ -10,23 +10,30 @@ $(document).ready(function () {
$($('#foki > li#savedFokiTabSelector').get(0)).find('>a').tab('show'); $($('#foki > li#savedFokiTabSelector').get(0)).find('>a').tab('show');
} }
var sprueche = getURLParameter('sprueche') === 'on'; // load the sprueche url parameter
if (localStorage.hasOwnProperty('param_sprueche')) { if (localStorage.hasOwnProperty('param_sprueche')) {
sprueche = localStorage.getItem('param_sprueche') === 'on'; // check for sprueche local storage parameter var sprueche = localStorage.getItem('param_sprueche') === 'on'; // check for sprueche local storage parameter
} else {
var sprueche = getURLParameter('sprueche') === 'on'; // load the sprueche url parameter
} }
var search = getURLParameter('eingabe'); var search = getMetaTag('q');
var locale = readLocaleFromUrl('de'); var locale = getMetaTag('l');
loadQuicktips(search, locale, sprueche); // load the quicktips loadQuicktips(search, locale, sprueche); // load the quicktips
}); });
/*
function readLocaleFromUrl (defaultLocale) { function readLocaleFromUrl (defaultLocale) {
return location.pathname.substr(1, location.pathname.indexOf('/meta', 0) - 1) || 'de'; return location.pathname.substr(1, location.pathname.indexOf('/meta', 0) - 1) || 'de';
} }
*/
function getURLParameter (name) { function getURLParameter (name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [null, ''])[1].replace(/\+/g, '%20')) || null; return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [null, ''])[1].replace(/\+/g, '%20')) || null;
} }
function getMetaTag(name) {
return $('meta[name="' + name + '"')[0].content;
}
function activateJSOnlyContent () { function activateJSOnlyContent () {
$('#searchplugin').removeClass('hide'); $('#searchplugin').removeClass('hide');
$('.js-only').removeClass('js-only'); $('.js-only').removeClass('js-only');
......
...@@ -660,6 +660,13 @@ a { ...@@ -660,6 +660,13 @@ a {
margin: 10px 0px; margin: 10px 0px;
padding-left: 10px; padding-left: 10px;
border-left: 3px solid #fb0; border-left: 3px solid #fb0;
details:not([open=""]) {
.quicktip-summary p {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.quicktip-summary { .quicktip-summary {
h1 { h1 {
font-size: 16px; font-size: 16px;
......
...@@ -5,8 +5,9 @@ ...@@ -5,8 +5,9 @@
<link href="/favicon.ico" rel="icon" type="image/x-icon" /> <link href="/favicon.ico" rel="icon" type="image/x-icon" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta content="width=device-width, initial-scale=1.0, user-scalable=no" name="viewport" /> <meta content="width=device-width, initial-scale=1.0, user-scalable=no" name="viewport" />
<meta content="{{ getmypid() }}" name="p" /> <meta name="p" content="{{ getmypid() }}" />
<meta content="{{ $eingabe }}" name="q" /> <meta name="q" content="{{ $eingabe }}" />
<meta name="l" content="{{ LaravelLocalization::getCurrentLocale() }}" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" /> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" />
<meta http-equiv="language" content="{!! trans('staticPages.meta.language') !!}" /> <meta http-equiv="language" content="{!! trans('staticPages.meta.language') !!}" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment