forked from Archives/Athou_commafeed
initial mobile design (#54)
This commit is contained in:
@@ -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/');
|
||||
|
||||
Reference in New Issue
Block a user