Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TDS_Myshop_Main
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
김정순_이모션
TDS_Myshop_Main
Commits
64f58656
Commit
64f58656
authored
May 19, 2022
by
임지연
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[임지연/이모션]플로팅 버튼 기능수정 js 2022.05.19
parent
31681235
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
index.html
index.html
+20
-8
No files found.
index.html
View file @
64f58656
...
...
@@ -1106,7 +1106,7 @@
<span
class=
"ico-counsel-toggle"
>
상담메뉴 접기/펴기 토글
</span>
</button>
<a
href=
"#top"
class=
"btn-top"
><span
class=
"ico-top"
>
맨위로
</span></a>
<a
href=
"#top"
class=
"btn-top"
style=
"display: none;"
><span
class=
"ico-top"
>
맨위로
</span></a>
</div>
<div
class=
"sticky-shortcut-dimmed"
style=
"display: none;"
></div>
<!-- //sticky 빠른메뉴 -->
...
...
@@ -1180,13 +1180,25 @@
}
})
// 2022.05.19 플로팅베너 기존 소스
$
(
'.btn-counsel-toggle'
).
on
(
'click'
,
function
()
{
$
(
'.sticky-shortcut'
).
toggleClass
(
'active'
);
$
(
'body'
).
toggleClass
(
'js-noscroll'
);
$
(
'.sticky-shortcut-dimmed'
).
toggle
();
});
// [D] 2022.05.19
function
_mainStickyBar
(){
// 2022.05.19 new (위로 버튼 노출)
$
(
window
).
on
(
"scroll"
,
function
(){
var
scroll
=
this
.
scrollY
;
if
(
scroll
>
100
)
{
$
(
'.btn-top'
).
show
();
}
else
{
$
(
'.btn-top'
).
hide
();
}
});
// 2022.05.19 플로팅베너 기존 소스
$
(
'.btn-counsel-toggle'
).
on
(
'click'
,
function
()
{
$
(
'.sticky-shortcut'
).
toggleClass
(
'active'
);
$
(
'body'
).
toggleClass
(
'js-noscroll'
);
$
(
'.sticky-shortcut-dimmed'
).
toggle
();
});
}
_mainStickyBar
()
</script>
</body>
...
...
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