From b721eaa84b5d2ba607daf3a1496515405d208297 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Wed, 4 Nov 2015 11:54:16 -0500 Subject: animated screens as well --- www/css/style.css | 4 ++-- www/js/EventCtrl.js | 11 +++++------ www/templates/events-modal.html | 23 ++++++++++++++++++----- 3 files changed, 25 insertions(+), 13 deletions(-) diff --git a/www/css/style.css b/www/css/style.css index 91ce9830..042b9ee8 100644 --- a/www/css/style.css +++ b/www/css/style.css @@ -220,7 +220,7 @@ http://www.cssportal.com/tryit/index.php?file=blog/css-notification-badge */ position:absolute; bottom:60px; left:30px; - z-index:10; + z-index:99; opacity:0.7; width:70%; } @@ -228,7 +228,7 @@ http://www.cssportal.com/tryit/index.php?file=blog/css-notification-badge */ .events-range-modal-text { position:absolute; - bottom:20px; + bottom:10px; right:10px; z-index:10; opacity:0.7; diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index df63ed16..00bec5d3 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -16,7 +16,7 @@ angular.module('zmApp.controllers') // Controller main //--------------------------------------------------- - + $scope.animationInProgress = false; var loginData = ZMDataModel.getLogin(); $scope.hours = []; @@ -1170,26 +1170,25 @@ angular.module('zmApp.controllers') var element = angular.element(document.getElementById("full-screen-event")); element.addClass(slideout).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', outWithOld); + + function outWithOld() { element.removeClass(slideout); prepareModalEvent(eid); + $scope.animationInProgress = true; element.addClass(slidein).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', inWithNew ); } function inWithNew() { element.removeClass(slidein); + $scope.animationInProgress = false; } }; - - - - - //-------------------------------------------------------- // utility function //-------------------------------------------------------- diff --git a/www/templates/events-modal.html b/www/templates/events-modal.html index 46bffd06..a57e2bcf 100644 --- a/www/templates/events-modal.html +++ b/www/templates/events-modal.html @@ -4,15 +4,26 @@ -
+
  • - - +
    + +
    +
    + +
    + @@ -61,7 +72,7 @@ -
    playing event: {{eventId}}
    +
    @@ -71,6 +82,8 @@
    +
    playing event: {{eventId}}
    + -- cgit v1.2.3