Added the ability to raise/lower hand.

This commit is contained in:
Maxim Khlobystov 2015-06-10 11:45:11 -07:00
parent d14c10bf42
commit 1a102ee864
3 changed files with 33 additions and 0 deletions

View File

@ -192,6 +192,28 @@
}
}
.raiseHandButton {
position: absolute;
bottom: 0;
right: 0;
margin-bottom: 0;
padding: 0;
&, &:hover {
background-color: transparent;
}
i {
color: black;
}
@media @desktop-portrait, @landscape {
height: 50px;
width: 50px;
}
@media @mobile-portrait-with-keyboard, @mobile-portrait {
height: 100px;
width: 10%;
}
}
.exitFullscreenButton {
position: absolute;
top: 0;

View File

@ -40,3 +40,9 @@ Template.whiteboard.events
document.mozCancelFullScreen()
else if document.webkitExitFullscreen
document.webkitExitFullscreen()
'click .raiseHand': (event) ->
BBB.raiseHand(BBB.getMeetingId(), getInSession('userId'), getInSession('userId'), getInSession('authToken'))
'click .lowerHand': (event) ->
BBB.lowerHand(BBB.getMeetingId(), getInSession('userId'), getInSession('userId'), getInSession('authToken'))

View File

@ -6,6 +6,11 @@
<div id="whiteboard-container" class="{{whiteboardSize}}">
<div id="whiteboard-paper">
</div>
{{#if isCurrentUserRaisingHand}}
{{> makeButton btn_class="lowerHand raiseHandButton" i_class="ion-android-hand"}}
{{else}}
{{> makeButton btn_class="raiseHand raiseHandButton" i_class="ion-android-hand"}}
{{/if}}
{{#if isMobile}}
{{> makeButton btn_class="fullscreenButton whiteboardFullscreenButton" i_class="ion-arrow-expand"}}
{{/if}}