mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-11-02 14:29:36 +00:00
120 lines
3.4 KiB
HTML
Executable File
120 lines
3.4 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>AngularJS</title>
|
|
<meta charset="utf-8">
|
|
<link href="../content/shared/styles/examples-offline.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.common.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.rtl.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.mobile.min.css" rel="stylesheet">
|
|
<script src="../../js/jquery.min.js"></script>
|
|
<script src="../../js/jszip.min.js"></script>
|
|
<script src="../../js/angular.min.js"></script>
|
|
<script src="../../js/kendo.all.min.js"></script>
|
|
<script src="../content/shared/js/console.js"></script>
|
|
<script>
|
|
|
|
</script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<a class="offline-button" href="../index.html">Back</a>
|
|
|
|
<script src="../content/shared/js/products.js"></script>
|
|
|
|
<div id="example" ng-app="KendoDemos">
|
|
<div ng-controller="MyCtrl">
|
|
|
|
<div class="demo-section k-content wide">
|
|
<div kendo-list-view id="listView" k-data-source="source">
|
|
<div class="product" k-template>
|
|
<img ng-src="../content/web/foods/{{dataItem.ProductID}}.jpg" alt=" {{dataItem.ProductName}} image" />
|
|
<h3>{{ dataItem.ProductName }}</h3>
|
|
<p>{{ dataItem.UnitPrice | currency }}</p>
|
|
</div>
|
|
</div>
|
|
<div kendo-pager k-data-source="source"></div>
|
|
</div>
|
|
|
|
<script type="text/x-kendo-angular-template" id="template">
|
|
</script>
|
|
|
|
<style>
|
|
#listView {
|
|
padding: 10px 5px;
|
|
margin-bottom: -1px;
|
|
min-height: 510px;
|
|
}
|
|
.product {
|
|
float: left;
|
|
position: relative;
|
|
width: 111px;
|
|
height: 170px;
|
|
margin: 0 5px;
|
|
padding: 0;
|
|
}
|
|
.product img {
|
|
width: 110px;
|
|
height: 110px;
|
|
}
|
|
.product h3 {
|
|
margin: 0;
|
|
padding: 3px 5px 0 0;
|
|
max-width: 96px;
|
|
overflow: hidden;
|
|
line-height: 1.1em;
|
|
font-size: .9em;
|
|
font-weight: normal;
|
|
text-transform: uppercase;
|
|
color: #999;
|
|
}
|
|
.product p {
|
|
visibility: hidden;
|
|
}
|
|
.product:hover p {
|
|
visibility: visible;
|
|
position: absolute;
|
|
width: 110px;
|
|
height: 110px;
|
|
top: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
line-height: 110px;
|
|
vertical-align: middle;
|
|
text-align: center;
|
|
color: #fff;
|
|
background-color: rgba(0,0,0,0.75);
|
|
transition: background .2s linear, color .2s linear;
|
|
-moz-transition: background .2s linear, color .2s linear;
|
|
-webkit-transition: background .2s linear, color .2s linear;
|
|
-o-transition: background .2s linear, color .2s linear;
|
|
}
|
|
.k-listview:after {
|
|
content: ".";
|
|
display: block;
|
|
height: 0;
|
|
clear: both;
|
|
visibility: hidden;
|
|
}
|
|
</style>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
angular.module("KendoDemos", [ "kendo.directives" ])
|
|
.controller("MyCtrl", function($scope){
|
|
$scope.source = new kendo.data.DataSource({
|
|
data: products,
|
|
pageSize: 21
|
|
});
|
|
})
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|