Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Yokihito Oki
/
kanoya-univercity-prod
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4da3dce2
authored
2020-08-05 17:16:11 +0900
by
TaishiTokudome
Committed by
Yokihito Oki
2020-08-06 14:08:09 +0900
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
cherry pick
34395a2c
1 parent
80e64bfa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
templates/protostar/index.php
templates/protostar/index.php
View file @
4da3dce
...
...
@@ -203,10 +203,9 @@ if ($this->params->get('logoFile')) {
<link
rel=
"apple-touch-icon"
href=
"/apple-touch-icon.png"
>
<script>
window
.
onload
=
function
()
{
jQuery
(
function
(
$
)
{
var
obj
=
$
(
"#aside"
);
var
offset
=
$
(
obj
).
offset
();
var
topPadding
=
135
;
var
sW
=
window
.
innerWidth
;
var
sH
=
window
.
innerHeight
;
var
cW
=
obj
.
width
();
...
...
@@ -219,16 +218,22 @@ if ($this->params->get('logoFile')) {
if
(
document
.
querySelector
(
excludedPagesSelector
))
{
isExcluded
=
true
;
}
var
customHeight
=
$
(
".custom"
).
height
();
var
paddingTop
=
customHeight
-
80
;
if
(
cH
)
{
if
(
sH
>
cH
)
{
if
(
isExcluded
)
return
false
;
$
(
window
).
resize
(
function
()
{
customHeight
=
$
(
".custom"
).
height
();
paddingTop
=
customHeight
-
80
;
});
$
(
window
).
scroll
(
function
()
{
if
(
$
(
window
).
scrollTop
()
>
offset
.
top
)
{
if
(
$
(
window
).
scrollTop
()
>
customHeight
)
{
if
(
$
(
window
).
scrollTop
()
<
cwrapH
)
{
$
(
obj
).
stop
().
animate
({
duration
:
'fast'
,
marginTop
:
$
(
window
).
scrollTop
()
-
offset
.
top
+
topPadding
marginTop
:
$
(
window
).
scrollTop
()
-
paddingTop
});
}
else
{
$
(
obj
).
stop
().
animate
({});
...
...
@@ -242,6 +247,7 @@ if ($this->params->get('logoFile')) {
}
}
});
};
</script>
</head>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment