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
dc5fd359
Commit
dc5fd359
authored
Jul 08, 2021
by
Kim Peace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tree Shaking for JS
parent
954849fb
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
97 additions
and
105 deletions
+97
-105
public_new/archive.html
+1
-1
public_new/archive_detail.html
+1
-1
public_new/chat.html
+1
-1
public_new/chat_add_user.html
+1
-1
public_new/chat_add_user_confirm.html
+1
-1
public_new/chat_change_room_name.html
+1
-1
public_new/chat_make_room.html
+1
-1
public_new/chat_make_room_confirm.html
+1
-1
public_new/chat_room.html
+2
-1
public_new/collaboration.html
+1
-1
public_new/collaboration_documents.html
+1
-1
public_new/collaboration_picture.html
+1
-1
public_new/collaboration_video.html
+1
-1
public_new/collaboration_voice.html
+1
-1
public_new/collaboration_whiteboard.html
+1
-1
public_new/contact.html
+1
-1
public_new/js/chat-ui-clickEvents.js
+0
-73
public_new/js/chat-ui.js
+0
-16
public_new/js/utils/chat-media-handler.js
+80
-0
public_new/js/utils/chat-util.js
+0
-0
No files found.
public_new/archive.html
View file @
dc5fd359
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- view -->
<!-- view -->
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
...
...
public_new/archive_detail.html
View file @
dc5fd359
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- view -->
<!-- view -->
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
...
...
public_new/chat.html
View file @
dc5fd359
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- View -->
<!-- View -->
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
...
...
public_new/chat_add_user.html
View file @
dc5fd359
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- View -->
<!-- View -->
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
...
...
public_new/chat_add_user_confirm.html
View file @
dc5fd359
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- View -->
<!-- View -->
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
...
...
public_new/chat_change_room_name.html
View file @
dc5fd359
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- View -->
<!-- View -->
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
...
...
public_new/chat_make_room.html
View file @
dc5fd359
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- View -->
<!-- View -->
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
...
...
public_new/chat_make_room_confirm.html
View file @
dc5fd359
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- View -->
<!-- View -->
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
...
...
public_new/chat_room.html
View file @
dc5fd359
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- Socket -->
<!-- Socket -->
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
...
@@ -171,6 +171,7 @@
...
@@ -171,6 +171,7 @@
<!-- View -->
<!-- View -->
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/utils/chat-media-handler.js"
></script>
<script
src=
"./js/chat-room.js"
></script>
<script
src=
"./js/chat-room.js"
></script>
<script
src=
"./js/common/loading.js"
></script>
<script
src=
"./js/common/loading.js"
></script>
...
...
public_new/collaboration.html
View file @
dc5fd359
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- Socket -->
<!-- Socket -->
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
...
...
public_new/collaboration_documents.html
View file @
dc5fd359
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- Socket -->
<!-- Socket -->
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
...
...
public_new/collaboration_picture.html
View file @
dc5fd359
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- Socket -->
<!-- Socket -->
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
...
...
public_new/collaboration_video.html
View file @
dc5fd359
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- Socket -->
<!-- Socket -->
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
...
...
public_new/collaboration_voice.html
View file @
dc5fd359
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- Socket -->
<!-- Socket -->
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
...
...
public_new/collaboration_whiteboard.html
View file @
dc5fd359
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- Socket -->
<!-- Socket -->
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
<script
src=
"./js/sockets/chat-websocket-message.js"
></script>
...
...
public_new/contact.html
View file @
dc5fd359
...
@@ -194,7 +194,7 @@
...
@@ -194,7 +194,7 @@
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-delegate.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/native-bridge-datasource.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/common/common.js"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/
utils/
chat-util.js"
></script>
<!-- View -->
<!-- View -->
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
<script
src=
"./js/chat-ui.js"
></script>
...
...
public_new/js/chat-ui-clickEvents.js
View file @
dc5fd359
...
@@ -17,79 +17,6 @@ $("#messageInput").on("keypress", function (event) {
...
@@ -17,79 +17,6 @@ $("#messageInput").on("keypress", function (event) {
}
}
});
});
// 写真アップロード
$
(
"#imageInputButton"
).
on
(
"click"
,
function
()
{
$
(
"#imageInputTag"
).
click
();
});
// 動画アップロード
$
(
"#videoUploadButton"
).
on
(
"click"
,
function
()
{
$
(
"#videoInputTag"
).
click
();
});
$
(
"#imageInputTag"
).
on
(
"change"
,
function
()
{
$
(
"#image-form"
).
submit
();
// reset the value of form
$
(
"#imageInputTag"
).
val
(
""
);
});
$
(
"#videoInputTag"
).
on
(
"change"
,
function
()
{
$
(
"#video-form"
).
submit
();
// reset the value of form
$
(
"#videoInputTag"
).
val
(
""
);
});
$
(
"#image-form"
).
on
(
"submit"
,
function
(
e
)
{
e
.
preventDefault
();
const
imageInputTag
=
$
(
"#imageInputTag"
);
const
file
=
imageInputTag
.
prop
(
"files"
)[
0
];
if
(
file
)
{
$
(
".overlay"
).
addClass
(
"active undismissable"
);
$
(
".loader"
).
addClass
(
"active"
);
CHAT_UI
.
showLoadingIndicator
();
var
fd
=
new
FormData
(
$
(
this
)[
0
]);
console
.
log
(
$
(
this
)[
0
]);
//画像の大きさが500pixelより大きかったら、thumbnailを生成
CHAT
.
createThumbnailAndUpload
(
file
,
function
(
resizeFile
,
thumbnailCreated
)
{
if
(
resizeFile
&&
thumbnailCreated
)
{
//ただ、画像の大きさが500pixel以下の場合はthumbnailは生成されない
fd
.
append
(
"thumb"
,
resizeFile
);
}
// イメージをアップロード
CHAT
.
uploadImage
(
fd
);
}
);
}
});
$
(
"#video-form"
).
on
(
"submit"
,
function
(
e
)
{
e
.
preventDefault
();
const
videoInputTag
=
$
(
"#videoInputTag"
);
const
file
=
videoInputTag
.
prop
(
"files"
)[
0
];
if
(
file
)
{
$
(
".overlay"
).
addClass
(
"active undismissable"
);
$
(
".loader"
).
addClass
(
"active"
);
CHAT_UI
.
showLoadingIndicator
();
var
fd
=
new
FormData
(
$
(
this
)[
0
]);
if
(
!
file
.
type
.
includes
(
"image"
))
{
// video 保存
// CHAT.createVideoThumbnailAndUpload(file, function(resizeFile, thumbnailCreated) {
// if(resizeFile && thumbnailCreated) {
// //ただ、画像の大きさが500pixel以下の場合はthumbnailは生成されない
// fd.append('thumb', resizeFile)
// }
// CHAT.uploadImage(fd);
// })
CHAT
.
uploadImage
(
fd
);
return
;
}
}
});
$
(
"#tabDM"
).
on
(
"click"
,
function
(
e
)
{
$
(
"#tabDM"
).
on
(
"click"
,
function
(
e
)
{
CHAT_UI
.
refreshRoomList
(
ChatRoomType
.
DM
);
CHAT_UI
.
refreshRoomList
(
ChatRoomType
.
DM
);
});
});
...
...
public_new/js/chat-ui.js
View file @
dc5fd359
...
@@ -78,22 +78,6 @@ CHAT_UI.scrollToBottom = function () {
...
@@ -78,22 +78,6 @@ CHAT_UI.scrollToBottom = function () {
);
);
};
};
CHAT_UI
.
scrollToLastMarkedUnseen
=
function
(
value
)
{
let
target
=
$
(
"[data-markjs=true]:not([data-seen=true])"
).
last
();
let
messages
=
$
(
"#messages"
);
if
(
target
.
length
>
0
)
{
messages
.
scrollTop
(
target
.
prop
(
"offsetTop"
)
-
target
.
prop
(
"offsetHeight"
)
-
messages
.
prop
(
"offsetHeight"
)
+
target
.
parent
().
parent
().
height
()
);
target
.
attr
(
"data-seen"
,
true
);
}
else
{
messages
.
scrollTop
(
0
);
}
};
//loadingIndicatorを表示
//loadingIndicatorを表示
CHAT_UI
.
showLoadingIndicator
=
function
()
{
CHAT_UI
.
showLoadingIndicator
=
function
()
{
var
h
=
$
(
window
).
height
();
var
h
=
$
(
window
).
height
();
...
...
public_new/js/utils/chat-media-handler.js
0 → 100644
View file @
dc5fd359
var
chatMediaHandler
=
{};
/**
* Image Upload
**/
// 写真アップロード
$
(
"#imageInputButton"
).
on
(
"click"
,
function
()
{
$
(
"#imageInputTag"
).
click
();
});
$
(
"#imageInputTag"
).
on
(
"change"
,
function
()
{
$
(
"#image-form"
).
submit
();
// reset the value of form
$
(
"#imageInputTag"
).
val
(
""
);
});
$
(
"#image-form"
).
on
(
"submit"
,
function
(
e
)
{
e
.
preventDefault
();
const
imageInputTag
=
$
(
"#imageInputTag"
);
const
file
=
imageInputTag
.
prop
(
"files"
)[
0
];
if
(
file
)
{
$
(
".overlay"
).
addClass
(
"active undismissable"
);
$
(
".loader"
).
addClass
(
"active"
);
CHAT_UI
.
showLoadingIndicator
();
var
fd
=
new
FormData
(
$
(
this
)[
0
]);
console
.
log
(
$
(
this
)[
0
]);
//画像の大きさが500pixelより大きかったら、thumbnailを生成
CHAT
.
createThumbnailAndUpload
(
file
,
function
(
resizeFile
,
thumbnailCreated
)
{
if
(
resizeFile
&&
thumbnailCreated
)
{
//ただ、画像の大きさが500pixel以下の場合はthumbnailは生成されない
fd
.
append
(
"thumb"
,
resizeFile
);
}
// イメージをアップロード
CHAT
.
uploadImage
(
fd
);
}
);
}
});
/**
* Video Upload
**/
// 動画アップロード
$
(
"#videoUploadButton"
).
on
(
"click"
,
function
()
{
$
(
"#videoInputTag"
).
click
();
});
$
(
"#videoInputTag"
).
on
(
"change"
,
function
()
{
$
(
"#video-form"
).
submit
();
// reset the value of form
$
(
"#videoInputTag"
).
val
(
""
);
});
$
(
"#video-form"
).
on
(
"submit"
,
function
(
e
)
{
e
.
preventDefault
();
const
videoInputTag
=
$
(
"#videoInputTag"
);
const
file
=
videoInputTag
.
prop
(
"files"
)[
0
];
if
(
file
)
{
$
(
".overlay"
).
addClass
(
"active undismissable"
);
$
(
".loader"
).
addClass
(
"active"
);
CHAT_UI
.
showLoadingIndicator
();
var
fd
=
new
FormData
(
$
(
this
)[
0
]);
if
(
!
file
.
type
.
includes
(
"image"
))
{
// video 保存
// CHAT.createVideoThumbnailAndUpload(file, function(resizeFile, thumbnailCreated) {
// if(resizeFile && thumbnailCreated) {
// //ただ、画像の大きさが500pixel以下の場合はthumbnailは生成されない
// fd.append('thumb', resizeFile)
// }
// CHAT.uploadImage(fd);
// })
CHAT
.
uploadImage
(
fd
);
return
;
}
}
});
public_new/js/chat-util.js
→
public_new/js/
utils/
chat-util.js
View file @
dc5fd359
File moved
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