Commit 14505b01 by Kang Donghun

インデント修正、協業ネームカード閉じるボタン位置修正

parent d412dadd
...@@ -12,125 +12,123 @@ $(function() { ...@@ -12,125 +12,123 @@ $(function() {
coview_wrap_id : "coviewShare", coview_wrap_id : "coviewShare",
coview_api_key: "8dda7092c5820d663" coview_api_key: "8dda7092c5820d663"
} }
); );
// special button IN Chat ui // special button IN Chat ui
$("#coviewShareMainBtn").on("click", function(e){ $("#coviewShareMainBtn").on("click", function(e) {
e.stopPropagation(); e.stopPropagation();
if($(".coview_share_dropdown_bar").is(':visible') == true){ if ($(".coview_share_dropdown_bar").is(':visible') == true) {
Coview_shareDropdownHide(); Coview_shareDropdownHide();
if($(".coview_share_photo_select_bubble").is(':visible') == true){ if ($(".coview_share_photo_select_bubble").is(':visible') == true) {
$(".coview_share_photo_select_bubble").slideUp(); $(".coview_share_photo_select_bubble").slideUp();
} }
} } else {
else{ $(".coview_share_dropdown_bar").slideDown();
$(".coview_share_dropdown_bar").slideDown(); }
} });
});
$("#coviewShareCloseButton").on("click", function(e){ $("#coviewShareCloseButton").on("click", function(e) {
coview_api.LeaveRoom(); coview_api.LeaveRoom();
$(".coview_share_area").hide(); $(".coview_share_area").hide();
}); });
$("body").on("click", function(){ $("body").on("click", function(){
Coview_shareDropdownHide(); Coview_shareDropdownHide();
if ($(".coview_share_photo_select_bubble").is(':visible') == true) { if ($(".coview_share_photo_select_bubble").is(':visible') == true) {
$(".coview_share_photo_select_bubble").slideUp(); $(".coview_share_photo_select_bubble").slideUp();
} else { } else {
$(".coview_share_dropdown_bar").slideDown(); $(".coview_share_dropdown_bar").slideDown();
} }
}); });
$("#coviewShareCloseButton").on("click", function(e) { $("#coviewShareCloseButton").on("click", function(e) {
coview_api.LeaveRoom(); coview_api.LeaveRoom();
$(".coview_share_area").hide(); $(".coview_share_area").hide();
}); });
$("body").on("click", function() {
Coview_shareDropdownHide();
});
$(document).on("click", ".coview_share_request", function() {
console.log("globalUserInfo", globalUserInfo);
if ($(this).hasClass(collaborationTypeKey.VIDEO) == true) {
globalUserInfo.coWorkType = collaborationTypeKey.VIDEO;
$(".coview_share_title_name").text("LIVE");
} else if ($(this).hasClass(collaborationTypeKey.CAMERA) == true) {
globalUserInfo.coWorkType = collaborationTypeKey.CAMERA;
$(".coview_share_title_name").text("ライブラリ");
} else if ($(this).hasClass(collaborationTypeKey.AUDIO) == true) {
globalUserInfo.coWorkType = collaborationTypeKey.AUDIO;
$(".coview_share_title_name").text("音声通話");
}
coview_api.JoinRoom(globalUserInfo.roomId, globalUserInfo.coWorkType); $("body").on("click", function() {
Coview_moveToVideoShareArea(); Coview_shareDropdownHide();
}); });
$(document).on("click", ".coview_share_request", function() {
console.log("globalUserInfo", globalUserInfo);
if ($(this).hasClass(collaborationTypeKey.VIDEO) == true) {
globalUserInfo.coWorkType = collaborationTypeKey.VIDEO;
$(".coview_share_title_name").text("LIVE");
} else if ($(this).hasClass(collaborationTypeKey.CAMERA) == true) {
globalUserInfo.coWorkType = collaborationTypeKey.CAMERA;
$(".coview_share_title_name").text("ライブラリ");
} else if ($(this).hasClass(collaborationTypeKey.AUDIO) == true) {
globalUserInfo.coWorkType = collaborationTypeKey.AUDIO;
$(".coview_share_title_name").text("音声通話");
}
/* --------------------------------------------------- */ coview_api.JoinRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
/* Video, photo, chat, doc */ Coview_moveToVideoShareArea();
/* --------------------------------------------------- */ });
$("#coviewShareChat").on("click", function() {
console.log("ON click coviewShareChat");
});
$("#coviewSharePhoto").on("click", function(e) {
e.stopPropagation();
console.log("ON click coviewSharePhoto");
if ($(".coview_share_photo_select_bubble").is(':visible') == true) { /* --------------------------------------------------- */
$(".coview_share_photo_select_bubble").slideUp(); /* Video, photo, chat, doc */
} else { /* --------------------------------------------------- */
$(".coview_share_photo_select_bubble").slideDown(); $("#coviewShareChat").on("click", function() {
} console.log("ON click coviewShareChat");
}); });
$("#coviewSharePhoto").on("click", function(e) {
e.stopPropagation();
console.log("ON click coviewSharePhoto");
if ($(".coview_share_photo_select_bubble").is(':visible') == true) {
$(".coview_share_photo_select_bubble").slideUp();
} else {
$(".coview_share_photo_select_bubble").slideDown();
}
});
$("#coviewSharePhotoCamera").on("click", function() {
$(".coview_share_photo_select_bubble").hide();
globalUserInfo.coWorkType = collaborationTypeKey.CAMERA;
coview_api.CreateRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
Coview_moveToVideoShareArea();
$(".coview_share_title_name").text("カメラ"); $("#coviewSharePhotoCamera").on("click", function() {
}); $(".coview_share_photo_select_bubble").hide();
$("#coviewSharePhotoGallery").on("click", function() { globalUserInfo.coWorkType = collaborationTypeKey.CAMERA;
$(".coview_share_photo_select_bubble").hide(); coview_api.CreateRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
globalUserInfo.coWorkType = "gallery"; Coview_moveToVideoShareArea();
coview_api.CreateRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
Coview_moveToVideoShareArea();
$(".coview_share_title_name").text("ライブラリ"); $(".coview_share_title_name").text("カメラ");
}); });
$("#coviewSharePhotoGallery").on("click", function() {
$(".coview_share_photo_select_bubble").hide();
globalUserInfo.coWorkType = "gallery";
coview_api.CreateRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
Coview_moveToVideoShareArea();
$("#coviewShareAudio").on("click", function() { $(".coview_share_title_name").text("ライブラリ");
globalUserInfo.coWorkType = collaborationTypeKey.AUDIO; });
coview_api.CreateRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
Coview_moveToVideoShareArea();
$(".coview_share_title_name").text("音声通話"); $("#coviewShareAudio").on("click", function() {
}) globalUserInfo.coWorkType = collaborationTypeKey.AUDIO;
coview_api.CreateRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
Coview_moveToVideoShareArea();
$(".coview_share_title_name").text("音声通話");
})
$("#coviewShareLive").on("click", function() {
console.log("ON click coviewShareLive");
globalUserInfo.coWorkType = "video";
console.log("globalUserInfo", globalUserInfo);
coview_api.CreateRoom(globalUserInfo.roomId, globalUserInfo.coWorkType); $("#coviewShareLive").on("click", function() {
Coview_moveToVideoShareArea(); console.log("ON click coviewShareLive");
globalUserInfo.coWorkType = "video";
console.log("globalUserInfo", globalUserInfo);
$(".coview_share_title_name").text("LIVE"); coview_api.CreateRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
}); Coview_moveToVideoShareArea();
$(".coview_share_title_name").text("LIVE");
});
// $("#coviewShareDoc").on("click", function(){ // $("#coviewShareDoc").on("click", function(){
// console.log("ON click coviewShareDoc"); // console.log("ON click coviewShareDoc");
...@@ -138,59 +136,59 @@ $(function() { ...@@ -138,59 +136,59 @@ $(function() {
// globalUserInfo.coWorkType = "audio"; // globalUserInfo.coWorkType = "audio";
// }); // });
coview_api.addEventListener ("ready", function () { coview_api.addEventListener ("ready", function () {
console.log("=============> READY : ready for coview api"); console.log("=============> READY : ready for coview api");
coview_api.Login(globalUserInfo.loginId); coview_api.Login(globalUserInfo.loginId);
}); });
coview_api.addEventListener ("start", function () { coview_api.addEventListener ("start", function () {
console.log("=============> START : share start"); console.log("=============> START : share start");
$("#loadingIndicator").removeClass("full_active"); $("#loadingIndicator").removeClass("full_active");
}); });
coview_api.addEventListener ("destroy", function () { coview_api.addEventListener ("destroy", function () {
console.log("=============> START : share start"); console.log("=============> START : share start");
coview_api.LeaveRoom(); coview_api.LeaveRoom();
$(".coview_share_area").hide(); $(".coview_share_area").hide();
$("#loadingIndicator").removeClass("full_active"); $("#loadingIndicator").removeClass("full_active");
}); });
coview_api.addEventListener ("message", async function (event, json) { coview_api.addEventListener ("message", async function (event, json) {
console.log("+++ addEventListener", json); console.log("+++ addEventListener", json);
console.log("processMessage api = ", json.api); console.log("processMessage api = ", json.api);
let loginIdList = new Array(); let loginIdList = new Array();
switch (json.api){ switch (json.api){
case "LoginResponse": case "LoginResponse":
console.log('------------------------------'); console.log('------------------------------');
console.log(globalUserInfo.coWorkType); console.log(globalUserInfo.coWorkType);
console.log(collaborationJoinFlg); console.log(collaborationJoinFlg);
if (collaborationJoinFlg == '1') { if (collaborationJoinFlg == '1') {
coview_api.JoinRoom(globalUserInfo.roomId, globalUserInfo.coWorkType); coview_api.JoinRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
} else if (collaborationJoinFlg == '0') { } else if (collaborationJoinFlg == '0') {
coview_api.CreateRoom(globalUserInfo.roomId, globalUserInfo.coWorkType); coview_api.CreateRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
} }
Coview_moveToVideoShareArea(); Coview_moveToVideoShareArea();
break; break;
case "CreateRoomResponse": case "CreateRoomResponse":
if (json.resultCode == 200) { if (json.resultCode == 200) {
var coviewInviteMessage = "" + messageSeperator + messageType.COMMUNICATIONSTART + messageSeperator + CHAT_UTIL.getCollaborationType(globalUserInfo.coWorkType); var coviewInviteMessage = "" + messageSeperator + messageType.COMMUNICATIONSTART + messageSeperator + CHAT_UTIL.getCollaborationType(globalUserInfo.coWorkType);
socket.emit('createMessage', { socket.emit('createMessage', {
text: coviewInviteMessage text: coviewInviteMessage
}, 0); }, 0);
} else { } else {
} }
break; break;
case "JoinRoomInfoResponse": case "JoinRoomInfoResponse":
if (json.resultCode == 200) { if (json.resultCode == 200) {
} else { } else {
alert("Not exist sharing call (" + json.resultCode + ")\nPlease using share menu."); alert("Not exist sharing call (" + json.resultCode + ")\nPlease using share menu.");
coview_api.LeaveRoom(); coview_api.LeaveRoom();
$(".coview_share_area").hide(); $(".coview_share_area").hide();
$("#loadingIndicator").removeClass("full_active"); $("#loadingIndicator").removeClass("full_active");
} }
break; break;
case "JoinRoomResponse": case "JoinRoomResponse":
if (json.resultCode == 200) { if (json.resultCode == 200) {
for (let key in g_participants) { for (let key in g_participants) {
loginIdList.push(key); loginIdList.push(key);
} }
...@@ -198,23 +196,23 @@ $(function() { ...@@ -198,23 +196,23 @@ $(function() {
} else { } else {
} }
break; break;
case "RoomMemberJoinedEvent": case "RoomMemberJoinedEvent":
for (let key in g_participants) { for (let key in g_participants) {
loginIdList.push(key); loginIdList.push(key);
} }
CHAT_UI.refreshJoinedCollaboration(loginIdList); CHAT_UI.refreshJoinedCollaboration(loginIdList);
break; break;
case "RoomMemberLeavedEvent": case "RoomMemberLeavedEvent":
for (let key in g_participants) { for (let key in g_participants) {
loginIdList.push(key); loginIdList.push(key);
} }
CHAT_UI.refreshJoinedCollaboration(loginIdList); CHAT_UI.refreshJoinedCollaboration(loginIdList);
break; break;
default: default:
console.log('Unrecognized api', json); console.log('Unrecognized api', json);
break; break;
} }
}); });
}); });
function Coview_shareDropdownHide() { function Coview_shareDropdownHide() {
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
<div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header border-0"> <div class="modal-header border-0">
<div class="profile_desc d-flex flex-row">
<img src="{{profileUrl}}" onError="this.src='./img/noImage.png'"/>
<div class="profile_name"><span>{{name}}</span></div>
</div>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
<div class="profile_desc_ d-flex flex-row">
<img src="{{profileUrl}}" onError="this.src='./img/noImage.png'"/>
<div class="profile_name"><span>{{name}}</span></div>
</div>
</div> </div>
<div class="modal-body"> <div class="modal-body">
{{#groupPathList}} {{#groupPathList}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment