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
5d7a3340
Commit
5d7a3340
authored
Jun 11, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
43156対応。
parent
f41ee336
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 @
5d7a3340
...
@@ -121,10 +121,10 @@ document.addEventListener("DOMContentLoaded", function () {
...
@@ -121,10 +121,10 @@ document.addEventListener("DOMContentLoaded", function () {
coview_api
.
Login
(
globalUserInfo
.
loginId
);
coview_api
.
Login
(
globalUserInfo
.
loginId
);
initCollaborationUI
(
joinCollaborationType
);
initCollaborationUI
(
joinCollaborationType
);
if
(
CHAT_UTIL
.
isAndroid
())
{
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
setHostRequestFlg
(
H
OST_REQUEST_FLG
.
DONE
);
android
.
setHostRequestFlg
(
H
ostRequestFlag
.
DONE
);
}
else
{
}
else
{
webkit
.
messageHandlers
.
setHostRequestFlg
.
postMessage
(
webkit
.
messageHandlers
.
setHostRequestFlg
.
postMessage
(
H
OST_REQUEST_FLG
.
DONE
H
ostRequestFlag
.
DONE
);
);
}
}
fw
.
socket
.
on
(
"message"
,
async
function
(
data
)
{
fw
.
socket
.
on
(
"message"
,
async
function
(
data
)
{
...
@@ -224,8 +224,21 @@ document.addEventListener("DOMContentLoaded", function () {
...
@@ -224,8 +224,21 @@ document.addEventListener("DOMContentLoaded", function () {
coview_api
.
HeartBeatUser
(
globalUserInfo
.
loginId
);
coview_api
.
HeartBeatUser
(
globalUserInfo
.
loginId
);
alert
(
getLocalizedString
(
"err_target_android_version_not_support"
));
alert
(
getLocalizedString
(
"err_target_android_version_not_support"
));
}
else
if
(
g_isMainMan
)
{
}
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
));
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"
)
{
}
else
if
(
data
.
type
===
"API_SEND_OWNER_CHANGE_COMPLETE"
)
{
penOff
();
penOff
();
if
(
$
(
"#recordBtn"
).
hasClass
(
"bg_red"
))
{
if
(
$
(
"#recordBtn"
).
hasClass
(
"bg_red"
))
{
...
@@ -239,6 +252,15 @@ document.addEventListener("DOMContentLoaded", function () {
...
@@ -239,6 +252,15 @@ document.addEventListener("DOMContentLoaded", function () {
micOn
();
micOn
();
}
}
}
else
if
(
data
.
type
===
"CHANGE_HOST_APPLY"
)
{
}
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
())
{
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
setHostRequestFlg
(
HostRequestFlag
.
DOING
);
android
.
setHostRequestFlg
(
HostRequestFlag
.
DOING
);
}
else
{
}
else
{
...
@@ -246,8 +268,8 @@ document.addEventListener("DOMContentLoaded", function () {
...
@@ -246,8 +268,8 @@ document.addEventListener("DOMContentLoaded", function () {
HostRequestFlag
.
DOING
HostRequestFlag
.
DOING
);
);
}
}
await
new
Promise
(
done
=>
setTimeout
(()
=>
done
(),
500
));
if
(
g_isMainMan
)
{
if
(
g_isMainMan
)
{
coview_api
.
HeartBeatUser
(
globalUserInfo
.
loginId
);
if
(
if
(
confirm
(
confirm
(
getLocalizedString
(
getLocalizedString
(
...
@@ -573,7 +595,7 @@ var scrollLock = function (e) {
...
@@ -573,7 +595,7 @@ var scrollLock = function (e) {
}
}
};
};
//
let collaboScreen = document.getElementById("collabo_main");
let
collaboScreen
=
document
.
getElementById
(
"collabo_main"
);
function
scrollLockON
()
{
function
scrollLockON
()
{
collaboScreen
.
addEventListener
(
"touchmove"
,
scrollLock
,
{
passive
:
false
});
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