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
32e4f774
Commit
32e4f774
authored
Jun 13, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/43156' into 'develop'
43156対応。 See merge request
!174
parents
f41ee336
5d7a3340
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
public_new/js/share.js
+26
-4
No files found.
public_new/js/share.js
View file @
32e4f774
...
...
@@ -121,10 +121,10 @@ document.addEventListener("DOMContentLoaded", function () {
coview_api
.
Login
(
globalUserInfo
.
loginId
);
initCollaborationUI
(
joinCollaborationType
);
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
setHostRequestFlg
(
H
OST_REQUEST_FLG
.
DONE
);
android
.
setHostRequestFlg
(
H
ostRequestFlag
.
DONE
);
}
else
{
webkit
.
messageHandlers
.
setHostRequestFlg
.
postMessage
(
H
OST_REQUEST_FLG
.
DONE
H
ostRequestFlag
.
DONE
);
}
fw
.
socket
.
on
(
"message"
,
async
function
(
data
)
{
...
...
@@ -224,8 +224,21 @@ document.addEventListener("DOMContentLoaded", function () {
coview_api
.
HeartBeatUser
(
globalUserInfo
.
loginId
);
alert
(
getLocalizedString
(
"err_target_android_version_not_support"
));
}
else
if
(
g_isMainMan
)
{
fw
.
sendToMsg
(
"others"
,
"PIP_END_REQUEST"
,
{
loginId
:
getFermiLoginId
(
data
.
payload
.
loginId
),
});
await
new
Promise
(
done
=>
setTimeout
(()
=>
done
(),
500
));
Coview_changeHost
(
getFermiLoginId
(
data
.
payload
.
loginId
));
}
}
else
if
(
data
.
type
===
"PIP_END_REQUEST"
)
{
if
(
data
.
payload
.
loginId
==
globalUserInfo
.
loginId
&&
joinCollaborationType
==
COLLABORATION_TYPE
.
DOCUMENT
)
{
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
finishPip
();
mChatWebView
.
loadUrl
(
"javascript:$('.pip_indicator').addClass('none');"
);
}
else
{
webkit
.
messageHandlers
.
finishPipMode
.
postMessage
({});
}
}
}
else
if
(
data
.
type
===
"API_SEND_OWNER_CHANGE_COMPLETE"
)
{
penOff
();
if
(
$
(
"#recordBtn"
).
hasClass
(
"bg_red"
))
{
...
...
@@ -239,6 +252,15 @@ document.addEventListener("DOMContentLoaded", function () {
micOn
();
}
}
else
if
(
data
.
type
===
"CHANGE_HOST_APPLY"
)
{
if
(
g_isMainMan
)
{
coview_api
.
HeartBeatUser
(
globalUserInfo
.
loginId
);
if
(
CHAT_UTIL
.
isAndroid
())
{
$
(
".pip_indicator"
).
addClass
(
"none"
);
android
.
finishPip
();
}
else
{
webkit
.
messageHandlers
.
finishPipMode
.
postMessage
({});
}
}
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
setHostRequestFlg
(
HostRequestFlag
.
DOING
);
}
else
{
...
...
@@ -246,8 +268,8 @@ document.addEventListener("DOMContentLoaded", function () {
HostRequestFlag
.
DOING
);
}
await
new
Promise
(
done
=>
setTimeout
(()
=>
done
(),
500
));
if
(
g_isMainMan
)
{
coview_api
.
HeartBeatUser
(
globalUserInfo
.
loginId
);
if
(
confirm
(
getLocalizedString
(
...
...
@@ -573,7 +595,7 @@ var scrollLock = function (e) {
}
};
//
let collaboScreen = document.getElementById("collabo_main");
let
collaboScreen
=
document
.
getElementById
(
"collabo_main"
);
function
scrollLockON
()
{
collaboScreen
.
addEventListener
(
"touchmove"
,
scrollLock
,
{
passive
:
false
});
...
...
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