diff options
Diffstat (limited to 'syweb/webclient')
-rw-r--r-- | syweb/webclient/app-controller.js | 8 | ||||
-rwxr-xr-x | syweb/webclient/app.css | 9 | ||||
-rw-r--r-- | syweb/webclient/components/matrix/matrix-call.js | 2 | ||||
-rw-r--r-- | syweb/webclient/img/red_phone.png | bin | 378 -> 0 bytes | |||
-rw-r--r-- | syweb/webclient/index.html | 6 |
5 files changed, 11 insertions, 14 deletions
diff --git a/syweb/webclient/app-controller.js b/syweb/webclient/app-controller.js index 0c419a546f..582c075e3d 100644 --- a/syweb/webclient/app-controller.js +++ b/syweb/webclient/app-controller.js @@ -27,14 +27,6 @@ angular.module('MatrixWebClientController', ['matrixService', 'mPresence', 'even // Check current URL to avoid to display the logout button on the login page $scope.location = $location.path(); -/* - // disable nganimate for the local and remote video elements because ngAnimate appears - // to be buggy and leaves animation classes on the video elements causing them to show - // when they should not (their animations are pure CSS3) - $animate.enabled(false, angular.element('#localVideo')); - $animate.enabled(false, angular.element('#remoteVideo')); -*/ - // Update the location state when the ng location changed $rootScope.$on('$routeChangeSuccess', function (event, current, previous) { $scope.location = $location.path(); diff --git a/syweb/webclient/app.css b/syweb/webclient/app.css index 070e410647..76f3d13ac1 100755 --- a/syweb/webclient/app.css +++ b/syweb/webclient/app.css @@ -66,6 +66,15 @@ textarea, input { margin-left: 4px; margin-right: 4px; margin-top: 8px; + transition: transform linear 0.5s; + transition: -webkit-transform linear 0.5s; +} + +.callIcon.ended { + transform: rotateZ(45deg); + -webkit-transform: rotateZ(45deg); + filter: hue-rotate(-90deg); + -webkit-filter: hue-rotate(-90deg); } #callEndedIcon { diff --git a/syweb/webclient/components/matrix/matrix-call.js b/syweb/webclient/components/matrix/matrix-call.js index a1c3aaa103..56431817d9 100644 --- a/syweb/webclient/components/matrix/matrix-call.js +++ b/syweb/webclient/components/matrix/matrix-call.js @@ -112,7 +112,7 @@ angular.module('MatrixCall', []) } else { var iceServers = []; // https://github.com/EricssonResearch/openwebrtc/issues/85 - if (MatrixCall.turnServer /*&& !this.isOpenWebRTC()*/) { + if (MatrixCall.turnServer && !this.isOpenWebRTC()) { if (MatrixCall.turnServer.uris) { iceServers.push({ 'urls': MatrixCall.turnServer.uris, diff --git a/syweb/webclient/img/red_phone.png b/syweb/webclient/img/red_phone.png deleted file mode 100644 index 11fc44940c..0000000000 --- a/syweb/webclient/img/red_phone.png +++ /dev/null Binary files differdiff --git a/syweb/webclient/index.html b/syweb/webclient/index.html index 6211ecd628..d9c67333af 100644 --- a/syweb/webclient/index.html +++ b/syweb/webclient/index.html @@ -16,9 +16,6 @@ <script src="js/angular.js"></script> <script src="js/angular-route.min.js"></script> <script src="js/angular-sanitize.min.js"></script> -<!-- - <script src="js/angular-animate.min.js"></script> ---> <script src="js/jquery.peity.min.js"></script> <script src="js/angular-peity.js"></script> <script type='text/javascript' src="js/ui-bootstrap-tpls-0.11.2.js"></script> @@ -69,8 +66,7 @@ <div id="headerContent" ng-hide="'/login' == location || '/register' == location"> <div id="callBar" ng-show="currentCall"> <img id="callPeerImage" ng-show="currentCall.userProfile.avatar_url" ngSrc="{{ currentCall.userProfile.avatar_url }}" /> - <img class="callIcon" src="img/green_phone.png" ng-show="currentCall.state != 'ended'" /> - <img class="callIcon" id="callEndedIcon" src="img/red_phone.png" ng-show="currentCall.state == 'ended'" /> + <img class="callIcon" src="img/green_phone.png" ng-show="!!currentCall" ng-class="currentCall.state" /> <div id="callPeerNameAndState"> <span id="callPeerName">{{ currentCall.userProfile.displayname }}</span> <br /> |