The effect of picture wall based on HTML5 implementation

Source: Internet
Author: User

Here's a set of data that needs to be shown with the effect of a picture wall, which is dynamic, maintained with ANGULARJS, and can be added and deleted.

A maximum of 4 cells per line on the interface.

Here's the code:

The

code is as follows: <! DOCTYPE html>


<html ng-app= "app" >


<head lang= "en" >


<meta charset= "UTF-8" >


<link rel= "stylesheet" href= "Css/bootstrap.min.css" >


<script src= "Js/angular.min.js" ></script>


<title> Table Interface </title>


<style type= "Text/css" >


Ul{list-style:none;}


</style>


</head>


<body ng-controller= "Myctrl" >


<div class= "Row" >


<div class= "col-sm-12" >


<h3 class= "Label-info" >{{title}}</h3>


<input type= "button" value= "Add new list" class= "Btn-primary" >


</div>


</div></p> <p><div class= "Row" >


<ul class= "" >


<li ng-repeat= "I in Tasklist.all" >


<div class= "col-xs-6 col-sm-4 col-md-3" >


<div class= "thumbnail" ></p> <p> <input type= "text" ng-model= "I.title" style= "width:100%" >


<ul>


<li ng-repeat= "J in I.list" >


<input type= "checkbox" ng-model= "J.done" >


<input type= "text" ng-model= "J.item" >


</li>


</ul></p> <p>


</div>


</div>


</li></p> <p> </ul></p> <p></div></p> <p>


<script>


var app=angular.module ("App", [], function () {


Console.log (' started ');


});</p> <p> var mytasklist={


"All": [


{title: "This is the first list",


list:[{"Done": "false", "Item": "Detail 1"},


{"Done": "false", "Item": "Detail 2"},


{"Done": "false", "Item": "Detail 3"},


{"Done": "false", "Item": "Detail 43"}


]},</p> <p> {title: "This is the 2nd list",


list:[{"Done": "false", "Item": "Detail 1"},


{"Done": "false", "Item": "Detail 2"},


{"Done": "false", "Item": "Detail 33"},


{"Done": "false", "Item": "Detail 4"}


]},</p> <p> {title: "This is the 3rd list",


list:[{"Done": "false", "Item": "Detail 1"},


{"Done": "false", "Item": "Detail 25"},


{"Done": "false", "Item": "Detail 3"},


{"Done": "false", "Item": "Detail 4"}


]},


{title: "This is the first list",


list:[{"Done": "false", "Item": "Detail 1"},


{"Done": "false", "Item": "Detail 2"},


{"Done": "false", "Item": "Detail 3"},


{"Done": "false", "Item": "Detail 43"}


]},</p> <p> {title: "This is the 2nd list",


list:[{"Done": "false", "Item": "Detail 1"},


{"Done": "false", "Item": "Detail 2"},


{"Done": "false", "Item": "Detail 33"},


{"Done": "false", "Item": "Detail 4"}


]},</p> <p> {title: "This is the 3rd list",


list:[{"Done": "false", "Item": "Detail 1"},


{"Done": "false", "Item": "Detail 25"},


{"Done": "false", "Item": "Detail 3"},


{"Done": "false", "Item": "Detail 4"}


]},


{title: "This is the 4th list",


list:[{"Done": "false", "Item": "Detail 13"},


{"Done": "false", "Item": "Detail 2"},


{"Done": "false", "Item": "Detail 33"},


{"Done": "false", "Item": "Detail 4"}


]}</p> <p></p> <p>]


};


App.controller ("Myctrl", function ($scope) {


$scope. title= "used here to demonstrate a tabular layout, such as a photo wall";


$scope .tasklist=mytasklist;</p> <p>


});


</script>


</body>


</html>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.