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
05b206b3
Commit
05b206b3
authored
Jun 16, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使わないメソッド削除。
parent
5d16ab1e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
144 deletions
+0
-144
public_new/js/chat-ui.js
+0
-144
No files found.
public_new/js/chat-ui.js
View file @
05b206b3
...
...
@@ -1515,135 +1515,6 @@ CHAT_UI.toggleCategory = function (category) {
$(category).next().slideToggle();
};
// アーカイブ一覧
CHAT_UI.refreshArchiveDetailScreen = function (archiveId) {
// loadingIndicatorを表示
CHAT_UI.showLoadingIndicator();
// 初期化
$("#archiveDetail").html("");
// アーカイブ詳細の様式を読み込む
const archiveDetailTemplate = $("#archive-detail-template").html();
if (IS_ONLINE == "true") {
CHAT_DB.updateArchiveDetail(archiveId);
}
// アーカイブ詳細取得
var archive = CHAT_DB.getArchiveDetail(archiveId);
// チャットルーム情報を取得
var roomId = archive.roomId;
//保存ユーザ情報を取得
var userInfo = CHAT_DB.getUserInfo(archive.saveUserId);
userInfo.profileUrl = CHAT.getProfileImgUrl(userInfo.profileUrl);
// アーカイブ情報を表示
var html = Mustache.render(archiveDetailTemplate, {
fileName: archive.archiveName,
insertDate: archive.archiveDate,
chatRoomName: archive.roomName,
chatRoomId: archive.roomId,
profileImage: userInfo.profileUrl,
userName: userInfo.shopMemberName,
userId: userInfo.shopMemberId,
});
var obj = $(jQuery.parseHTML(html)).on("click", function () {});
$("#archiveDetail").append(obj);
// プレイヤーの切り替え
var archiveFilePath = CHAT.createGetDataUrl(archive.filePath, archive.roomId);
switch (archive.archiveType) {
case "0": // 画像
case 0:
$("#archive_player").prepend(
'
<
img
class
=
"archive_player"
src
=
"' + archiveFilePath + '"
/>
'
);
break;
case "1": // 動画
case 1:
if (CHAT_UTIL.isIOS()) {
$("#archive_player").prepend(
'
<
video
class
=
"archive_player"
controls
autoplay
muted
playsinline
controlsList
=
"nodownload"
><
source
src
=
"' +
archiveFilePath +
'"
type
=
"video/mp4"
><
source
src
=
"' +
archiveFilePath +
'"
type
=
"video/ogv"
><
source
src
=
"' +
archiveFilePath +
'"
type
=
"video/webm"
><
/video>
'
);
}
else
{
$
(
"#archive_player"
).
prepend
(
'<video class="archive_player" src='
+
archiveFilePath
+
' controls autoplay muted playsinline controlsList="nodownload"></video>'
);
}
break
;
case
"2"
:
// 音声
case
2
:
if
(
CHAT_UTIL
.
isIOS
())
{
$
(
"#archive_player"
).
prepend
(
'<audio id="mv" class="archive_audio_player" controls controlsList="nodownload"><source src="'
+
archiveFilePath
+
'" type="audio/wav"><source src="'
+
archiveFilePath
+
'" type="audio/ogg"></audio>'
);
}
else
{
$
(
"#archive_player"
).
prepend
(
'<audio class="archive_audio_player" src='
+
archiveFilePath
+
' controls controlsList="nodownload"></audio>'
);
}
$
(
"#archive_player"
).
prepend
(
'<img class="archive_player" src='
+
"./img/capture.png"
+
" />"
);
break
;
case
"3"
:
// 文書
case
3
:
// リリースに文書とその他は含めないため今回は非表示
break
;
default
:
// リリースに文書とその他は含めないため今回は非表示
}
// ユーザの様式を読み込む
const
archiveUserTemplate
=
$
(
"#archive-user-template"
).
html
();
// 参加ユーザ情報を表示
let
attendUserList
=
archive
.
attendUserIds
;
if
(
typeof
android
!=
"undefined"
)
{
// ios実装不要
attendUserList
=
JSON
.
parse
(
archive
.
attendUserIds
);
}
attendUserList
.
forEach
(
function
(
user
)
{
var
userInfo
=
CHAT_DB
.
getUserInfo
(
user
);
userInfo
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
userInfo
.
profileUrl
);
var
html
=
Mustache
.
render
(
archiveUserTemplate
,
{
profileImage
:
userInfo
.
profileUrl
,
userName
:
userInfo
.
shopMemberName
,
});
var
obj
=
$
(
jQuery
.
parseHTML
(
html
)).
on
(
"click"
,
function
()
{
// ネームカード表示
CHAT_UI
.
makeNameCard
(
user
);
});
$
(
"#attendUser"
).
append
(
obj
);
});
CHAT_UI
.
htmlElementTextInitialize
(
navigator
.
language
);
// チャットルームへのリンク付け
document
.
getElementById
(
"joinChatRoom"
).
onclick
=
function
()
{
CHAT_UI
.
joinRoom
(
archive
.
roomId
,
archive
.
roomName
);
};
// loadingIndicatorを非表示
CHAT_UI
.
dismissLoadingIndicator
();
};
// アーカイブ詳細
CHAT_UI.refreshArchiveDetailScreen = function (archiveId) {
// loadingIndicatorを表示
...
...
@@ -1825,21 +1696,6 @@ CHAT_UI.refreshMyGroupForMakeRoom = function () {
let
obj
=
jQuery
.
parseHTML
(
html
);
$
(
"#favoriteListForMakeRoom"
).
append
(
obj
);
/*favoriteUserList.forEach(function(favoriteUser) {
favoriteUser.profileImagePath = CHAT.getProfileImgUrl(favoriteUser.profileUrl)
let html = Mustache.render(userTemplate, {
shopMemberId: favoriteUser.shopMemberId,
profileImage: favoriteUser.profileImagePath,
name: favoriteUser.shopMemberName,
isFavorite: true
});
let obj = $(jQuery.parseHTML(html)).on('click', function() {
});
$('#favoriteList').append(obj);
})*/
var
myGroupList
=
CHAT_DB
.
getMyGroupUsers
();
myGroupList
.
forEach
(
function
(
myGroup
)
{
myGroup
.
groupUserList
.
forEach
(
function
(
groupUser
)
{
...
...
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