-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
103 lines (90 loc) · 4.08 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Angular collapsible block demo</title>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.5/angular.js"></script>
<!-- Optional: include ng-animate for some extra sugar -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.5/angular-animate.js"></script>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="dist/ng-collapsible-block.css" rel="stylesheet" type="text/css" />
<!-- Optional: include font-awesome to display an icon next to the collapsible block title -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<!-- Just some body style to space things up -->
<style>
body{
padding: 120px 60px;
/* So much gradient, check out -> http://uigradients.com */
background: -webkit-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%); /* Chrome 10+, Saf5.1+ */
background: -moz-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%); /* FF3.6+ */
background: -ms-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%); /* IE10 */
background: -o-linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%); /* Opera 11.10+ */
background: linear-gradient(90deg, #ECE9E6 10%, #FFFFFF 90%); /* W3C */
}
h1{
font-size:1.6em;
font-weight: 300;
margin-bottom:30px;
}
footer{
margin-top:30px;
padding-top: 15px;
border-top: 1px solid #E6E6E6;
}
</style>
</head>
<body class="clearfix" ng-app="app" ng-controller="ctrl">
<header class="col-xs-12">
<h1>Angular collapsible block demo</h1>
</header>
<article class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
<div class="form-group">
<label for="exampleInputName">Name</label>
<input type="text" class="form-control" id="exampleInputName" placeholder="Name">
</div>
<collapsible collapsible-title="{{title1}}" collapsed-icon="fa fa-chevron-down" expanded-icon="fa fa-chevron-up">
<section>
<div class="form-group">
<label for="exampleInputColor">Shoe color</label>
<input type="color" class="form-control" id="exampleInputColor" placeholder="Shoe color">
<p class="help-block">Some things don't need to be shown right away.</p>
</div>
</section>
</collapsible>
<div class="form-group">
<label for="exampleInputEmail">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail" placeholder="Email">
</div>
<div class="form-group">
<label for="exampleInputPassword">Password</label>
<input type="password" class="form-control" id="exampleInputPassword" placeholder="Password">
</div>
<collapsible collapsible-title="{{title2}}" collapsed-icon="fa fa-chevron-down" expanded-icon="fa fa-chevron-up">
<section class="form-inline">
<div class="form-group">
<div class="input-group">
<div class="input-group-addon">$</div>
<input type="text" class="form-control" id="exampleInputAmount" placeholder="Amount">
<div class="input-group-addon">.00</div>
</div>
<p class="help-block">Thanks for the help!</p>
</div>
</section>
</collapsible>
</article>
<footer class="col-xs-12">
<a class="btn btn-primary" href="https://github.com/ng-milk/angular-collapsible-block-directive"><i class="fa fa-code-fork"></i> Fork on Github</a>
<a class="btn btn-default" href="https://github.com/ng-milk/angular-collapsible-block-directive/issues"><i class="fa fa-bug"></i> Submit an issue</a>
</footer>
<!-- Local JS -->
<script src="dist/ng-collapsible-block.js"></script>
<script>
angular
.module('app', ['ngAnimate', 'dm.collapsibleBlock'])
.controller('ctrl', ['$scope', function($scope){
$scope.title1 = "Advanced input";
$scope.title2 = "Help charity!"
}]);
</script>
</body>
</html>