-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 580c089
Showing
38 changed files
with
27,609 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
body { | ||
font-family:Arial; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
font-weight: bold; | ||
color: rgb(145, 145, 145); | ||
} | ||
|
||
.container { | ||
width: 100%; | ||
max-width: 960px; | ||
margin: 0px auto; | ||
box-shadow: 0 1px 2px 0 | ||
rgba(0,0,0,0.9); | ||
margin-top: 20px; | ||
padding-bottom: 20px; | ||
} | ||
|
||
.archive-control { | ||
border-bottom: 1px solid rgba(0, 0, 0, 0.1); | ||
height: 22px; | ||
line-height: 22px; | ||
padding: 5px 0px 5px 10px; | ||
margin-bottom: 50px; | ||
background: #ecf0f1; | ||
} | ||
|
||
ul { | ||
list-style: none; | ||
padding-left: 0; | ||
padding: 10px; | ||
} | ||
|
||
ul li { | ||
line-height: 32px; | ||
border-bottom: 1px solid rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.todo-form { | ||
padding: 10px; | ||
text-align: center; | ||
} | ||
|
||
input[type="text"] { | ||
border-bottom: 1px solid rgba(0, 0, 0, 0.3); | ||
border-top: 0px; | ||
border-right: 0px; | ||
border-left: 0px; | ||
height: 30px; | ||
width: 100%; | ||
outline: none; | ||
max-width: 400px; | ||
} | ||
|
||
input[type="submit"] { | ||
height: 30px; | ||
text-align: center; | ||
margin: 10px; | ||
width: 120px; | ||
} | ||
|
||
.app-header { | ||
text-align: center; | ||
border-bottom: 1px solid rgba(0, 0, 0, 0.1); | ||
height: 40px; | ||
background:green; | ||
} | ||
|
||
.app-title { | ||
font-size: 28px; | ||
line-height: 40px; | ||
padding: 0px; | ||
margin: 0px; | ||
color: #fff; | ||
text-shadow: 1px 1px 3px #000000; | ||
filter: dropshadow(color=#000000, offx=1, offy=1); | ||
} | ||
|
||
.app-headline { | ||
color: #999; | ||
font-size: 15px; | ||
} | ||
|
||
.app-body { | ||
margin-top: 40px; | ||
} | ||
|
||
.done-true { | ||
text-decoration: line-through; | ||
color: grey; | ||
} | ||
|
||
.delete-task{ | ||
cursor: pointer; | ||
float:right; | ||
font-weight: bold; | ||
} | ||
.hide-todo{ | ||
display: none; | ||
} | ||
.show-todo{ | ||
display: block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html ng-app="mytodoApp"> | ||
<head> | ||
<title>Angular</title> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link href="lib/css/bootstrap.min.css" rel="stylesheet"> | ||
<script src="lib/js/jquery.min.js"></script> | ||
<script src="lib/js/bootstrap.min.js"></script> | ||
<link rel="stylesheet" type="text/css" href="lib/css/font-awesome.min.css"> | ||
<script type="text/javascript" src="lib/js/angular.min.js"></script> | ||
<script type="text/javascript" src="lib/js/ngStorage.min.js"></script> | ||
<script type="text/javascript" src="Angular.js"></script> | ||
<link rel="stylesheet" type="text/css" href="Angular.css"> | ||
</head> | ||
<body ng-controller="mytodoController"> | ||
<div class="container"> | ||
<header class="app-header"> | ||
<h1 class="app-title">{{ appTitle }}</h1> | ||
<h1 class="app-headline">{{ appHeadline }}</h1> | ||
</header> | ||
<section class="app-body"> | ||
<section class="archive-control"> | ||
<span>{{remaining()}} of {{todos.length}} Remaining</span> | ||
<p>[ <a href="" ng-click="archive()">Remove Completed Items</a> ]</p> | ||
</section> | ||
|
||
<ul class="unstyled"> | ||
<li ng-repeat="todo in todos track by $index"> | ||
<input type="checkbox" ng-model="todo.done"> | ||
<span class="done-{{todo.done}}">{{todo.text}}</span> | ||
<span class="delete-task" ng-click="deleteTask($index)"> X </span> | ||
</li> | ||
</ul> | ||
<ul class="completetodo"> | ||
<li ng-repeat="todo in completetodo track by $index"> | ||
<span>{{todo.text}}</span> | ||
</li> | ||
</ul> | ||
<form class="todo-form" ng-submit="addTo()"> | ||
<input type="text" placeholder="Enter new ToDo item" ng-model="todoText" /> | ||
<br /> | ||
<input type="submit" value="Add Task" /> | ||
</form> | ||
<input type="button" value="Completed Task" ng-click="completedTask()"> | ||
<input type="button" value="All Task" ng-click="allTask()"> | ||
</section> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
var mytodoApp=angular.module('mytodoApp',[]); | ||
|
||
mytodoApp.controller('mytodoController',['$scope',function($scope){ | ||
$scope.appTitle = "Umesh's Awesome ToDo App"; | ||
$scope.appHeadline = "Let's start save"; | ||
$scope.todos = []; | ||
$scope.addTo=function(){ | ||
$scope.todos.push({ | ||
text:$scope.todoText, | ||
done:false | ||
}); | ||
$scope.todoText = ''; | ||
localStorage.setItem('todos', JSON.stringify($scope.todos)); | ||
}; | ||
$scope.remaining=function(){ | ||
var count=0; | ||
angular.forEach($scope.todos,function(todo){ | ||
count+=todo.done? 0 : 1; | ||
}); | ||
return count; | ||
}; | ||
$scope.archive=function(){ | ||
var oldTodos = $scope.todos; | ||
$scope.todos=[]; | ||
angular.forEach(oldTodos,function(todo){ | ||
if(!todo.done){ | ||
$scope.todos.push(todo); | ||
} | ||
}); | ||
localStorage.setItem('todos', JSON.stringify($scope.todos)); | ||
}; | ||
$scope.deleteTask=function(index){ | ||
$scope.todos.splice(index,1); | ||
} | ||
|
||
$scope.completedTask=function(){ | ||
var oldTodos=$scope.todos; | ||
$scope.completetodo=[]; | ||
angular.forEach(oldTodos,function(todo){ | ||
if(todo.done){ | ||
$scope.completetodo.push(todo); | ||
} | ||
}); | ||
var myEi=angular.element(document.querySelector(".unstyled")); | ||
myEi.addClass("hide-todo").removeClass("show-todo"); | ||
var myEu=angular.element(document.querySelector(".completetodo")); | ||
myEu.addClass("show-todo").removeClass("hide-todo"); | ||
var myEn=angular.element(document.querySelector(".todo-form")); | ||
myEn.addClass("hide-todo").removeClass("show-todo"); | ||
|
||
} | ||
|
||
$scope.allTask=function(){ | ||
var myEi=angular.element(document.querySelector(".unstyled")); | ||
myEi.addClass("show-todo").removeClass("hide-todo"); | ||
var myEu=angular.element(document.querySelector(".completetodo")); | ||
myEu.addClass("hide-todo").removeClass("show-todo"); | ||
var myEn=angular.element(document.querySelector(".todo-form")); | ||
myEn.addClass("show-todo").removeClass("hide-todo"); | ||
} | ||
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[0402/094648.136:ERROR:crash_report_database_win.cc(563)] CreateDirectory C:\Program Files (x86)\temp\reports: Access is denied. (0x5) | ||
[0402/094648.152:ERROR:registration_protocol_win.cc(84)] TransactNamedPipe: The pipe has been ended. (0x6D) | ||
[0402/094648.152:ERROR:crash_report_database_win.cc(563)] CreateDirectory C:\Program Files (x86)\temp\reports: Access is denied. (0x5) | ||
[0402/101427.128:ERROR:crash_report_database_win.cc(563)] CreateDirectory C:\Program Files (x86)\temp\reports: Access is denied. (0x5) | ||
[0402/101427.128:ERROR:registration_protocol_win.cc(84)] TransactNamedPipe: The pipe has been ended. (0x6D) | ||
[0402/101427.128:ERROR:crash_report_database_win.cc(563)] CreateDirectory C:\Program Files (x86)\temp\reports: Access is denied. (0x5) | ||
[0402/111007.355:ERROR:crash_report_database_win.cc(563)] CreateDirectory C:\Program Files (x86)\temp\reports: Access is denied. (0x5) | ||
[0402/111007.355:ERROR:registration_protocol_win.cc(84)] TransactNamedPipe: The pipe has been ended. (0x6D) | ||
[0402/111007.355:ERROR:crash_report_database_win.cc(563)] CreateDirectory C:\Program Files (x86)\temp\reports: Access is denied. (0x5) | ||
[0402/111021.653:ERROR:crash_report_database_win.cc(563)] CreateDirectory C:\Program Files (x86)\temp\reports: Access is denied. (0x5) | ||
[0402/111021.653:ERROR:registration_protocol_win.cc(84)] TransactNamedPipe: The pipe has been ended. (0x6D) | ||
[0402/111021.653:ERROR:crash_report_database_win.cc(563)] CreateDirectory C:\Program Files (x86)\temp\reports: Access is denied. (0x5) | ||
[0421/134853.947:ERROR:file_io_win.cc(163)] CreateFile C:\Program Files (x86)\temp\settings.dat: Access is denied. (0x5) | ||
[0421/134854.212:ERROR:registration_protocol_win.cc(83)] TransactNamedPipe: The pipe has been ended. (0x6D) | ||
[0421/134854.212:ERROR:crashpad_win.cc(223)] Crashpad handler failed to start, crash reporting disabled | ||
[0421/135454.136:ERROR:file_io_win.cc(163)] CreateFile C:\Program Files (x86)\temp\settings.dat: Access is denied. (0x5) | ||
[0421/135454.277:ERROR:registration_protocol_win.cc(83)] TransactNamedPipe: The pipe has been ended. (0x6D) | ||
[0421/135454.277:ERROR:crashpad_win.cc(223)] Crashpad handler failed to start, crash reporting disabled |
Oops, something went wrong.