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
80e64bfa
authored
2020-08-03 01:29:20 +0000
by
Yokihito Oki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
特定のページのサイドメニューの追従動作を外す
1 parent
f2a8c593
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
templates/protostar/index.php
templates/protostar/index.php
View file @
80e64bf
...
...
@@ -212,9 +212,17 @@ if ($this->params->get('logoFile')) {
var
cW
=
obj
.
width
();
var
cH
=
obj
.
height
();
var
cwrapH
=
$
(
"#c_wrap"
).
height
();
// 特定のページではスクロールしない
var
excludedPages
=
[
".record-page"
];
var
excludedPagesSelector
=
excludedPages
.
join
(
', '
);
var
isExcluded
=
false
;
if
(
document
.
querySelector
(
excludedPagesSelector
))
{
isExcluded
=
true
;
}
if
(
cH
)
{
if
(
sH
>
cH
)
{
if
(
isExcluded
)
return
false
;
$
(
window
).
scroll
(
function
()
{
if
(
$
(
window
).
scrollTop
()
>
offset
.
top
)
{
if
(
$
(
window
).
scrollTop
()
<
cwrapH
)
{
...
...
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