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
eeb863f9
Commit
eeb863f9
authored
Apr 26, 2021
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
協業記録参加者リスト表示
parent
b3be7b29
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
587 additions
and
230 deletions
+587
-230
public_new/chat_room.html
+0
-1
public_new/collaboration_overlay_user_list.html
+13
-0
public_new/collaboration_picture.html
+13
-42
public_new/collaboration_video.html
+12
-40
public_new/collaboration_voice.html
+18
-47
public_new/collabotarion_overlay_user_list.html
+0
-59
public_new/css/chat.css
+5
-0
public_new/css/collaboration.css
+25
-5
public_new/js/chat-db.js
+10
-0
public_new/js/chat-ui.js
+326
-0
public_new/js/collaboration.js
+2
-12
public_new/js/share.js
+49
-15
public_new/modal_add_user_list.html
+91
-0
public_new/modal_collabo_change_host.html
+1
-1
public_new/modal_collabo_profile.html
+22
-8
No files found.
public_new/chat_room.html
View file @
eeb863f9
...
...
@@ -170,7 +170,6 @@
String
.
prototype
.
replaceAll
=
function
(
org
,
dest
)
{
return
this
.
split
(
org
).
join
(
dest
);
}
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
let
CHAT_SERVER_URL
=
''
;
let
CMS_SERVER_URL
=
''
;
...
...
public_new/collaboration_overlay_user_list.html
0 → 100644
View file @
eeb863f9
<div
class=
"user_list_wrap"
>
<div
class=
"user_list d-flex flex-wrap"
>
{{#joinedUserList}}
<div
class=
"user_item {{isHost}}"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#profileModal1"
onclick=
"CHAT_UI.makeNameCardInCollaboration({{shopMemberId}})"
>
<div
class=
"img_wrap"
><img
src=
"{{profileUrl}}"
alt=
"this.src='./img/noImage.png'"
/></div>
<span
class=
"name"
>
{{shopMemberName}}
</span>
</a>
</div>
{{/joinedUserList}}
</div>
</div>
\ No newline at end of file
public_new/collaboration_picture.html
View file @
eeb863f9
...
...
@@ -15,6 +15,7 @@
<link
rel=
"stylesheet"
href=
"./css/footer.css"
>
<link
rel=
"stylesheet"
href=
"./css/font-awesome.css"
>
<link
rel=
"stylesheet"
href=
"./css/share.css"
>
</head>
<body>
...
...
@@ -22,7 +23,7 @@
<header
id=
"collabo_header"
>
<div
class=
"d-flex align-items-center h-100"
>
<div
class=
"collabo_nav_l text-left w-100"
>
通話中
ライブラリ
<span>
15:20
</span>
</div>
<div
class=
"collabo_nav_r"
>
...
...
@@ -49,54 +50,24 @@
<button
id=
"coviewSharePhotoCamera"
class=
"coview_share_photo_select_bubble_in_button cam"
>
</button>
<BR>
<button
id=
"coviewSharePhotoGal
a
ry"
class=
"coview_share_photo_select_bubble_in_button gal"
>
<button
id=
"coviewSharePhotoGal
le
ry"
class=
"coview_share_photo_select_bubble_in_button gal"
>
</button>
</div>
<!-- ユーザー追加オーバーレイ -->
<div
id=
"overlay_add_user_list"
class=
"none"
>
<nav>
<div
class=
"row h-100 align-items-center"
>
<div
class=
"col-4 pr-0"
>
<div
class=
"nav-item"
>
<a
href=
"#"
class=
"close_btn"
>
閉じる
</a>
</div>
</div>
<div
class=
"col-4 p-0"
>
<div
class=
"nav-item p-0"
>
<h1
class=
"nav-ttl"
>
ユーザー選択
</h1>
</div>
</div>
<div
class=
"col-4 pl-0"
>
<div
class=
"nav-item text-right"
>
<a
href=
"#"
class=
"inv_btn"
>
招待
</a>
</div>
</div>
<!-- .col -->
</div>
<!-- .row -->
</nav>
<!-- nav -->
<!-- ユーザー検索 -->
<div
class=
"search_form"
>
<form>
<input
type=
"search"
name=
"search"
placeholder=
"ユーザー検索"
maxlength=
"30"
>
<span
class=
"src_icon"
></span>
<a
href=
"#"
class=
"cancel none"
>
キャンセル
</a>
</form>
</div>
<!-- ユーザーリスト -->
<div
id=
"add_user_list"
></div>
</div>
<!-- オーバーレイ メニュー -->
<div
id=
"collaboration_
video
_overlay_menu"
></div>
<div
id=
"collaboration_
picture
_overlay_menu"
></div>
<!-- オーバーレイ ユーザーリスト -->
<div
id=
"overlay_user_list"
class=
"overlay noscroll"
>
<div
id=
"collabo
tar
ion_overlay_user_list"
></div>
<div
id=
"collabo
rat
ion_overlay_user_list"
></div>
</div>
<!-- キャプチャ モーダル -->
<div
id=
"modal_collabo_capture"
></div>
<!-- プロフィールモーダル -->
<div
id=
"
modal_collabo_profile
"
></div>
<div
id=
"
userProfileModalInCollaboration
"
></div>
<div
id=
"modal_collabo_profile2"
></div>
<!-- ホスト変更モーダル -->
<div
id=
"modal_collabo_change_host"
></div>
...
...
@@ -149,7 +120,7 @@
</footer>
<!-- フッター -->
<div
id=
"footer_collabo"
></div>
<div
id=
"loadingArea"
></div>
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/socket.io.js"
></script>
<script
src=
"./js/libs/moment.js"
></script>
...
...
@@ -165,6 +136,7 @@
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/loading.js"
></script>
<script
src=
"./js/language.js"
></script>
<script
src=
"./js/language_ko.js"
charset=
"UTF-8"
></script>
<script
src=
"./js/language_ja.js"
charset=
"UTF-8"
></script>
...
...
@@ -176,11 +148,10 @@
$
(
"#footer_collabo"
).
load
(
"./footer_collabo.html"
);
$
(
"#modal_collabo_host_request"
).
load
(
"./modal_collabo_host_request.html"
);
$
(
"#modal_collabo_change_host"
).
load
(
"./modal_collabo_change_host.html"
);
$
(
"#modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2.html"
);
$
(
"#modal_collabo_profile"
).
load
(
"./modal_collabo_profile.html"
);
$
(
"#modal_collabo_capture"
).
load
(
"./modal_collabo_capture.html"
);
$
(
"#collabotarion_overlay_user_list"
).
load
(
"./collabotarion_overlay_user_list.html"
);
$
(
"#collaboration_video_overlay_menu"
).
load
(
"./collaboration_video_overlay_menu.html"
);
$
(
"#modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
$
(
"#collaboration_picture_overlay_menu"
).
load
(
"./collaboration_picture_overlay_menu.html"
);
$
(
"#zoom"
).
load
(
"./zoom.html"
);
let
CHAT_SERVER_URL
=
''
;
...
...
@@ -195,6 +166,8 @@
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
}
else
{
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
}
async
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
...
...
@@ -216,5 +189,4 @@
};
</script>
</body>
</html>
\ No newline at end of file
public_new/collaboration_video.html
View file @
eeb863f9
...
...
@@ -22,7 +22,7 @@
<header
id=
"collabo_header"
>
<div
class=
"d-flex align-items-center h-100"
>
<div
class=
"collabo_nav_l text-left w-100"
>
通話中
LIVE
<span>
15:20
</span>
</div>
<div
class=
"collabo_nav_r"
>
...
...
@@ -50,54 +50,24 @@
<button
id=
"coviewSharePhotoCamera"
class=
"coview_share_photo_select_bubble_in_button cam"
>
</button>
<BR>
<button
id=
"coviewSharePhotoGal
a
ry"
class=
"coview_share_photo_select_bubble_in_button gal"
>
<button
id=
"coviewSharePhotoGal
le
ry"
class=
"coview_share_photo_select_bubble_in_button gal"
>
</button>
</div>
<!-- ユーザー追加オーバーレイ -->
<div
id=
"overlay_add_user_list"
class=
"none"
>
<nav>
<div
class=
"row h-100 align-items-center"
>
<div
class=
"col-4 pr-0"
>
<div
class=
"nav-item"
>
<a
href=
"#"
class=
"close_btn"
>
閉じる
</a>
</div>
</div>
<div
class=
"col-4 p-0"
>
<div
class=
"nav-item p-0"
>
<h1
class=
"nav-ttl"
>
ユーザー選択
</h1>
</div>
</div>
<div
class=
"col-4 pl-0"
>
<div
class=
"nav-item text-right"
>
<a
href=
"#"
class=
"inv_btn"
>
招待
</a>
</div>
</div>
<!-- .col -->
</div>
<!-- .row -->
</nav>
<!-- nav -->
<!-- ユーザー検索 -->
<div
class=
"search_form"
>
<form>
<input
type=
"search"
name=
"search"
placeholder=
"ユーザー検索"
maxlength=
"30"
>
<span
class=
"src_icon"
></span>
<a
href=
"#"
class=
"cancel none"
>
キャンセル
</a>
</form>
</div>
<!-- ユーザーリスト -->
<div
id=
"add_user_list"
></div>
</div>
<!-- オーバーレイ メニュー -->
<div
id=
"collaboration_
picture
_overlay_menu"
></div>
<div
id=
"collaboration_
video
_overlay_menu"
></div>
<!-- オーバーレイ ユーザーリスト -->
<div
id=
"overlay_user_list"
class=
"overlay noscroll"
>
<div
id=
"collabo
tar
ion_overlay_user_list"
></div>
<div
id=
"collabo
rat
ion_overlay_user_list"
></div>
</div>
<!-- キャプチャ モーダル -->
<div
id=
"modal_collabo_capture"
></div>
<!-- プロフィールモーダル -->
<div
id=
"
modal_collabo_profile
"
></div>
<div
id=
"
userProfileModalInCollaboration
"
></div>
<div
id=
"modal_collabo_profile2"
></div>
<!-- ホスト変更モーダル -->
<div
id=
"modal_collabo_change_host"
></div>
...
...
@@ -146,7 +116,7 @@
</footer>
<!-- フッター -->
<div
id=
"footer_collabo"
></div>
<div
id=
"loadingArea"
></div>
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/socket.io.js"
></script>
<script
src=
"./js/libs/moment.js"
></script>
...
...
@@ -161,6 +131,7 @@
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/loading.js"
></script>
<script
src=
"./js/chat-db.js"
></script>
<script
src=
"./js/language.js"
></script>
<script
src=
"./js/language_ko.js"
charset=
"UTF-8"
></script>
...
...
@@ -174,11 +145,10 @@
$
(
"#footer_collabo"
).
load
(
"./footer_collabo.html"
);
$
(
"#modal_collabo_host_request"
).
load
(
"./modal_collabo_host_request.html"
);
$
(
"#modal_collabo_change_host"
).
load
(
"./modal_collabo_change_host.html"
);
$
(
"#modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2.html"
);
$
(
"#modal_collabo_profile"
).
load
(
"./modal_collabo_profile.html"
);
$
(
"#modal_collabo_capture"
).
load
(
"./modal_collabo_capture.html"
);
$
(
"#collabotarion_overlay_user_list"
).
load
(
"./collabotarion_overlay_user_list.html"
);
$
(
"#collaboration_picture_overlay_menu"
).
load
(
"./collaboration_picture_overlay_menu.html"
);
$
(
"#modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
$
(
"#collaboration_video_overlay_menu"
).
load
(
"./collaboration_video_overlay_menu.html"
);
$
(
"#zoom"
).
load
(
"./zoom.html"
);
let
CHAT_SERVER_URL
=
''
;
...
...
@@ -193,6 +163,8 @@
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
}
else
{
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
}
async
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
...
...
public_new/collaboration_voice.html
View file @
eeb863f9
...
...
@@ -11,8 +11,10 @@
<link
href=
"./fontawesome/css/all.css"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"./css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"./css/common.css"
>
<link
rel=
"stylesheet"
href=
"./css/contact.css"
>
<link
rel=
"stylesheet"
href=
"./css/collaboration.css"
>
<link
rel=
"stylesheet"
href=
"./css/footer.css"
>
<link
rel=
"stylesheet"
href=
"./css/loading.css"
>
<link
rel=
"stylesheet"
href=
"./css/font-awesome.css"
>
<link
rel=
"stylesheet"
href=
"./css/share.css"
>
</head>
...
...
@@ -22,7 +24,7 @@
<header
id=
"collabo_header"
>
<div
class=
"d-flex align-items-center h-100"
>
<div
class=
"collabo_nav_l text-left w-100"
>
通話中
音声通話
<span>
15:20
</span>
</div>
<div
class=
"collabo_nav_r"
>
...
...
@@ -35,57 +37,24 @@
</header>
<!-- header -->
<!-- コンテンツ -->
<main
id=
"collabo_main"
>
<main
id=
"collabo_main"
class=
"none"
>
<div
class=
"document_wrap"
>
<div
class=
"coview_share_body coview_share_area"
id=
"coviewShare"
style=
"z-index: 1;"
>
</div>
</div>
<!-- <div id="collabotarion_overlay_user_list"></div>-->
</main>
<!-- ユーザー追加オーバーレイ -->
<div
id=
"overlay_add_user_list"
class=
"none"
>
<nav>
<div
class=
"row h-100 align-items-center"
>
<div
class=
"col-4 pr-0"
>
<div
class=
"nav-item"
>
<a
href=
"#"
class=
"close_btn"
>
閉じる
</a>
</div>
</div>
<div
class=
"col-4 p-0"
>
<div
class=
"nav-item p-0"
>
<h1
class=
"nav-ttl"
>
ユーザー選択
</h1>
</div>
</div>
<div
class=
"col-4 pl-0"
>
<div
class=
"nav-item text-right"
>
<a
href=
"#"
class=
"inv_btn"
>
招待
</a>
</div>
</div>
<!-- .col -->
</div>
<!-- .row -->
</nav>
<!-- nav -->
<!-- ユーザー検索 -->
<div
class=
"search_form"
>
<form>
<input
type=
"search"
name=
"search"
placeholder=
"ユーザー検索"
maxlength=
"30"
>
<span
class=
"src_icon"
></span>
<a
href=
"#"
class=
"cancel none"
>
キャンセル
</a>
</form>
</div>
<!-- ユーザーリスト -->
<div
id=
"add_user_list"
></div>
</div>
<!-- オーバーレイ メニュー -->
<div
id=
"collaboration_voice_overlay_menu"
></div>
<!-- キャプチャ モーダル -->
<div
id=
"modal_collabo_capture"
></div>
<!-- オーバーレイ ユーザーリスト -->
<div
id=
"overlay_user_list"
class=
"overlay slidein"
style=
"z-index: 3;"
>
<div
id=
"collaboration_overlay_user_list"
></div>
</div>
<!-- プロフィールモーダル -->
<div
id=
"
modal_collabo_profile
"
></div>
<div
id=
"
userProfileModalInCollaboration
"
></div>
<div
id=
"modal_collabo_profile2"
></div>
<div
id=
"add_user_list"
></div>
<!-- ホスト変更モーダル -->
<div
id=
"modal_collabo_change_host"
></div>
...
...
@@ -94,7 +63,7 @@
<!-- フッター -->
<div
id=
"footer_collabo"
></div>
<div
id=
"loadingArea"
></div>
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/socket.io.js"
></script>
<script
src=
"./js/libs/moment.js"
></script>
...
...
@@ -106,6 +75,7 @@
<script
src=
"./js/constant.js"
></script>
<script
src=
"./js/collaboration.js"
></script>
<script
src=
"./js/common.js"
></script>
<script
src=
"./js/loading.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
...
...
@@ -121,12 +91,10 @@
$
(
"#footer_collabo"
).
load
(
"./footer_collabo.html"
);
$
(
"#modal_collabo_host_request"
).
load
(
"./modal_collabo_host_request.html"
);
$
(
"#modal_collabo_change_host"
).
load
(
"./modal_collabo_change_host.html"
);
$
(
"#modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2.html"
);
$
(
"#modal_collabo_profile"
).
load
(
"./modal_collabo_profile.html"
);
$
(
"#modal_collabo_capture"
).
load
(
"./modal_collabo_capture.html"
);
$
(
"#
collabotarion_overlay_user_list"
).
load
(
"./collabotarion_overlay_user_list
.html"
);
$
(
"#
collaboration_picture_overlay_menu"
).
load
(
"./collaboration_picture_overlay_menu
.html"
);
$
(
"#
zoom"
).
load
(
"./zoom
.html"
);
$
(
"#
modal_collabo_profile2"
).
load
(
"./modal_collabo_profile2
.html"
);
$
(
"#
loadingArea"
).
load
(
"./loading
.html"
);
$
(
"#
collaboration_voice_overlay_menu"
).
load
(
"./collaboration_voice_overlay_menu
.html"
);
let
CHAT_SERVER_URL
=
''
;
let
CMS_SERVER_URL
=
''
;
...
...
@@ -140,6 +108,8 @@
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
}
else
{
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
}
async
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
...
...
@@ -158,6 +128,7 @@
CHAT_SOCKET
.
connectSocket
();
socket
.
emit
(
'join'
,
CHAT
.
globalLoginParameter
,
function
()
{
});
};
</script>
</body>
...
...
public_new/collabotarion_overlay_user_list.html
deleted
100644 → 0
View file @
b3be7b29
<div
class=
"user_list_wrap"
>
<div
class=
"user_list d-flex flex-wrap"
>
<div
class=
"user_item host"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#profileModal1"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
<span
class=
"name"
>
名前名前
</span>
</a>
</div>
<div
class=
"user_item"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#profileModal2"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
<span
class=
"name"
>
名前名前
</span>
</a>
</div>
<div
class=
"user_item"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#profileModal2"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
<span
class=
"name"
>
名前名前名前名前名前名前名前名前名前名前
</span>
</a>
</div>
<div
class=
"user_item host"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#profileModal2"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
<span
class=
"name"
>
名前名前名前名前名前名前名前名前名前名前
</span>
</a>
</div>
<div
class=
"user_item"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#profileModal2"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
<span
class=
"name"
>
名前名前名前名前名前名前名前名前名前名前
</span>
</a>
</div>
<div
class=
"user_item"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#profileModal2"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
<span
class=
"name"
>
名前名前名前名前名前名前名前名前名前名前
</span>
</a>
</div>
<div
class=
"user_item"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#profileModal2"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
<span
class=
"name"
>
名前名前名前名前名前名前名前名前名前名前
</span>
</a>
</div>
<div
class=
"user_item"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#profileModal2"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
<span
class=
"name"
>
名前名前名前名前名前名前名前名前名前名前
</span>
</a>
</div>
<div
class=
"user_item"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#profileModal2"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
<span
class=
"name"
>
名前名前名前
</span>
</a>
</div>
</div>
</div>
\ No newline at end of file
public_new/css/chat.css
View file @
eeb863f9
...
...
@@ -41,6 +41,11 @@ input[name="tab_item"] {
display
:
block
;
}
#tabMyGroupOnAddUserInCollaboration
:checked
~
#tab1_content
,
#tabAllGroupOnAddUserInCollaboration
:checked
~
#tab2_content
{
display
:
block
;
}
#tabMyGroupOnAddUser
:checked
~
#tab1_content
,
#tabAllGroupOnAddUser
:checked
~
#tab2_content
{
display
:
block
;
...
...
public_new/css/collaboration.css
View file @
eeb863f9
...
...
@@ -34,10 +34,12 @@
height
:
100%
;
background
:
#525252
;
}
#collabo_main
.user_list
,
#overlay_user_list
.user_list
{
#collabo_main
.user_list
_collabo
,
#overlay_user_list
.user_list
_collabo
{
background
:
#525252
;
padding-bottom
:
120px
;
overflow
:
auto
;
height
:
inherit
;
}
#collabo_main
.user_list
.img_wrap
,
#overlay_user_list
.user_list
.img_wrap
{
...
...
@@ -86,7 +88,7 @@
height
:
64px
;
}
.user_item
{
width
:
calc
(
50%
-
5
px
);
width
:
calc
(
50%
-
20
px
);
position
:
relative
;
text-align
:
center
;
border
:
1px
solid
white
;
...
...
@@ -96,6 +98,7 @@
line-height
:
calc
(
100vh
/
3
);
overflow
:
hidden
;
}
.user_item
a
{
display
:
block
;
height
:
100%
;
...
...
@@ -134,6 +137,10 @@
background
:
#525252
;
height
:
100vh
;
}
#add_user_list
{
width
:
90%
;
height
:
90%
;
}
.fixed
{
position
:
fixed
;
}
...
...
@@ -179,8 +186,8 @@
z-index
:
100
;
top
:
0
;
background
:
white
;
height
:
10
0%
;
width
:
10
0%
;
height
:
7
0%
;
width
:
8
0%
;
max-width
:
1280px
;
}
#add_user_list
.user_list
li
{
...
...
@@ -423,3 +430,16 @@
width
:
30px
;
}
}
.nav-modal-add-user
{
position
:
absolute
;
}
#buttonAddUser
{
position
:
inherit
;
}
.add_user_modal
{
width
:
80%
;
height
:
70%
;
}
public_new/js/chat-db.js
View file @
eeb863f9
...
...
@@ -321,3 +321,12 @@ CHAT_DB.getContentList = function() {
return
JSON
.
parse
(
android
.
getContentList
());
}
};
CHAT_DB
.
getUserListByLoginId
=
function
(
loginIdList
)
{
console
.
log
(
loginIdList
);
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO ローカルDBからダウンロード済のコンテンツを取得
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
return
JSON
.
parse
(
android
.
getUserListByLoginId
(
loginIdList
.
join
(
","
)));
}
}
\ No newline at end of file
public_new/js/chat-ui.js
View file @
eeb863f9
...
...
@@ -1382,6 +1382,15 @@ $('#tabMyGroupOnAddUser').on('click', function(e) {
$
(
'#tabAllGroupOnAddUser'
).
on
(
'click'
,
function
(
e
)
{
CHAT_UI
.
refreshAllGroupForAddUser
(
'0'
);
});
$
(
'#tabMyGroupOnAddUserInCollaboration'
).
on
(
'click'
,
function
(
e
)
{
CHAT_UI
.
refreshMyGroupForAddUserInCollaboration
();
});
$
(
'#tabAllGroupOnAddUserInCollaboration'
).
on
(
'click'
,
function
(
e
)
{
CHAT_UI
.
refreshAllGroupForAddUserInCollaboration
(
'0'
);
});
$
(
'#makeRoomConfirmBtn'
).
on
(
'click'
,
function
(
e
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
saveSelectedUserList
(
CHAT
.
globalSelectedUserList
.
join
(
","
));
...
...
@@ -1400,6 +1409,15 @@ $('#addUserConfirmBtn').on('click', function(e) {
$
(
'#addUserForm'
).
submit
();
});
$
(
'#addUserConfirmBtnInCollaboration'
).
on
(
'click'
,
function
(
e
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
saveSelectedUserList
(
CHAT
.
globalSelectedUserList
.
join
(
","
));
}
else
{
webkit
.
messageHandlers
.
saveSelectedUserList
.
postMessage
(
CHAT
.
globalSelectedUserList
.
join
(
","
));
}
$
(
'#addUserFormInCollaboration'
).
submit
();
});
CHAT_UI
.
roomDisplayOff
=
function
()
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
roomDisplayOff
();
...
...
@@ -2469,3 +2487,310 @@ CHAT_UI.displayDocumentSelectScreen = function() {
$
(
'#overlay_document_list'
).
append
(
obj
);
$
(
'#overlay_document_list'
).
removeClass
(
'none'
);
}
CHAT_UI
.
refreshJoinedCollaboration
=
function
(
loginIdList
,
hostName
)
{
CHAT_UI
.
showLoadingIndicator
();
$
(
'#collaboration_overlay_user_list'
).
html
(
''
);
var
joinedUserListTemplate
;
$
.
get
({
url
:
"./collaboration_overlay_user_list.html"
,
async
:
false
}
,
function
(
text
)
{
joinedUserListTemplate
=
text
;
});
var
joinedUserList
=
CHAT_DB
.
getUserListByLoginId
(
loginIdList
);
joinedUserList
.
forEach
(
function
(
user
)
{
console
.
log
(
"is host = "
+
(
user
.
loginId
==
hostName
));
user
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
user
.
profileUrl
);
user
.
isHost
=
user
.
loginId
==
hostName
?
"host"
:
""
;
})
let
html
=
Mustache
.
render
(
joinedUserListTemplate
,
{
joinedUserList
:
joinedUserList
});
let
obj
=
jQuery
.
parseHTML
(
html
);
$
(
'#collaboration_overlay_user_list'
).
append
(
obj
);
CHAT_UI
.
dismissLoadingIndicator
();
}
CHAT_UI
.
refreshMyGroupForAddUserInCollaboration
=
function
()
{
if
(
CHAT_DB
.
loadSelectedUsers
()
!=
""
)
{
let
selectedUsers
=
CHAT_DB
.
loadSelectedUsers
();
selectedUsers
.
forEach
(
function
(
user
)
{
CHAT
.
globalSelectedUserList
.
push
(
user
.
shopMemberId
);
})
};
if
(
CHAT
.
globalSelectedUserList
.
length
>
0
)
{
$
(
'.select_member_num'
).
text
(
CHAT
.
globalSelectedUserList
.
length
);
}
else
{
$
(
'.select_member_num'
).
text
(
'0'
);
}
$
(
'#favoriteListForAddUserInCollaboration'
).
html
(
''
);
$
(
'#myGroupListForAddUserInCollaboration'
).
html
(
''
);
$
(
'#tabMyGroupOnAddUserInCollaboration'
).
prop
(
'checked'
,
true
);
// グループの様式を読み込む
var
groupTemplate
;
$
.
get
({
url
:
"./template/template_add_user_group_list.html"
,
async
:
false
}
,
function
(
text
)
{
groupTemplate
=
text
;
});
// ユーザの様式を読み込む
var
userTemplate
;
$
.
get
({
url
:
"./template/template_add_user_user_list.html"
,
async
:
false
}
,
function
(
text
)
{
userTemplate
=
text
;
});
var
groupUserTemplate
;
$
.
get
({
url
:
"./template/template_add_user_group_user_list.html"
,
async
:
false
}
,
function
(
text
)
{
groupUserTemplate
=
text
;
});
if
(
IS_ONLINE
==
'true'
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
updateGroupInfo
(
'0'
);
android
.
updateMyInfo
();
android
.
updateGroupUser
();
android
.
updateFavorite
();
}
else
{
webkit
.
messageHandlers
.
updateGroupInfo
.
postMessage
(
"0"
);
webkit
.
messageHandlers
.
updateMyInfo
.
postMessage
({});
webkit
.
messageHandlers
.
updateGroupUser
.
postMessage
({});
webkit
.
messageHandlers
.
updateFavorite
.
postMessage
({});
}
}
//お気に入りグループ取得。
var
favoriteGroupList
=
CHAT_DB
.
getFavoriteGroups
();
favoriteGroupList
.
forEach
(
function
(
favoriteGroup
)
{
let
html
=
Mustache
.
render
(
groupTemplate
,
{
name
:
favoriteGroup
.
groupName
,
id
:
favoriteGroup
.
groupId
,
});
let
obj
=
$
(
jQuery
.
parseHTML
(
html
)).
on
(
'click'
,
function
()
{
});
$
(
'#favoriteListForAddUserInCollaboration'
).
append
(
obj
);
})
//お気に入りユーザ取得。
var
favoriteUserList
=
CHAT_DB
.
getFavoriteUsersNotInRoom
();
favoriteUserList
.
forEach
(
function
(
favoriteUser
)
{
favoriteUser
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
favoriteUser
.
profileUrl
);
let
findObj
=
CHAT
.
globalSelectedUserList
.
find
(
function
(
shopMemberId
)
{
return
shopMemberId
==
favoriteUser
.
shopMemberId
;
})
if
(
findObj
)
{
favoriteUser
.
checked
=
'checked'
;
}
});
let
html
=
Mustache
.
render
(
userTemplate
,
{
userList
:
favoriteUserList
});
let
obj
=
jQuery
.
parseHTML
(
html
);
$
(
'#favoriteListForAddUserInCollaboration'
).
append
(
obj
);
var
myGroupList
=
CHAT_DB
.
getMyGroupUsersNotInRoom
();
myGroupList
.
forEach
(
function
(
myGroup
)
{
myGroup
.
groupUserList
.
forEach
(
function
(
groupUser
)
{
groupUser
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
groupUser
.
profileUrl
)
let
findObj
=
CHAT
.
globalSelectedUserList
.
find
(
function
(
shopMemberId
)
{
return
shopMemberId
==
groupUser
.
shopMemberId
;
})
if
(
findObj
)
{
groupUser
.
checked
=
'checked'
;
}
})
let
html
=
Mustache
.
render
(
groupUserTemplate
,
{
groupName
:
myGroup
.
groupName
,
groupUserList
:
myGroup
.
groupUserList
});
let
obj
=
$
(
jQuery
.
parseHTML
(
html
)).
on
(
'click'
,
function
()
{
});
$
(
'#myGroupListForAddUserInCollaboration'
).
append
(
obj
);
$
(
'#addUserInCollaboration'
).
modal
(
'show'
);
});
CHAT_UI
.
dismissLoadingIndicator
();
}
CHAT_UI
.
refreshAllGroupForAddUserInCollaboration
=
function
(
paramGroupId
)
{
var
groupId
=
paramGroupId
;
$
(
'.content'
).
removeClass
(
'none'
);
$
(
'#tabAllGroupOnAddUserInCollaboration'
).
prop
(
'checked'
,
true
);
//オンライン状態であればサーバから情報更新。
if
(
IS_ONLINE
==
'true'
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
updateGroupInfo
(
groupId
);
}
else
{
webkit
.
messageHandlers
.
updateGroupInfo
.
postMessage
(
groupId
);
}
}
//画面エリアを初期化。
$
(
'#parentGroupBtnForAddUserInCollaboration'
).
off
();
$
(
'#rootGroupBtnForAddUserInCollaboration'
).
off
();
$
(
'#childGroupListAreaForAddUserInCollaboration'
).
html
(
''
);
$
(
'#userInGroupListForAddUserInCollaboration'
).
html
(
''
);
$
(
'#groupPathAreaForAddUserInCollaboration'
).
html
(
''
);
//DBからグループ情報を取得。
var
result
=
CHAT_DB
.
getGroupInfoForAddUser
(
groupId
);
//上位グループ、トップグループ遷移ボタンのイベント追加。
if
(
typeof
result
.
parentGroupId
!==
'undefined'
)
{
$
(
'#parentGroupBtnForAddUserInCollaboration'
).
on
(
'click'
,
function
()
{
CHAT_UI
.
refreshAllGroupForAddUserInCollaboration
(
result
.
parentGroupId
);
});
}
if
(
typeof
result
.
rootGroupId
!==
'undefined'
)
{
if
(
paramGroupId
==
0
)
{
groupId
=
result
.
rootGroupId
}
$
(
'#rootGroupBtnForAddUserInCollaboration'
).
on
(
'click'
,
function
()
{
CHAT_UI
.
refreshAllGroupForAddUserInCollaboration
(
result
.
rootGroupId
);
});
}
if
(
groupId
==
result
.
rootGroupId
||
paramGroupId
==
'0'
)
{
$
(
'#rootGroupAreaInCollaboration'
).
addClass
(
'none'
);
$
(
'#parentGroupAreaInCollaboration'
).
addClass
(
'none'
);
}
else
{
$
(
'#rootGroupAreaInCollaboration'
).
removeClass
(
'none'
);
$
(
'#parentGroupAreaInCollaboration'
).
removeClass
(
'none'
);
}
//該当グループのパースを表示。
var
groupPathTemplate
;
$
.
get
({
url
:
"./template/template_add_user_group_path.html"
,
async
:
false
}
,
function
(
text
)
{
groupPathTemplate
=
text
;
});
var
groupPathCount
=
0
;
result
.
groupPathList
.
forEach
(
function
(
groupPath
)
{
if
(
!
(
groupPathCount
<
(
result
.
groupPathList
.
length
-
3
)))
{
let
html
=
Mustache
.
render
(
groupPathTemplate
,
{
name
:
groupPath
.
groupName
,
id
:
groupPath
.
groupId
});
let
obj
=
jQuery
.
parseHTML
(
html
);
$
(
'#groupPathAreaForAddUserInCollaboration'
).
append
(
obj
);
}
groupPathCount
++
;
})
//該当グループの下位グループ表示。
var
groupTemplate
;
$
.
get
({
url
:
"./template/template_add_user_group_list.html"
,
async
:
false
}
,
function
(
text
)
{
groupTemplate
=
text
;
});
result
.
childGroupList
.
forEach
(
function
(
childGroup
)
{
let
html
=
Mustache
.
render
(
groupTemplate
,
{
name
:
childGroup
.
groupName
,
id
:
childGroup
.
groupId
,
});
let
obj
=
$
(
jQuery
.
parseHTML
(
html
)).
on
(
'click'
,
function
()
{
});
$
(
'#childGroupListAreaForAddUserInCollaboration'
).
append
(
obj
);
})
//該当グループの所属ユーザを表示。
var
userTemplate
;
$
.
get
({
url
:
"./template/template_add_user_user_list.html"
,
async
:
false
}
,
function
(
text
)
{
userTemplate
=
text
;
});
result
.
groupUserList
.
forEach
(
function
(
groupUser
)
{
groupUser
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
groupUser
.
profileUrl
)
let
findObj
=
CHAT
.
globalSelectedUserList
.
find
(
function
(
shopMemberId
)
{
return
shopMemberId
==
groupUser
.
shopMemberId
;
})
if
(
findObj
)
{
groupUser
.
checked
=
'checked'
;
}
})
let
html
=
Mustache
.
render
(
userTemplate
,
{
userList
:
result
.
groupUserList
});
let
obj
=
jQuery
.
parseHTML
(
html
);
$
(
'#userInGroupListForAddUserInCollaboration'
).
append
(
obj
);
}
CHAT_UI
.
makeNameCardInCollaboration
=
function
(
shopMemberId
,
isCollaborationHost
)
{
if
(
CHAT
.
globalLoginParameter
.
shopMemberId
==
shopMemberId
)
{
return
;
}
var
nameCardInfo
=
CHAT_DB
.
getNameCardData
(
shopMemberId
);
var
namecardTemplate
;
var
changeHostTemplate
;
$
.
get
({
url
:
"./modal_collabo_profile.html"
,
async
:
false
}
,
function
(
text
)
{
namecardTemplate
=
text
;
});
if
(
isCollaborationHost
!=
"host"
)
{
$
.
get
({
url
:
"./modal_collabo_change_host.html"
,
async
:
false
}
,
function
(
text
)
{
changeHostTemplate
=
text
;
});
let
changeHostHtml
=
Mustache
.
render
(
changeHostTemplate
,
{
shopMemberId
:
nameCardInfo
.
shopMemberId
});
let
changeHostObj
=
$
(
jQuery
.
parseHTML
(
changeHostHtml
)).
on
(
'click'
,
function
()
{
});
$
(
'#modal_collabo_profile2'
).
html
(
changeHostObj
);
}
nameCardInfo
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
nameCardInfo
.
profileUrl
);
let
namecardHtml
=
Mustache
.
render
(
namecardTemplate
,
{
shopMemberId
:
nameCardInfo
.
shopMemberId
,
profileUrl
:
nameCardInfo
.
profileUrl
,
name
:
nameCardInfo
.
shopMemberName
,
groupPathList
:
nameCardInfo
.
groupPathList
,
isFavorite
:
nameCardInfo
.
isFavorite
,
isHost
:
isCollaborationHost
==
"host"
?
true
:
false
});
let
namecardObj
=
$
(
jQuery
.
parseHTML
(
namecardHtml
)).
on
(
'click'
,
function
()
{
});
$
(
'#userProfileModalInCollaboration'
).
html
(
namecardObj
);
$
(
'#userNameCardInCollaboration'
).
modal
(
'show'
);
};
CHAT_UI
.
removeFavoriteUserInCollaboration
=
function
(
shopMemberId
)
{
CHAT_UI
.
showLoadingIndicator
();
$
(
'#userNameCardInCollaboration'
).
modal
(
'hide'
);
var
result
;
if
(
typeof
(
android
)
!=
"undefined"
)
{
result
=
android
.
removeFavoriteUser
(
shopMemberId
);
}
else
{
result
=
CHAT_DB
.
removeFavoriteUser
(
shopMemberId
);
}
CHAT_UI
.
dismissLoadingIndicator
();
};
CHAT_UI
.
insertFavoriteUserInCollaboration
=
function
(
shopMemberId
)
{
$
(
'#userNameCardInCollaboration'
).
modal
(
'hide'
);
var
result
;
if
(
typeof
(
android
)
!=
"undefined"
)
{
result
=
android
.
addFavoriteUser
(
shopMemberId
);
}
else
{
result
=
CHAT_DB
.
addFavoriteUser
(
shopMemberId
);
}
CHAT_UI
.
dismissLoadingIndicator
();
};
\ No newline at end of file
public_new/js/collaboration.js
View file @
eeb863f9
...
...
@@ -76,18 +76,8 @@ $(function () {
// ユーザー招待メンバー検索
$
(
".add_user_btn"
).
click
(
function
()
{
$
(
"#overlay_add_user_list"
).
removeClass
(
"none"
);
$
.
ajax
({
url
:
"collaboration_overlay_add_user_list.html"
,
type
:
"POST"
,
datatype
:
"html"
,
}).
done
(
function
(
data
)
{
$
(
"#add_user_list"
).
html
(
data
);
});
CHAT_UI
.
showLoadingIndicator
();
CHAT_UI
.
refreshMyGroupForAddUserInCollaboration
();
});
$
(
'#penBtn'
).
click
(
function
()
{
...
...
public_new/js/share.js
View file @
eeb863f9
...
...
@@ -33,7 +33,6 @@ $(function(){
$
(
"#coviewShareCloseButton"
).
on
(
"click"
,
function
(
e
){
coview_api
.
LeaveRoom
();
$
(
".coview_share_area"
).
hide
();
});
$
(
"body"
).
on
(
"click"
,
function
(){
...
...
@@ -42,13 +41,15 @@ $(function(){
$
(
document
).
on
(
"click"
,
".coview_share_request"
,
function
(){
console
.
log
(
"globalUserInfo"
,
globalUserInfo
);
if
(
$
(
this
).
hasClass
(
"video"
)
==
true
)
{
globalUserInfo
.
coWorkType
=
"video"
;
if
(
$
(
this
).
hasClass
(
collaborationTypeKey
.
VIDEO
)
==
true
)
{
globalUserInfo
.
coWorkType
=
collaborationTypeKey
.
VIDEO
;
$
(
".coview_share_title_name"
).
text
(
"LIVE"
);
}
else
{
globalUserInfo
.
coWorkType
=
"image"
;
$
(
".coview_share_title_name"
).
text
(
"IMAGE"
);
}
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
);
...
...
@@ -87,21 +88,30 @@ $(function(){
$
(
"#coviewSharePhotoCamera"
).
on
(
"click"
,
function
(){
$
(
".coview_share_photo_select_bubble"
).
hide
();
globalUserInfo
.
coWorkType
=
"camera"
;
globalUserInfo
.
coWorkType
=
collaborationTypeKey
.
CAMERA
;
coview_api
.
CreateRoom
(
globalUserInfo
.
roomId
,
globalUserInfo
.
coWorkType
);
Coview_moveToVideoShareArea
();
$
(
".coview_share_title_name"
).
text
(
"カメラ"
);
});
$
(
"#coviewSharePhotoGal
a
ry"
).
on
(
"click"
,
function
(){
$
(
"#coviewSharePhotoGal
le
ry"
).
on
(
"click"
,
function
(){
$
(
".coview_share_photo_select_bubble"
).
hide
();
globalUserInfo
.
coWorkType
=
"gal
a
ry"
;
globalUserInfo
.
coWorkType
=
"gal
le
ry"
;
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"
;
...
...
@@ -148,7 +158,7 @@ $(function(){
coview_api
.
addEventListener
(
"message"
,
async
function
(
event
,
json
)
{
console
.
log
(
"+++ addEventListener"
,
json
);
console
.
log
(
"processMessage api = "
,
json
.
api
);
let
loginIdList
=
new
Array
();
switch
(
json
.
api
){
case
"LoginResponse"
:
console
.
log
(
'------------------------------'
);
...
...
@@ -160,7 +170,6 @@ $(function(){
coview_api
.
CreateRoom
(
globalUserInfo
.
roomId
,
globalUserInfo
.
coWorkType
);
}
Coview_moveToVideoShareArea
();
break
;
case
"CreateRoomResponse"
:
if
(
json
.
resultCode
==
200
){
...
...
@@ -174,8 +183,8 @@ $(function(){
}
break
;
case
"
j
oinRoomInfoResponse"
:
if
(
json
.
resultCode
==
200
)
{
case
"
J
oinRoomInfoResponse"
:
if
(
json
.
resultCode
==
200
)
{
}
else
{
// alert(json.resultMsg + "(" + json.resultCode + ")" );
...
...
@@ -185,7 +194,27 @@ $(function(){
$
(
"#loadingIndicator"
).
removeClass
(
"full_active"
);
}
break
;
case
"JoinRoomResponse"
:
if
(
json
.
resultCode
==
200
){
for
(
let
key
in
g_participants
)
{
loginIdList
.
push
(
key
);
}
CHAT_UI
.
refreshJoinedCollaboration
(
loginIdList
);
}
else
{
}
break
;
case
"RoomMemberJoinedEvent"
:
for
(
let
key
in
g_participants
)
{
loginIdList
.
push
(
key
);
}
CHAT_UI
.
refreshJoinedCollaboration
(
loginIdList
);
break
;
case
"RoomMemberLeavedEvent"
:
for
(
let
key
in
g_participants
)
{
loginIdList
.
push
(
key
);
}
CHAT_UI
.
refreshJoinedCollaboration
(
loginIdList
);
break
;
default
:
console
.
log
(
'Unrecognized api'
,
json
);
break
;
...
...
@@ -208,3 +237,8 @@ function Coview_exitCollaboration(){
coview_api
.
LeaveRoom
();
CHAT_UI
.
joinRoom
(
CHAT
.
globalLoginParameter
.
roomId
,
CHAT
.
globalLoginParameter
.
name
);
}
function
Coview_changeHost
(
shopMemberId
)
{
console
.
log
(
"Change Host To "
+
shopMemberId
);
coview_api
.
HostChange
(
shopMemberId
);
}
public_new/modal_add_user_list.html
0 → 100644
View file @
eeb863f9
<!-- コンテンツ -->
<div
class=
"modal fade add_user_modal"
id=
"addUserInCollaboration"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"addUserInCollaboration"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-dialog-centered"
role=
"document"
>
<div
class=
"modal-content"
>
<form
id=
"addUserFormInCollaboration"
action=
"chat_add_user_confirm.html"
method=
"post"
>
<!-- ユーザー検索 -->
<!-- タブ -->
<div
class=
"content tabs"
>
<nav
class=
"nav-modal-add-user"
>
<div
class=
"row h-100 align-items-center"
>
<div
class=
"col-4 pr-0"
>
<div
class=
"nav-item"
>
<a
href=
"#"
class=
"close_btn"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
閉じる
</a>
</div>
</div>
<div
class=
"col-4 p-0"
>
<div
class=
"nav-item p-0"
>
<h1
class=
"nav-ttl"
>
ユーザー選択
</h1>
</div>
</div>
</div>
<!-- .row -->
</nav>
<!-- nav -->
<input
id=
"tabMyGroupOnAddUserInCollaboration"
type=
"radio"
name=
"tab_item"
checked
>
<label
class=
"tab_item"
for=
"tabMyGroupOnAddUserInCollaboration"
>
マイグループ
</label>
<input
id=
"tabAllGroupOnAddUserInCollaboration"
type=
"radio"
name=
"tab_item"
>
<label
class=
"tab_item"
for=
"tabAllGroupOnAddUserInCollaboration"
>
全グループ
</label>
<div
class=
"tab_content"
id=
"tab1_content"
>
<div
class=
"chat_list"
>
<!-- お気に入りグループ -->
<div
class=
"category"
><div
class=
"category_name"
><span>
お気に入り
</span></div></div>
<div
id=
"favoriteListForAddUserInCollaboration"
></div>
<div
id=
"myGroupListForAddUserInCollaboration"
></div>
</div>
</div>
<div
class=
"tab_content"
id=
"tab2_content"
>
<div
class=
"breadcrumb"
id=
"groupPathAreaForAddUser"
></div>
<div
class=
"chat_list"
>
<!-- 全グループ -->
<ul
class=
"p-0 chat_make_room_list"
>
<li
class=
"d-flex align-items-center"
id=
"rootGroupAreaInCollaboration"
>
<a
href=
"#"
class=
"w-100"
id=
"rootGroupBtnForAddUserInCollaboration"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item_l"
>
<div
class=
"thumbnail"
>
<img
src=
"icon/icon_prev_top.png"
alt=
"トップグループに戻る"
/>
</div>
</div>
<div
class=
"chat_item_m px-0"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"chat_item_t"
>
<span
class=
"chat_item_ttl"
>
トップグループに戻る
</span>
</div>
</div>
</div>
</div>
</a>
</li>
<li
class=
"d-flex align-items-center"
id=
"parentGroupAreaInCollaboration"
>
<a
href=
"#"
class=
"w-100"
id=
"parentGroupBtnForAddUserInCollaboration"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item_l"
>
<div
class=
"thumbnail"
>
<img
src=
"icon/icon_prev.png"
alt=
"上位グループに戻る"
/>
</div>
</div>
<div
class=
"chat_item_m px-0"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"chat_item_t"
>
<span
class=
"chat_item_ttl"
>
上位グループに戻る
</span>
</div>
</div>
</div>
</div>
</a>
</li>
<div
id=
"childGroupListAreaForAddUserInCollaboration"
></div>
<div
id=
"userInGroupListForAddUserInCollaboration"
></div>
</ul>
</div>
</div>
</div>
<!-- ルーム解説ボタン -->
<div
class=
"make_room_confirm_btn content"
id=
"addUserConfirmBtnInCollaboration"
>
<button
type=
"button"
name=
"button"
id=
"buttonAddUser"
>
確認
<br>
<span
class=
"select_member_num"
></span><span
class=
"select_member"
>
名 選択中
</span></button>
</div>
</form>
</div>
</div>
</div>
public_new/modal_collabo_change_host.html
View file @
eeb863f9
...
...
@@ -15,7 +15,7 @@
<span>
キャンセル
</span>
</div>
</button>
<button
type=
"button"
class=
"profile_chat_btn border-0 bg_blue text_white"
>
<button
type=
"button"
onclick=
"Coview_changeHost({{shopMemberId}});"
class=
"profile_chat_btn border-0 bg_blue text_white"
>
<div
class=
"d-flex flex-column"
>
<span>
引き渡し
</span>
</div>
...
...
public_new/modal_collabo_profile.html
View file @
eeb863f9
<div
class=
"modal fade profile_modal w_50"
id=
"
profileModal1
"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"
profileModal1
"
aria-hidden=
"true"
>
<div
class=
"modal fade profile_modal w_50"
id=
"
userNameCardInCollaboration
"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"
userNameCardInCollaboration
"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-dialog-centered"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header border-0"
>
<div
class=
"profile_desc d-flex flex-row"
>
<img
src=
"
img/noImage.png"
alt=
"プロフィール画像"
>
<div
class=
"profile_name"
><span>
名前 名前
</span></div>
<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"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
>
<p>
グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループグループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ名グループ
</p>
{{#groupPathList}}
<li
onclick=
"CHAT_UI.refreshAllGroupSearch({{groupId}});"
><b>
{{groupPath}}
</b></li>
{{/groupPathList}}
</div>
<div
class=
"modal-footer border-0 justify-content-center"
>
<button
type=
"button"
class=
"border-0 bg_navy text_white"
>
{{#isFavorite}}
<button
type=
"button"
class=
"border-0 bg_navy"
onclick=
"CHAT_UI.removeFavoriteUserInCollaboration({{shopMemberId}})"
id=
"favoriteButton"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_profile_favorite.png"
alt=
"お気に入り"
>
...
...
@@ -25,6 +26,18 @@
<span>
お気に入り解除
</span>
</div>
</button>
{{/isFavorite}}
{{^isFavorite}}
<button
type=
"button"
class=
"border-0 bg_navy"
onclick=
"CHAT_UI.insertFavoriteUserInCollaboration({{shopMemberId}})"
id=
"favoriteButton"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"img_wrap"
>
<img
src=
"icon/icon_profile_favorite_white.png"
alt=
"お気に入り"
>
</div>
<span>
お気に入り登録
</span>
</div>
</button>
{{/isFavorite}}
<!-- {{^isHost}}-->
<button
type=
"button"
class=
"ch_host_btn border-0 bg_blue text_white"
data-toggle=
"modal"
data-target=
"#changeHostModal"
value=
"#profileModal1"
>
<div
class=
"d-flex flex-column"
>
...
...
@@ -34,6 +47,7 @@
<span>
ホスト変更
</span>
</div>
</button>
<!-- {{/isHost}}-->
</div>
</div>
</div>
...
...
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