Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
6f991b86
Commit
6f991b86
authored
Oct 10, 2017
by
Karl Hasselbring
Browse files
Merge branch 'development' into 589-umsetzung-erstes-neudesign-fur-ergebnisseite
parents
70727999
bdcd0327
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/assets/js/scriptResultPage.js
View file @
6f991b86
...
...
@@ -15,23 +15,27 @@ $(document).ready(function () {
}
else
{
var
sprueche
=
getURLParameter
(
'
sprueche
'
)
===
'
on
'
;
// load the sprueche url parameter
}
var
search
=
getMetaTag
(
'
q
'
);
var
locale
=
getMetaTag
(
'
l
'
);
var
search
=
getMetaTag
(
'
q
'
)
||
''
;
var
locale
=
getMetaTag
(
'
l
'
)
||
'
de
'
;
loadQuicktips
(
search
,
locale
,
sprueche
);
// load the quicktips
});
/*
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
;
}
function
getMetaTag
(
name
)
{
return
$
(
'
meta[name="
'
+
name
+
'
"
'
)[
0
].
content
;
function
getMetaTag
(
name
)
{
if
(
typeof
$
(
'
meta[name="
'
+
name
+
'
"
'
)[
0
]
!==
'
undefined
'
)
{
return
$
(
'
meta[name="
'
+
name
+
'
"
'
)[
0
].
content
||
null
;
}
else
{
return
null
;
}
}
function
activateJSOnlyContent
()
{
...
...
@@ -597,7 +601,7 @@ function getQuicktips (search, locale, blacklist, loadedHandler) {
title
:
$
(
this
).
children
(
'
title
'
).
text
(),
text
:
$
(
this
).
children
(
'
text
'
).
text
(),
url
:
$
(
this
).
children
(
'
url
'
).
text
()
}
}
;
}).
toArray
()
};
}).
toArray
();
...
...
@@ -662,7 +666,7 @@ function createQuicktips (quicktips, sprueche) {
detailElem
.
append
(
detailHeadlineElem
)
.
append
(
'
<p>
'
+
detail
.
text
+
'
</p>
'
);
mainElem
.
append
(
detailElem
);
mainElem
.
append
(
detailElem
);
});
}
else
{
mainElem
=
$
(
'
<div class="quicktip-summary">
'
);
...
...
resources/lang/de/index.php
View file @
6f991b86
...
...
@@ -27,7 +27,7 @@ return [
'sponsors.head.1'
=>
'Weitere Informationen'
,
'sponsors.head.2'
=>
'Sponsoren'
,
'sponsors.woxikon'
=>
'<a href="http://www.
suchmaschinenoptimierung
.jetzt" class="mutelink" target="_blank" rel="noopener">
Suchmaschinenoptimierung
</a>'
,
'sponsors.woxikon'
=>
'<a href="http://www.
tagesgeld
.jetzt" class="mutelink" target="_blank" rel="noopener">
Tagesgeld jetzt!
</a>'
,
'sponsors.gutscheine'
=>
'<a href="http://www.gutschein-magazin.de/" class="mutelink" target="_blank" rel="noopener">Aktuelle Gutscheine auf Gutschein-Magazin.de</a>'
,
'sponsors.kredite'
=>
'<a href="https://www.finanzcheck.de/" class="mutelink" target="_blank" rel="noopener">Günstige Kredite auf FINANZCHECK.de vergleichen</a>'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment