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
e655dd62
Commit
e655dd62
authored
Jun 04, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
43069対応。
parent
36e3ca40
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
public_new/js/chat-websocket.js
+8
-0
public_new/js/chat.js
+4
-4
No files found.
public_new/js/chat-websocket.js
View file @
e655dd62
...
@@ -3,6 +3,14 @@ var socket;
...
@@ -3,6 +3,14 @@ var socket;
// 名前空間
// 名前空間
var
CHAT_SOCKET
=
{};
var
CHAT_SOCKET
=
{};
CHAT_SOCKET
.
socketCheck
=
function
()
{
if
(
socket
==
null
||
socket
.
disconnected
)
{
window
.
location
.
reload
();
}
}
CHAT_SOCKET
.
connectSocket
=
function
()
{
CHAT_SOCKET
.
connectSocket
=
function
()
{
if
(
IS_ONLINE
==
'true'
)
{
if
(
IS_ONLINE
==
'true'
)
{
socket
=
io
(
CHAT_SERVER_URL
);
socket
=
io
(
CHAT_SERVER_URL
);
...
...
public_new/js/chat.js
View file @
e655dd62
...
@@ -382,23 +382,23 @@ $(function() {
...
@@ -382,23 +382,23 @@ $(function() {
var
afterHeight
=
window
.
innerHeight
;
var
afterHeight
=
window
.
innerHeight
;
var
afterWidth
=
window
.
innerWidth
;
var
afterWidth
=
window
.
innerWidth
;
var
moreScroll
=
beforeHeight
-
afterHeight
;
var
moreScroll
=
beforeHeight
-
afterHeight
;
if
(
beforeHeight
>
afterHeight
)
{
if
(
beforeHeight
>
afterHeight
&&
(
beforeHeight
-
afterHeight
)
>
50
)
{
if
(
beforeWidth
==
afterWidth
)
{
if
(
beforeWidth
==
afterWidth
)
{
//キーボード表示時
//キーボード表示時
$
(
'.room_container'
).
css
(
'margin-bottom'
,
0
);
$
(
'.room_container'
).
css
(
'margin-bottom'
,
0
);
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
-
$
(
'.footer_content_b'
).
height
());
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
-
$
(
'.footer_content_b'
).
height
());
}
else
{
}
else
{
//画面回転時
//画面回転時
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
);
window
.
scrollTo
(
0
,
beforeScroll
+
(
moreScroll
*
2
)
-
$
(
'.footer_content_b'
).
height
()
);
}
}
}
else
{
}
else
if
(
beforeHeight
<
afterHeight
)
{
$
(
'.room_container'
).
css
(
'margin-bottom'
,
footerHeight
);
$
(
'.room_container'
).
css
(
'margin-bottom'
,
footerHeight
);
if
(
beforeWidth
==
afterWidth
)
{
if
(
beforeWidth
==
afterWidth
)
{
//キーボード非表示
//キーボード非表示
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
+
$
(
'.footer_content_b'
).
height
());
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
+
$
(
'.footer_content_b'
).
height
());
}
else
{
}
else
{
//画面回転時
//画面回転時
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
);
window
.
scrollTo
(
0
,
beforeScroll
+
(
moreScroll
*
2
)
+
$
(
'.footer_content_b'
).
height
()
);
}
}
}
}
beforeHeight
=
window
.
innerHeight
;
beforeHeight
=
window
.
innerHeight
;
...
...
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