cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div id="wrapper">
    <div class="page-header">
	<h2>Todo</h2>
    </div>
	    <div ng-controller="TodoCtrl">
	    <div class="alert alert-info">
	    <p class="alert alert-info pull-left">{{remaining()}} of {{todos.length}} remaining</p>
	    <span href="" ng-click="archive()" class="btn btn-info pull-right"><i class="glyphicon glyphicon-trash"></i></span>
	  </div>
	  <div class="row">
		  <div class="col-lg-12">
			    <div ng-repeat="todo in todos" class="input-goup-btn">
				    <input type="checkbox" ng-model="todo.done">
				    <span class="done-{{todo.done}} pull-right">{{todo.text}}</span>
			    </div>
		    </div>
	    </div>
		    <form ng-submit="addTodo()" class="input-group">
		    <input type="text" ng-model="todoText" size="30" placeholder="add new todo here" class="form-control">
		    <span class="input-group-btn">
			<input class="btn" type="submit" value="+">
		    </span>
		    </form>
	    </div>
	   </div>
<!-- end of wrapper -->	   
            
          
!
            
                  html,body{
		background-color:#888888;
		}
	#wrapper{
		background-color:#212121;
		max-width:320px;
		min-height:500px;
		margin:1% auto;
		overflow:none;
		color:#c1c1c1;
		padding:3% 4%;
		border:7px inset #fff;
		border-radius:20px;
		-moz-border-radius:20px;
		-webkit-border-radius:20px;
		-o-border-radius:20px;
		box-shadow:20px 20px 120px rgba(255,255,255,0.2),-20px 20px 120px rgba(255,255,255,0.2),-20px -20px 120px rgba(255,255,255,0.2),20px -20px 120px rgba(255,255,255,0.2);
		-moz-box-shadow:20px 20px 120px rgba(255,255,255,0.2),-20px 20px 120px rgba(255,255,255,0.2),-20px -20px 120px rgba(255,255,255,0.2),20px -20px 120px rgba(255,255,255,0.2);
		-webkit-box-shadow:20px 20px 120px rgba(255,255,255,0.2),-20px 20px 120px rgba(255,255,255,0.2),-20px -20px 120px rgba(255,255,255,0.2),20px -20px 120px rgba(255,255,255,0.2);
		-o-box-shadow:20px 20px 120px rgba(255,255,255,0.2),-20px 20px 120px rgba(255,255,255,0.2),-20px -20px 120px rgba(255,255,255,0.2),20px -20px 120px rgba(255,255,255,0.2);
		}
		
		ul li{
			list-style-type:none;
			padding:0;
			margin:0;
			}
			
	input[type="checkbox"] {
		margin: 11px 0px 0px;
		line-height: normal;
}

	.done-true {
    text-decoration: line-through;
    color: #c1c1c1;
    }
	
	.alert{
		overflow:auto;
		padding:0;
		}
		
	.alert .alert-info .pull-left{
		margin:2% 0;
		}
		
	div.alert p{
		margin:3% 5%;
		}
            
          
!
            
                  function TodoCtrl($scope) {
    $scope.todos = [
    {text:'learn angular', done:true},
    {text:'build an angular app', done:false},
    {text:'start learning LESS', done:false},
    {text:'pay the electricity bill', done:false},
    {text:'cut the garden', done:false},
    {text:'hover my bedroom', done:false},
    {text:'go for a run', done:false},
    {text:'start learning LESS', done:false},];
     
    $scope.addTodo = function() {
    $scope.todos.push({text:$scope.todoText, done:false});
    $scope.todoText = '';
    };
     
    $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);
    });
    };
    }
            
          
!
999px
Loading ..................

Console