mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 07:41:51 +08:00
Toderp shit and Angular 1.2.0rc2
This commit is contained in:
@ -9,8 +9,9 @@
|
||||
<link rel="stylesheet" href="../dist/ionic.css">
|
||||
<link rel="stylesheet" href="app.css">
|
||||
|
||||
<script src="/vendor/angular/1.2.0rc1/angular-1.2.0rc1.min.js"></script>
|
||||
<script src="/vendor/angular/1.2.0rc1/angular-touch.js"></script>
|
||||
<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>
|
||||
<script src="/vendor/angular/1.2.0rc2/angular-resource.js"></script>
|
||||
<script src="../../js/ionic-list.js"></script>
|
||||
<script src="../../js/controllers/ionic-leftrightmenu.js"></script>
|
||||
<script src="menu.js"></script>
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
body {
|
||||
background: url('bg-ex.jpg') no-repeat transparent;
|
||||
background-size: cover;
|
||||
}
|
||||
.content {
|
||||
background-color: transparent;
|
||||
}
|
||||
label {
|
||||
background-color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
input {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
#login {
|
||||
position: fixed;
|
||||
bottom: 10px;
|
||||
z-index: 4;
|
||||
width: auto;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
BIN
example/toderp/bg-ex.jpg
Normal file
BIN
example/toderp/bg-ex.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 193 KiB |
@ -6,7 +6,7 @@
|
||||
<!-- Sets initial viewport load and disables zooming -->
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link href="/vendor/font-awesome/css/font-awesome.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="../dist/ionic.css">
|
||||
<link rel="stylesheet" href="../../dist/ionic.css">
|
||||
<link rel="stylesheet" href="app.css">
|
||||
|
||||
<script src="/vendor/angular/1.2.0rc1/angular-1.2.0rc1.min.js"></script>
|
||||
@ -18,6 +18,30 @@
|
||||
|
||||
</head>
|
||||
<body ng-app="toderp">
|
||||
<div id="login">
|
||||
<main class="content content-padded has-header">
|
||||
<div class="container" style="text-align: center">
|
||||
<h1>ToDerp</h1>
|
||||
<h3>Finish your Top Three Tasks Today</h3>
|
||||
</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="input-group inset">
|
||||
<label class="input-wrapper row">
|
||||
<span class="input-label col-xs-4">Email</span>
|
||||
<input class="col-xs-8" type="email" placeholder="">
|
||||
</label>
|
||||
<label class="input-wrapper row">
|
||||
<span class="input-label col-xs-4">Password</span>
|
||||
<input class="col-xs-8" type="password" placeholder="">
|
||||
</label>
|
||||
</div>
|
||||
<button class="button button-info button-block">Log in</button>
|
||||
</form>
|
||||
<button id="login" class="button button-default button-block">Create an account</button>
|
||||
</main>
|
||||
</section>
|
||||
</div>
|
||||
<!--
|
||||
<div id="page" class="page" ng-controller="TodaysTaskListCtrl">
|
||||
<div class="bar bar-header bar-dark">
|
||||
<div class="buttons">
|
||||
@ -50,6 +74,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
26
example/twitter/app.js
Normal file
26
example/twitter/app.js
Normal file
@ -0,0 +1,26 @@
|
||||
angular.module('ionic.twitter', ['ngTouch', 'ngResource'])
|
||||
|
||||
.factory('TweetSearcher', function($resource) {
|
||||
var searchResource = $resource('http://search.twitter.com/:action', {
|
||||
action: 'search.json',
|
||||
callback:'JSON_CALLBACK'
|
||||
}, {
|
||||
get: {
|
||||
method:'JSONP'
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
search: function(query) {
|
||||
return searchResource.query({
|
||||
q: 'Cats'
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
.controller('SearchCtrl', function($scope, TweetSearcher) {
|
||||
$scope.search = function(query) {
|
||||
TweetSearcher.search(query);
|
||||
};
|
||||
});
|
||||
@ -6,40 +6,27 @@
|
||||
<link rel="stylesheet" href="../../dist/ionic.css">
|
||||
<style>
|
||||
</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>
|
||||
<script src="/vendor/angular/1.2.0rc2/angular-resource.js"></script>
|
||||
<script src="app.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<section>
|
||||
<body ng-app="ionic.twitter">
|
||||
<section ng-controller="SearchCtrl">
|
||||
|
||||
<header class="bar bar-header bar-primary">
|
||||
<a href="#" class="button">Back</a>
|
||||
<h1 class="title">Twitter</h1>
|
||||
<h1 class="title">Twitter Search</h1>
|
||||
<div class="buttons">
|
||||
<a href="#" class="button button-icon"><i class="icon-search"></i></a>
|
||||
<a href="#" class="button button-icon"><i class="icon-search"></i></a>
|
||||
<a href="#" class="button button-icon"><i class="icon-search"></i></a>
|
||||
<a href="#" class="button button-icon"><i class="icon-search"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
<div class="bar bar-header-secondary">
|
||||
<form>
|
||||
<input type="search">
|
||||
<input type="search" ng-keyup="search(value)">
|
||||
</form>
|
||||
</div>
|
||||
<main class="content has-header">
|
||||
<main class="content has-header has-secondary-header">
|
||||
|
||||
<form>
|
||||
<div class="form-group inset">
|
||||
<label class="input-wrapper row">
|
||||
<span class="input-label col-xs-4">First Name</span>
|
||||
<input class="col-xs-8" type="text" placeholder="John">
|
||||
</label>
|
||||
<label class="input-wrapper row">
|
||||
<span class="input-label col-xs-4">Last Name</span>
|
||||
<input class="col-xs-8" type="text" placeholder="Suhr">
|
||||
</label>
|
||||
</div>
|
||||
<button id="login" class="button button-default button-block">Log in</button>
|
||||
</form>
|
||||
</main>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user