Skip to content

Commit

Permalink
[appview] Fixed nits
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Jun 11, 2015
1 parent 70e8f0c commit 505d2a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion samples/appview/embedded_app/camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
margin: 0 auto;
}
video {
width: 100%;
height: 100%;
width: 100%;
}
</style>
</head>
Expand Down
6 changes: 2 additions & 4 deletions samples/appview/embedded_app/camera.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia;

navigator.getUserMedia({ video: true }, function(stream) {
navigator.webkitGetUserMedia({ video: true }, function(stream) {
document.querySelector('video').src = URL.createObjectURL(stream);
}, function(error) {});
}, function(error) { console.log(error) });
16 changes: 8 additions & 8 deletions samples/appview/host_app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@
margin: 0 auto;
}
#log {
height: 32px;
overflow-y: scroll;
background-color: #F1F1F1;
font-family: monospace;
height: 32px;
margin-top: 4px;
overflow-y: scroll;
padding: 10px 0 2px 6px;
background-color: #F1F1F1;
}
form {
padding: 8px;
height: 60px;
padding: 8px;
}
appview {
position: absolute;
width: calc(100% - 16px);
height: calc(100% - 92px);
outline: 1px dashed #999;
margin: 8px;
outline: 1px dashed #999;
position: absolute;
width: calc(100% - 16px);
}
.success {
outline: none;
Expand All @@ -34,7 +34,7 @@
</head>
<body>
<form>
<input id="embedAppId" size=32 type="text" placeholder="App ID"></input>
<input id="embedAppId" size="32" type="text" placeholder="App ID"></input>
<input id="embedAppData" type="text" placeholder="JSON Data"></input>
<button id="sendButton">Embed</button>
<div id="log"></div>
Expand Down

0 comments on commit 505d2a8

Please sign in to comment.