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
c38bbcc4
Commit
c38bbcc4
authored
Mar 26, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
インデント修正。
parent
ccb4959a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
37 deletions
+37
-37
public_new/js/chat-ui.js
+37
-37
No files found.
public_new/js/chat-ui.js
View file @
c38bbcc4
...
@@ -24,16 +24,16 @@ $(window).on('resize', function() {
...
@@ -24,16 +24,16 @@ $(window).on('resize', function() {
$
(
".chat_list"
).
removeClass
(
"col-6"
).
addClass
(
"col-12"
);
$
(
".chat_list"
).
removeClass
(
"col-6"
).
addClass
(
"col-12"
);
$
(
".squareBoxContent span"
).
removeClass
(
"landscape_span"
);
$
(
".squareBoxContent span"
).
removeClass
(
"landscape_span"
);
$
(
".mesgs"
).
removeClass
(
"landscape_mesgs"
);
$
(
".mesgs"
).
removeClass
(
"landscape_mesgs"
);
}
}
if
(
CHAT_UTIL
.
isIOS
())
{
if
(
CHAT_UTIL
.
isIOS
())
{
if
(
isLandscape
==
true
)
{
if
(
isLandscape
==
true
)
{
$
(
".mesgs"
).
addClass
(
"landscape_mesgs"
);
$
(
".mesgs"
).
addClass
(
"landscape_mesgs"
);
}
else
if
(
isLandscape
==
false
)
{
}
else
if
(
isLandscape
==
false
)
{
$
(
".mesgs"
).
removeClass
(
"landscape_mesgs"
);
$
(
".mesgs"
).
removeClass
(
"landscape_mesgs"
);
}
}
}
}
})
})
// New Room
// New Room
...
@@ -151,44 +151,44 @@ $('#messages').scroll(function() {
...
@@ -151,44 +151,44 @@ $('#messages').scroll(function() {
// UIの位置調整(キーボード出現時)
// UIの位置調整(キーボード出現時)
$
(
'#message-form'
).
on
(
'focus'
,
function
()
{
$
(
'#message-form'
).
on
(
'focus'
,
function
()
{
if
(
CHAT_UTIL
.
isIOS
())
{
if
(
CHAT_UTIL
.
isIOS
())
{
// メッセージ入力欄の位置指定
// メッセージ入力欄の位置指定
document
.
querySelector
(
'.fixed-bottom'
).
style
.
bottom
=
10000
+
'px'
;
document
.
querySelector
(
'.fixed-bottom'
).
style
.
bottom
=
10000
+
'px'
;
setTimeout
(
function
()
{
setTimeout
(
function
()
{
document
.
querySelector
(
'.fixed-bottom'
).
style
.
bottom
=
0
+
'px'
;
document
.
querySelector
(
'.fixed-bottom'
).
style
.
bottom
=
0
+
'px'
;
},
200
);
},
200
);
}
}
});
});
CHAT_UI
.
setNavigationPosition
=
function
(
y
)
{
CHAT_UI
.
setNavigationPosition
=
function
(
y
)
{
if
(
document
.
activeElement
.
id
==
'message-form'
)
{
if
(
document
.
activeElement
.
id
==
'message-form'
)
{
$
(
'.navbar'
).
css
(
'position'
,
'absolute'
);
$
(
'.navbar'
).
css
(
'position'
,
'absolute'
);
$
(
'.navbar'
).
css
(
'top'
,
(
y
)
+
'px'
);
$
(
'.navbar'
).
css
(
'top'
,
(
y
)
+
'px'
);
$
(
'.tab-pane'
).
css
(
'margin-top'
,
y
+
'px'
);
$
(
'.tab-pane'
).
css
(
'margin-top'
,
y
+
'px'
);
var
height
=
document
.
getElementById
(
"messages"
).
getBoundingClientRect
().
height
;
var
height
=
document
.
getElementById
(
"messages"
).
getBoundingClientRect
().
height
;
$
(
'.msg_history'
).
css
(
'height'
,
height
-
y
+
'px'
);
$
(
'.msg_history'
).
css
(
'height'
,
height
-
y
+
'px'
);
}
else
if
(
document
.
activeElement
.
id
==
'message-search'
)
{
}
else
if
(
document
.
activeElement
.
id
==
'message-search'
)
{
$
(
'.msg_history'
).
css
(
'height'
,
''
);
$
(
'.msg_history'
).
css
(
'height'
,
''
);
}
}
}
}
CHAT_UI
.
resetNavigationPosition
=
function
()
{
CHAT_UI
.
resetNavigationPosition
=
function
()
{
$
(
'.navbar'
).
css
(
'position'
,
''
);
$
(
'.navbar'
).
css
(
'position'
,
''
);
$
(
'.navbar'
).
css
(
'top'
,
''
);
$
(
'.navbar'
).
css
(
'top'
,
''
);
$
(
'.tab-pane'
).
css
(
'margin-top'
,
''
);
$
(
'.tab-pane'
).
css
(
'margin-top'
,
''
);
$
(
'.msg_history'
).
css
(
'height'
,
''
);
$
(
'.msg_history'
).
css
(
'height'
,
''
);
}
}
// 端末の向きを記録(キーボード出現時にLandscapeModeと判定する対策)
// 端末の向きを記録(キーボード出現時にLandscapeModeと判定する対策)
var
isLandscape
;
var
isLandscape
;
CHAT_UI
.
setOrientation
=
function
(
isLandscapeMode
)
{
CHAT_UI
.
setOrientation
=
function
(
isLandscapeMode
)
{
if
(
isLandscapeMode
==
'false'
)
{
if
(
isLandscapeMode
==
'false'
)
{
$
(
".mesgs"
).
removeClass
(
"landscape_mesgs"
);
$
(
".mesgs"
).
removeClass
(
"landscape_mesgs"
);
isLandscape
=
false
;
isLandscape
=
false
;
}
else
{
}
else
{
$
(
".mesgs"
).
addClass
(
"landscape_mesgs"
);
$
(
".mesgs"
).
addClass
(
"landscape_mesgs"
);
isLandscape
=
true
;
isLandscape
=
true
;
}
}
}
}
//メッセージ送信
//メッセージ送信
...
...
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