diff --git a/app/assets/javascripts/test.js b/app/assets/javascripts/test.js new file mode 100644 index 0000000..61fd389 --- /dev/null +++ b/app/assets/javascripts/test.js @@ -0,0 +1,13 @@ +contactsVideo = document.getElementById("contacts-video"); +try { + const stream = await navigator.mediaDevices.getUserMedia({ + audio: false, + video: true + }) + + localstream = stream; + contactsVideo.srcObject = stream + contactsVideo.muted = true +} catch (e) { + console.error(e); +} diff --git a/app/assets/stylesheets/pages/_contacts.scss b/app/assets/stylesheets/pages/_contacts.scss index f257221..d5075eb 100644 --- a/app/assets/stylesheets/pages/_contacts.scss +++ b/app/assets/stylesheets/pages/_contacts.scss @@ -61,7 +61,7 @@ a:hover { .video-content { height: 485px; - background-color: black; + // background-color: black; } .half { diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 6202e07..93d7b8c 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -10,7 +10,8 @@ <%#= stylesheet_pack_tag 'application', media: 'all' %> - <%= render 'shared/navbar' unless params["action"] == "home"%> + + <%= render 'shared/navbar' unless params["action"] == "home" || params["action"] == "new" %> <%= render 'shared/flashes' %> <%= yield %> <%= javascript_include_tag 'application' %> diff --git a/app/views/pages/_contact.html.erb b/app/views/pages/_contact.html.erb index 2450153..4c33e80 100644 --- a/app/views/pages/_contact.html.erb +++ b/app/views/pages/_contact.html.erb @@ -15,24 +15,24 @@