initial mobile design (#54)

This commit is contained in:
Athou
2013-05-26 13:34:31 +02:00
parent d4b284eb80
commit c6a8c288ce
15 changed files with 156 additions and 72 deletions

View File

@@ -12,6 +12,17 @@ module.service('AnalyticsService', [ '$state', function($state) {
};
} ]);
module.service('MobileService', [ '$state', function($state) {
this.toggleLeftMenu = function() {
$('body').toggleClass('left-menu-active');
}
this.toggleRightMenu = function() {
$('body').toggleClass('right-menu-active');
}
var width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
this.mobile = width < 979;
}]);
module.factory('ProfileService', ['$resource', function($resource) {
var res = $resource('rest/user/profile/');