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
16014207
Commit
16014207
authored
Sep 27, 2017
by
Karl Hasselbring
Browse files
Ausklappbare Quicktips sind jetzt mit einem Pfeil gekennzeichnet
parent
6f3459e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/assets/js/scriptResultPage.js
View file @
16014207
...
...
@@ -19,11 +19,11 @@ $(document).ready(function () {
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
'
;
}
function
getURLParameter
(
name
)
{
function
getURLParameter
(
name
)
{
return
decodeURIComponent
((
new
RegExp
(
'
[?|&]
'
+
name
+
'
=
'
+
'
([^&;]+?)(&|#|;|$)
'
).
exec
(
location
.
search
)
||
[
null
,
''
])[
1
].
replace
(
/
\+
/g
,
'
%20
'
))
||
null
;
}
...
...
@@ -588,7 +588,7 @@ function getQuicktips (search, locale, blacklist, loadedHandler) {
title
:
$
(
this
).
children
(
'
title
'
).
text
(),
text
:
$
(
this
).
children
(
'
text
'
).
text
(),
url
:
$
(
this
).
children
(
'
url
'
).
text
()
}
}
;
}).
toArray
()
};
}).
toArray
();
...
...
@@ -637,6 +637,7 @@ function createQuicktips (quicktips, sprueche) {
}
else
{
headlineElem
.
text
(
quicktip
.
title
);
}
headlineElem
.
append
(
'
<i class="quicktip-extender fa fa-chevron-circle-down" aria-hidden="true"></i>
'
);
summaryElem
.
append
(
headlineElem
)
.
append
(
'
<p>
'
+
quicktip
.
summary
+
'
</p>
'
);
...
...
@@ -652,7 +653,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/assets/less/metager/result-page.less
View file @
16014207
...
...
@@ -640,10 +640,22 @@ a {
* </...>
*/
@keyframes quicktip-extender-turn {
from {
transform: rotate(0deg);
}
to {
transform: rotate(180deg);
}
}
#quicktips {
display: flex;
flex-direction: column;
// border: 2px solid #ccc;
flex-direction: column; // border: 2px solid #ccc;
details[open=""] .quicktip-extender {
animation-name: quicktip-extender-turn;
animation-fill-mode: forwards;
}
.quicktip {
margin: 10px 0px;
padding-left: 10px;
...
...
@@ -652,8 +664,14 @@ a {
h1 {
font-size: 16px;
font-weight: bold;
display: flex;
justify-content: space-between;
.quicktip-extender {
margin-left: 10px;
color: #777;
font-size: 20px;
}
}
p {}
}
.quicktip-detail {
border-top: 1px solid #ddd;
...
...
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