polyglot/app/views/chat_rooms/show.html.erb

72 lines
2.6 KiB
Plaintext
Raw Normal View History

<!-- <button id="test-btn" class="btn btn-primary">Test Connection</button> -->
<% params["action"] = "call" %>
2018-08-31 20:24:38 +00:00
<div id="join-btn" data-room="<%= @chat_room.id %>"></div>
<div id="chatroom-hook" data-chatroom-id='<%= @chat_room.id %>'></div>
2018-09-05 17:17:13 +00:00
2018-09-06 00:59:16 +00:00
<div class="row">
<div class="call-container">
<div class="col-xs-12 col-sm-6 col-lg-4">
<div id="remote-video-container">
<div id="video_overlays">
<video id="local-video" autoplay muted></video>
</div>
<video id="remote-video" autoplay></video>
<i class="far fa-hand-paper hand"></i>
<!-- <i class="far fa-phone-slash hand"></i> -->
</div>
2018-08-30 17:42:42 +00:00
</div>
2018-09-06 00:59:16 +00:00
<div class="col-xs-12 col-sm-6 col-lg-4 no-padding">
<div class="messages-container-container">
2018-09-06 14:39:50 +00:00
<div class="information-container">
2018-09-06 13:17:24 +00:00
<div class="chat-information">
<!-- <p id="caller-name">name</p> -->
<select id="language-1" class="form-control no-radius">
<% @languages.each do |language| %>
<option value="<%= language.code %>"><%= language.name %></option>
<% end %>
</select>
</div>
2018-09-06 11:45:57 +00:00
<div class="hover-notice">
<span class="text-center"><small>Hover to see the original message</small></span>
</div>
2018-09-06 14:39:50 +00:00
<div id="messages-container">
</div>
<div class="chat">
<div class="input-group">
<form class="form-inline" id="chat-form">
<!-- <span class="input-group-addon" style="width:0px; padding-left:0px; padding-right:0px; border:none;"></span> -->
<div class="form-group guyisbadass">
<input type="text" class="form-control input-transparent input-large" name="chat-input" id="chat-input" value="" placeholder="Type something...">
</div>
<div class="form-group">
<span class="input-group-btn">
<button class="form-control send-button" id="send-btn" type="submit" remote: true>
<i class="fas fa-paper-plane"></i>
</button>
</span>
</div>
</form>
</div>
2018-09-06 00:59:16 +00:00
</div>
</div>
2018-09-05 22:23:10 +00:00
</div>
</div>
</div>
2018-08-30 17:42:42 +00:00
</div>
2018-09-06 00:59:16 +00:00
2018-08-31 20:38:48 +00:00
<div><span id="current-user" class="text-color" style="display:none"><%= current_user.id %></span></div>
2018-08-30 17:42:42 +00:00
2018-09-06 15:13:49 +00:00
<script>
const div = document.getElementById('messages-container')
div.scrollTop = div.scrollHeight
</script>
<%= javascript_pack_tag 'chatrooms' %>
<%= javascript_pack_tag 'webrtc' %>
<%= javascript_pack_tag 'translate' %>