|
@@ -5,11 +5,15 @@ var app = angular.module("robware", ['ngAnimate']);
|
|
|
app.controller("main", function($scope) {
|
|
|
var largeWindowBoundary = 1023;
|
|
|
|
|
|
- $scope.menuVisible = window.innerWidth > largeWindowBoundary;
|
|
|
+ $scope.menuVisible = false;//window.innerWidth > largeWindowBoundary;
|
|
|
+
|
|
|
+ $scope.shouldShowMenu = function() {
|
|
|
+ return $scope.menuVisible || window.innerWidth > 1023;
|
|
|
+ };
|
|
|
|
|
|
$(window).on("resize.doResize", function() {
|
|
|
$scope.$apply(function() {
|
|
|
- $scope.menuVisible = window.innerWidth > largeWindowBoundary;
|
|
|
+ //$scope.menuVisible = false;
|
|
|
});
|
|
|
});
|
|
|
});
|