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
f65936d3
Commit
f65936d3
authored
Sep 26, 2017
by
Karl Hasselbring
Browse files
Fixed layout of donation quicktip
Fixed passing of locale parameter
parent
7f9ad588
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/assets/js/scriptResultPage.js
View file @
f65936d3
...
...
@@ -14,9 +14,14 @@ $(document).ready(function () {
if
(
localStorage
.
hasOwnProperty
(
'
param_sprueche
'
))
{
sprueche
=
localStorage
.
getItem
(
'
param_sprueche
'
)
===
'
on
'
;
// check for sprueche local storage parameter
}
loadQuicktips
(
'
test
'
,
'
de
'
,
sprueche
);
// load the quicktips
var
locale
=
readLocaleFromUrl
(
'
de
'
);
loadQuicktips
(
'
test
'
,
locale
,
sprueche
);
// load the quicktips
});
function
readLocaleFromUrl
(
defaultLocale
)
{
return
location
.
pathname
.
substr
(
1
,
location
.
pathname
.
indexOf
(
'
/meta
'
,
0
)
-
1
)
||
'
de
'
;
}
function
getURLParameter
(
name
)
{
return
decodeURIComponent
((
new
RegExp
(
'
[?|&]
'
+
name
+
'
=
'
+
'
([^&;]+?)(&|#|;|$)
'
).
exec
(
location
.
search
)
||
[
null
,
''
])[
1
].
replace
(
/
\+
/g
,
'
%20
'
))
||
null
;
}
...
...
@@ -552,7 +557,7 @@ function loadQuicktips (search, locale, sprueche) {
getQuicktips
(
search
,
locale
,
blacklist
,
createQuicktips
);
}
const
QUICKTIP_SERVER
=
'
http://
localhost
:63825
'
;
const
QUICKTIP_SERVER
=
'
http://
quicktips.metager3.de
:63825
'
;
/**
* Requests quicktips from the quicktip server and passes them to the loadedHandler
...
...
resources/assets/less/metager/result-page.less
View file @
f65936d3
...
...
@@ -687,8 +687,9 @@ a {
.quicktip-summary {
display: flex;
justify-content: space-between;
align-items: center;
h1 {
margin
-right: 15
px;
margin
: 0
px;
}
p {
margin: 5px;
...
...
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