Commit 55b9b25a by Иван Кубота

hide debug

parent 5b629053
...@@ -49,7 +49,11 @@ ...@@ -49,7 +49,11 @@
<script src="view/CallScreen.js"></script> <script src="view/CallScreen.js"></script>
<script src="app.js"></script> <script src="app.js"></script>
<script src="./bundle/apps.js"></script> <script src="./bundle/apps.js"></script>
<div id="debug"></div>
<script> <script>
D('#debug')[0].addEventListener('click', function() {
document.body.classList.toggle('debug');
});
store.set('appLoaded', true); store.set('appLoaded', true);
D.ext(D('.callapp_button')[0], {onclick: function() { D.ext(D('.callapp_button')[0], {onclick: function() {
...@@ -57,6 +61,5 @@ ...@@ -57,6 +61,5 @@
</script> </script>
</body> </body>
</html> </html>
...@@ -236,6 +236,10 @@ input[type="text"]:focus { ...@@ -236,6 +236,10 @@ input[type="text"]:focus {
.hidden { .hidden {
display: none; display: none;
} }
.nothing {
visibility: hidden;
pointer-events: none;
}
.income-video { .income-video {
display: inline-block; display: inline-block;
margin: 20px 8px 0 0; margin: 20px 8px 0 0;
...@@ -294,3 +298,18 @@ input[type="text"]:focus { ...@@ -294,3 +298,18 @@ input[type="text"]:focus {
font-size: 14px; font-size: 14px;
line-height: 24px; line-height: 24px;
} }
#logger {
display: none;
}
.debug #logger {
display: block;
}
#debug {
position: absolute;
top:0;
right:0;
width: 32px;
height: 32px;
}
\ No newline at end of file
var isConnecting = new Store.Value.Boolean(false);
Screen.Conference = function() { Screen.Conference = function() {
var RTC = function(parent, canvas, devname, id, remoteParent) { var RTC = function(parent, canvas, devname, id, remoteParent) {
...@@ -327,8 +328,9 @@ Screen.Conference = function() { ...@@ -327,8 +328,9 @@ Screen.Conference = function() {
hidden: Store.NOT(store.val('callScreenCamerasTune')) hidden: Store.NOT(store.val('callScreenCamerasTune'))
}]}, }]},
D.h('button', { D.h('button', {
cls: ['button primary', {disabled: Store.NOT(store.val('guestPosition'))}], cls: ['button primary', {nothing: Store.OR(isConnected, isConnecting)}],
onclick: ()=>{ onclick: ()=>{
isConnecting.set(true);
store.set('connection', true) store.set('connection', true)
} }
}, 'Ready to connect'), }, 'Ready to connect'),
...@@ -517,6 +519,7 @@ Screen.Conference = function() { ...@@ -517,6 +519,7 @@ Screen.Conference = function() {
}; };
Screen.Conference.beforeShow = function() { Screen.Conference.beforeShow = function() {
isConnecting.set(false);
store.set({ store.set({
connection: false, connection: false,
callScreenCamerasTune: false callScreenCamerasTune: false
......
...@@ -17,7 +17,7 @@ var UserIcon = function(percent, inverse) { ...@@ -17,7 +17,7 @@ var UserIcon = function(percent, inverse) {
}; };
var TableComponent = function(cfg) { var TableComponent = function(cfg) {
var k = 1;
var RoleGuest = function(role, position, percent, inverse) { var RoleGuest = function(role, position, percent, inverse) {
var selected = new Store.Value.Boolean(false); var selected = new Store.Value.Boolean(false);
...@@ -34,7 +34,7 @@ var TableComponent = function(cfg) { ...@@ -34,7 +34,7 @@ var TableComponent = function(cfg) {
return D.div({ return D.div({
cls: [ cls: [
'table-component--guest-row--guest', 'table-component--guest-row--guest table-component--guest-row--guest-'+(k++),
{ {
'table-component--guest-row--guest__selected': selected, 'table-component--guest-row--guest__selected': selected,
'table-component--guest-row--guest__disabled': disabled, 'table-component--guest-row--guest__disabled': disabled,
......
...@@ -55,13 +55,15 @@ ...@@ -55,13 +55,15 @@
} }
.table-component--guest-row--guest__user-icon { .table-component--guest-row--guest__user-icon {
display: inline-block; display: inline-flex;
margin: 8px 8px 0; margin: 8px 8px 0;
position: relative; position: relative;
width: 32px; width: 24px;
height: 32px; height: 24px;
}
.table-component--guest-row--guest-4 {
margin-right: -8px;
} }
.table-component--guest-row--guest__user-icon--obod { .table-component--guest-row--guest__user-icon--obod {
border: 1px solid #594cd7; border: 1px solid #594cd7;
border-radius: 50%; border-radius: 50%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment