Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abookCommunication
chat_webview
Commits
6eaeba8d
Commit
6eaeba8d
authored
Apr 16, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
キーボード最初表示とtoggle処理追加。
parent
9c802a74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletions
+22
-1
public_new/chat_room.html
+1
-1
public_new/js/chat.js
+21
-0
No files found.
public_new/chat_room.html
View file @
6eaeba8d
...
...
@@ -22,7 +22,7 @@
<nav>
<div
class=
"chat_room_src_form none"
>
<div
class=
"d-flex flex-row h-100 align-items-center"
>
<input
type=
"search"
name=
"search"
placeholder=
"ユーザー検索"
>
<input
type=
"search"
name=
"search"
id=
"searchMessage"
placeholder=
"ユーザー検索"
>
<span
class=
"src_icon"
></span>
<a
href=
"#"
class=
"cancel"
>
キャンセル
</a>
</div>
...
...
public_new/js/chat.js
View file @
6eaeba8d
...
...
@@ -281,6 +281,9 @@ $(function() {
// フィルタ表示
$
(
'#filter'
).
removeClass
(
'none'
);
$
(
'#user_list'
).
addClass
(
'none'
);
$
(
'.chat_room_src_form input[type="search"]'
).
focus
();
$
(
'#searchMessage'
).
addClass
(
'onfocus'
);
});
$
(
'.chat_room_src_form .cancel'
).
click
(
function
(){
$
(
'.nav_item_wrap'
).
removeClass
(
'none'
);
...
...
@@ -291,8 +294,25 @@ $(function() {
// ユーザーリスト表示
$
(
'#filter'
).
addClass
(
'none'
);
$
(
'#user_list'
).
removeClass
(
'none'
);
$
(
'.chat_room_src_form input[type="search"]'
).
blur
();
$
(
'#searchMessage'
).
removeClass
(
'onfocus'
);
});
$
(
'.chat_room_src_form input[type="search"]'
).
click
(
function
()
{
if
(
$
(
'#searchMessage'
).
hasClass
(
'onfocus'
))
{
$
(
'#searchMessage'
).
removeClass
(
'onfocus'
);
$
(
'#searchMessage'
).
blur
();
}
else
{
$
(
'#searchMessage'
).
addClass
(
'onfocus'
);
$
(
'#searchMessage'
).
focus
();
}
})
$
(
'#searchMessage'
).
blur
(
function
()
{
$
(
'#searchMessage'
).
removeClass
(
'onfocus'
);
})
// フィルタ選択イベント
$
(
'#filter .img_wrap'
).
click
(
function
(){
// チェックアイコン追加
...
...
@@ -482,6 +502,7 @@ $(function() {
jQueryMessages
.
append
(
noResultMsg
);
}
if
(
e
.
key
==
"Enter"
||
e
.
KeyCode
==
13
)
{
$
(
'#searchMessage'
).
removeClass
(
'onfocus'
);
$
(
'#contact .search_form input[type="search"]'
).
blur
();
return
;
}
...
...
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