Foolin around with possible photos example.

This commit is contained in:
Max Lynch
2013-09-22 22:39:03 -05:00
parent ddb7279a25
commit 509b3c345c
4 changed files with 72 additions and 0 deletions

0
example/photos/app.css Normal file
View File

8
example/photos/app.js Normal file
View File

@ -0,0 +1,8 @@
angular.module('ionic.photos', [])
.controller('PhotosCtrl', function($scope) {
$scope.photos = [];
for(var i = 0; i < 100; i++) {
$scope.photos.push({});
}
})

59
example/photos/index.html Normal file
View File

@ -0,0 +1,59 @@
<html ng-app="ionic.photos">
<head>
<meta charset="utf-8">
<title>Photos</title>
<!-- Sets initial viewport load and disables zooming -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="../../dist/ionic.css">
<link rel="stylesheet" href="app.css">
<style>
.swiperight {
-webkit-transition: 0.1s ease-in-out all;
-webkit-transform:translate3d(120%,0,0) ;
}
#remove-box {
width: 200px;
height: 200px;
}
.relative {
position: relative;
}
button {
width: 100px;
height: 100px;
}
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
background-color: red;
}
</style>
<script src="/vendor/angular/1.2.0rc2/angular-1.2.0rc2.min.js"></script>
<script src="/vendor/angular/1.2.0rc2/angular-touch.js"></script>
</head>
<body>
<tab-controller>
<div title="Home" icon="icon-home" class="tab-content">
<header class="bar bar-header bar-default">
<h1 class="title">Photos</h1>
<a href="#" class="button button-clear">Select</a>
</header>
<content has-header="true" has-tabs="true" ng-controller="PhotosCtrl">
<div class="container">
<div class="row">
<div class="col-xs-3" ng-repeat="photo in photos">
Photo
</div>
</div>
</div>
</content>
</div>
</tab-controller>
<script src="app.js"></script>
</body>
</html>

View File

@ -1,3 +1,8 @@
*,
*:before,
*:after {
@include box-sizing(border-box);
}
body {
position: fixed;