Commit 9f1389a6 by Lee Munkyeong

Merge branch 'feature/photo_collaboration_piucture_select_button' into 'develop'

Feature/photo collaboration piucture select button

See merge request !129
parents 2fc3ca18 715f095d
......@@ -79,6 +79,13 @@
<button type="button" name="button" class="footer_menu_btn"></button>
<div class="footer_menu-wrap d-flex justify-content-around h-100">
<div class="d-flex align-items-center h-100">
<div class="footer_menu_item photo_select_button host_contents">
<a href="#">
<div class="img_wrap bg_blue" id="photo_open_place_holder">
<img src="icon/icon_collabo_picture.png" alt="写真">
</div>
</a>
</div>
<div class="footer_menu_item">
<a href="#">
<div class="img_wrap bg_red" id="penBtn">
......@@ -198,4 +205,4 @@
};
</script>
</body>
</html>
\ No newline at end of file
</html>
......@@ -100,6 +100,10 @@ $(function () {
$('#penBtn').removeClass('bg_blue');
}
})
$('#photo_open_place_holder').click(function () {
$("#open_file_upload").trigger("click");
})
$('#eraserBtn').click(function () {
$('#coviewEraserCtrBtn').click();
......
......@@ -161,7 +161,6 @@ $(function () {
console.log("------------------------------");
console.log(globalUserInfo.coWorkType);
console.log(collaborationJoinFlg);
hostSearchInterval();
if (globalUserInfo.coWorkType == collaborationTypeKey.DOCUMENT) {
isDocument = true;
globalUserInfo.coWorkType = collaborationTypeKey.AUDIO;
......@@ -170,6 +169,7 @@ $(function () {
isBoard = true;
globalUserInfo.coWorkType = collaborationTypeKey.CAMERA;
}
hostSearchInterval();
if (collaborationJoinFlg == "1") {
coview_api.JoinRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
if (isDocument) {
......@@ -369,6 +369,11 @@ function Coview_connect_audio_collaboration() {
function hostSearchInterval() {
let hostName = "";
if (g_isMainMan) {
$('.host_contents').removeClass('none');
} else {
$('.host_contents').addClass('none');
}
function hostSearch() {
if (hostName != g_isMainManUsername) {
if (hostName != "") {
......@@ -386,11 +391,6 @@ function hostSearchInterval() {
$("#collaboration_user_" + hostName).addClass("host");
}
if (g_isMainMan) {
$('.host_contents').removeClass('none');
} else {
$('.host_contents').addClass('none');
}
}
}
}
......
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