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
2416da71
Commit
2416da71
authored
Apr 05, 2021
by
Lee Daehyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
写真拡大修正
parent
7194ca24
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
2 deletions
+31
-2
public_new/chat_room.html
+9
-0
public_new/css/chat.css
+4
-0
public_new/js/chat.js
+2
-2
public_new/modal_chat_picture.html
+16
-0
No files found.
public_new/chat_room.html
View file @
2416da71
...
@@ -134,10 +134,13 @@
...
@@ -134,10 +134,13 @@
<div
id=
"loadingArea"
></div>
<div
id=
"loadingArea"
></div>
<div
id=
"userProfileModal"
></div>
<div
id=
"userProfileModal"
></div>
<div
id=
"chatMenuModal"
></div>
<div
id=
"chatMenuModal"
></div>
<div
id=
"pictureModal"
></div>
<!-- メニューモーダル -->
<!-- メニューモーダル -->
<!--#include virtual="modal_chat_menu.html" -->
<!--#include virtual="modal_chat_menu.html" -->
<!-- プロフィールモーダル -->
<!-- プロフィールモーダル -->
<!--#include virtual="modal_chat_profile.html" -->
<!--#include virtual="modal_chat_profile.html" -->
<!-- 写真メッセージーモーダル -->
<!--#include virtual="modal_chat_picture.html" -->
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/socket.io.js"
></script>
<script
src=
"./js/libs/socket.io.js"
></script>
...
@@ -160,6 +163,11 @@
...
@@ -160,6 +163,11 @@
<script
src=
"./js/chat-websocket.js"
></script>
<script
src=
"./js/chat-websocket.js"
></script>
<script
src=
"./js/chat-room.js"
></script>
<script
src=
"./js/chat-room.js"
></script>
<script>
<script>
function
test
(
image
)
{
$
(
'#modal_image'
).
attr
(
'src'
,
image
.
src
);
$
(
'#pictureModalCenter'
).
modal
(
'show'
);
}
String
.
prototype
.
replaceAll
=
function
(
org
,
dest
)
{
String
.
prototype
.
replaceAll
=
function
(
org
,
dest
)
{
return
this
.
split
(
org
).
join
(
dest
);
return
this
.
split
(
org
).
join
(
dest
);
}
}
...
@@ -170,6 +178,7 @@
...
@@ -170,6 +178,7 @@
let
PLATFORM
=
''
;
let
PLATFORM
=
''
;
let
IS_MOBILE
=
true
;
let
IS_MOBILE
=
true
;
let
IS_ONLINE
=
false
;
let
IS_ONLINE
=
false
;
$
(
"#pictureModal"
).
load
(
"./modal_chat_picture.html"
);
$
(
"#chatMenuModal"
).
load
(
"./modal_chat_menu.html"
);
$
(
"#chatMenuModal"
).
load
(
"./modal_chat_menu.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
android
.
getLoginParameter
();
android
.
getLoginParameter
();
...
...
public_new/css/chat.css
View file @
2416da71
...
@@ -692,6 +692,10 @@ input[name="tab_item"] {
...
@@ -692,6 +692,10 @@ input[name="tab_item"] {
/**************************** modal *************************/
/**************************** modal *************************/
/* メニューモーダル */
/* メニューモーダル */
.modal-body
{
padding-left
:
0.6rem
;
}
.menu_modal
.modal-body
ul
{
.menu_modal
.modal-body
ul
{
list-style
:
none
;
list-style
:
none
;
padding-left
:
0
;
padding-left
:
0
;
...
...
public_new/js/chat.js
View file @
2416da71
...
@@ -111,8 +111,8 @@ CHAT.uploadImage = function(formData) {
...
@@ -111,8 +111,8 @@ CHAT.uploadImage = function(formData) {
}
}
let
downloadPath
=
CMS_SERVER_URL
+
'/chatapi/file/download?fileName='
+
imageName
+
'&roomId='
+
CHAT
.
globalLoginParameter
.
roomId
;
let
downloadPath
=
CMS_SERVER_URL
+
'/chatapi/file/download?fileName='
+
imageName
+
'&roomId='
+
CHAT
.
globalLoginParameter
.
roomId
;
// アップロードが終了した後ローディング画面から離れてメッセージをメッセージを転送する
// アップロードが終了した後ローディング画面から離れてメッセージをメッセージを転送する
const
lightbox
=
$
(
'<a/>'
,{
href
:
imgPath
,
'data-lightbox'
:
'attachedImages'
,
'data-title'
:
imageName
});
const
lightbox
=
$
(
'<a/>'
,{
'data-lightbox'
:
'attachedImages'
,
'data-title'
:
imageName
});
const
image
=
$
(
'<img/>'
,{
src
:
imgPath
,
width
:
'auto'
,
style
:
'max-width:100%
'
});
const
image
=
$
(
'<img/>'
,{
src
:
imgPath
,
width
:
'auto'
,
style
:
'max-width:100%'
,
'data-toggle'
:
'modal'
,
onclick
:
'test(this);
'
});
const
downloadIcon
=
$
(
'<a/>'
,{
href
:
downloadPath
,
class
:
'fa fa-download'
,
download
:
res
.
fileName
});
const
downloadIcon
=
$
(
'<a/>'
,{
href
:
downloadPath
,
class
:
'fa fa-download'
,
download
:
res
.
fileName
});
lightbox
.
append
(
image
);
lightbox
.
append
(
image
);
...
...
public_new/modal_chat_picture.html
0 → 100644
View file @
2416da71
<div
class=
"modal fade menu_modal"
id=
"pictureModalCenter"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"pictureModalTitle"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-dialog-centered"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header border-0"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
>
<div
class=
"picture-modal"
>
<img
src=
"{{imgPath}}"
id=
"modal_image"
>
</div>
</div>
</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