diff --git a/desktopapp/controllers.js b/desktopapp/controllers.js index 97f4503..656a647 100644 --- a/desktopapp/controllers.js +++ b/desktopapp/controllers.js @@ -32,16 +32,31 @@ angular.module('workApp', []) id: $scope.projects[$scope.projects.length-1].id+1 }; }; + $scope.editingIndex=""; + $scope.editProject = function(index){ + $scope.editingIndex=index; + $scope.editingProject=angular.copy($scope.projects[index]); + }; + $scope.cancelEditProject = function(){ + $scope.editingProject=false; + }; + $scope.updateProject = function(){ + $scope.projects[$scope.editingIndex]=angular.copy($scope.editingProject); + $scope.currentproject=angular.copy($scope.editingProject); + $scope.editingProject=false; + }; $scope.removeProject = function(index){ $scope.projects.splice(index, 1); localStorage.setItem("w_l_projects", angular.toJson($scope.projects)); }; $scope.projectSelect = function(index){ + $scope.btnStop(); $scope.currentproject=$scope.projects[index]; }; var interval; $scope.currentStrike=0; $scope.btnWork = function(){ + $scope.editingProject=false; $scope.working=true; $scope.currentStrike=0; interval = $interval(function(){ diff --git a/desktopapp/img/apibrowser.png b/desktopapp/img/apibrowser.png new file mode 100644 index 0000000..1b9a104 Binary files /dev/null and b/desktopapp/img/apibrowser.png differ diff --git a/desktopapp/img/browser.png b/desktopapp/img/browser.png new file mode 100644 index 0000000..97696e4 Binary files /dev/null and b/desktopapp/img/browser.png differ diff --git a/desktopapp/img/codetags.png b/desktopapp/img/codetags.png new file mode 100644 index 0000000..5a82984 Binary files /dev/null and b/desktopapp/img/codetags.png differ diff --git a/desktopapp/img/diagram.png b/desktopapp/img/diagram.png new file mode 100644 index 0000000..8a3b934 Binary files /dev/null and b/desktopapp/img/diagram.png differ diff --git a/desktopapp/img/edit.png b/desktopapp/img/edit.png new file mode 100644 index 0000000..ce360d7 Binary files /dev/null and b/desktopapp/img/edit.png differ diff --git a/desktopapp/img/monitor.png b/desktopapp/img/monitor.png new file mode 100644 index 0000000..7653f3f Binary files /dev/null and b/desktopapp/img/monitor.png differ diff --git a/desktopapp/img/smartphone.png b/desktopapp/img/smartphone.png new file mode 100644 index 0000000..a971994 Binary files /dev/null and b/desktopapp/img/smartphone.png differ diff --git a/desktopapp/img/statistics.png b/desktopapp/img/statistics.png new file mode 100644 index 0000000..5e1add8 Binary files /dev/null and b/desktopapp/img/statistics.png differ diff --git a/desktopapp/img/tablet.png b/desktopapp/img/tablet.png new file mode 100644 index 0000000..8875d15 Binary files /dev/null and b/desktopapp/img/tablet.png differ diff --git a/desktopapp/index.html b/desktopapp/index.html index 6fb1f72..90df1d5 100644 --- a/desktopapp/index.html +++ b/desktopapp/index.html @@ -51,16 +51,21 @@ Projects
-@@ -94,6 +111,11 @@