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

57 lines
1.9 KiB
Plaintext
Raw Normal View History

<!-- <button id="test-btn" class="btn btn-primary">Test Connection</button> -->
<div>
<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>
<form id="lang-1">
<input type="text" class="form-control" name="language-1-input" id="language-1-input" value="" aria-describedby="basic-addon2">
</form>
<select id="language-2" class="input-field-text-black input-dropdown form-control">
<% @languages.each do |language| %>
<option value="<%= language.code %>"><%= language.name %></option>
<% end %>
</select>
<form id="lang-2">
<input type="text" class="form-control" name="language-2-input" id="language-2-input" value="" aria-describedby="basic-addon2">
</form>
</div>
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-08-30 17:42:42 +00:00
<div class="call-container">
<div id="remote-video-container">
<div id="video_overlays">
2018-09-04 12:50:44 +00:00
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-04 12:50:44 +00:00
<i class="far fa-hand-paper hand"></i>
2018-08-30 17:42:42 +00:00
</div>
<div class="translate-container">
</div>
<div class="messages-container-container">
<div id="messages-container" style="color: white;">
</div>
<div class="input-group mb-3">
<input type="text" class="form-control" name="chat-input" id="chat-input" value="" aria-describedby="basic-addon2">
<div class="input-group-append">
<button class="btn btn-primary" id="send-btn" type="submit" remote: true>Send</button>
</div>
</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
<%= javascript_pack_tag 'chatrooms' %>
<%= javascript_pack_tag 'webrtc' %>
<%= javascript_pack_tag 'translate' %>