Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TDS_Myshop_Detail
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_Detail
Commits
f27c375f
Commit
f27c375f
authored
Jan 14, 2022
by
임지연_이모션
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[임지연/이모션]입력창 포커스 시 고정 헤더 바로 아래위치(키패트 이슈)
parent
682df334
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
tdirect-ui.js
src/assets/js/tdirect-ui.js
+13
-1
No files found.
src/assets/js/tdirect-ui.js
View file @
f27c375f
...
...
@@ -2518,3 +2518,15 @@ $(".seller-wrap").length && UI.sellerFront();
$
(
"input:text[numberOnly]"
).
on
(
"keyup"
,
function
()
{
$
(
this
).
val
(
$
(
this
).
val
().
replace
(
/
[^
0-9
]
/g
,
""
));
});
/* 공통 : input focus scrollTop */
$
(
"input[type='text'], textarea"
,
".c-input"
).
on
(
"focus"
,
function
()
{
//alert();
var
$topHeadHeight
=
$
(
'.header-sub'
).
height
();
var
$stickyHeight
=
$
(
'.sticky-top'
).
height
();
$
(
'html, body'
).
animate
({
scrollTop
:
$
(
this
).
offset
().
top
-
$topHeadHeight
-
$stickyHeight
-
40
},
400
);
console
.
log
(
$
(
this
).
offset
())
});
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