mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Foolin around with possible photos example.
This commit is contained in:
0
example/photos/app.css
Normal file
0
example/photos/app.css
Normal file
8
example/photos/app.js
Normal file
8
example/photos/app.js
Normal 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
59
example/photos/index.html
Normal 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>
|
||||
@ -1,3 +1,8 @@
|
||||
*,
|
||||
*:before,
|
||||
*:after {
|
||||
@include box-sizing(border-box);
|
||||
}
|
||||
|
||||
body {
|
||||
position: fixed;
|
||||
|
||||
Reference in New Issue
Block a user