2018-09-04 18:03:28 +00:00
|
|
|
<!-- <button id="test-btn" class="btn btn-primary">Test Connection</button> -->
|
|
|
|
|
2018-08-31 20:24:38 +00:00
|
|
|
<div id="join-btn" data-room="<%= @chat_room.id %>"></div>
|
2018-08-31 19:47:33 +00:00
|
|
|
|
2018-08-30 02:00:09 +00:00
|
|
|
<div id="chatroom-hook" data-chatroom-id='<%= @chat_room.id %>'></div>
|
|
|
|
|
2018-09-05 17:17:13 +00:00
|
|
|
|
|
|
|
<!-- <div class="row">
|
|
|
|
<div class="col-xs-12 col-sm-6 col-lg-4"></div>
|
|
|
|
<div class="col-xs-12 col-sm-6 col-lg-4"></div>
|
|
|
|
</div> -->
|
2018-08-30 17:42:42 +00:00
|
|
|
<div class="call-container">
|
|
|
|
<div id="remote-video-container">
|
|
|
|
<div id="video_overlays">
|
2018-08-31 20:42:33 +00:00
|
|
|
<video id="local-video" autoplay muted></video>
|
2018-08-30 17:42:42 +00:00
|
|
|
</div>
|
2018-09-05 11:01:24 +00:00
|
|
|
<video id="remote-video" autoplay></video>
|
2018-09-04 12:50:44 +00:00
|
|
|
<i class="far fa-hand-paper hand"></i>
|
2018-08-30 17:42:42 +00:00
|
|
|
</div>
|
2018-09-04 18:03:28 +00:00
|
|
|
|
|
|
|
<div class="messages-container-container">
|
2018-09-05 17:17:13 +00:00
|
|
|
<div id="messages-container">
|
2018-09-04 18:03:28 +00:00
|
|
|
</div>
|
2018-09-05 17:17:13 +00:00
|
|
|
<div class="chat">
|
2018-09-05 13:59:39 +00:00
|
|
|
<select id="language-1" class="input-field-text-black input-dropdown form-control">
|
|
|
|
<% @languages.each do |language| %>
|
|
|
|
<option value="<%= language.code %>"><%= language.name %></option>
|
|
|
|
<% end %>
|
|
|
|
</select>
|
2018-09-05 17:17:13 +00:00
|
|
|
<input type="text" class="form-control" name="chat-input" id="chat-input" value="">
|
|
|
|
<button class="btn btn-primary" id="send-btn" type="submit" remote: true>Send</button>
|
2018-09-04 18:03:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-30 17:42:42 +00:00
|
|
|
</div>
|
|
|
|
|
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-08-31 19:47:33 +00:00
|
|
|
<%= javascript_pack_tag 'chatrooms' %>
|
|
|
|
<%= javascript_pack_tag 'webrtc' %>
|
2018-09-04 18:03:28 +00:00
|
|
|
<%= javascript_pack_tag 'translate' %>
|
2018-08-31 05:02:24 +00:00
|
|
|
|