-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
95 lines (80 loc) · 3.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Angular capitalize filter demo</title>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.5/angular.js"></script>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Not required: font-awesome is used to display button icons -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<style>
body{
padding:60px 30px;
/* 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, h2{
font-weight: 300;
margin-bottom:30px;
}
h2{
font-size:1.3em;
}
.jumbotron{
border: 1px solid whitesmoke;
background-color: rgba(255, 255, 255, 0.30);
}
.jumbotron h1{
font-size:3em;
margin-bottom:0px;
}
.jumbotron h2{
margin-top:30px;
margin-bottom: 10px;
}
ul{
padding-left:20px;
}
footer{
margin-top:30px;
padding-top: 15px;
border-top: 1px solid #E6E6E6;
}
</style>
</head>
<body class="container-fluid" ng-app="app" ng-controller="ctrl">
<section class="col-xs-12 col-lg-6 jumbotron">
<h1>Angular capitalize filter demo</h1>
<h2>Take it for a spin</h2>
<section class="form-group">
<input type="text" class="form-control" ng-model="demo">
</section>
<section class="alert alert-info" ng-class="{'alert-warning': !demo}">
<span ng-if="demo">Result: <b>{{demo | capitalize}}</b></span>
<span ng-if="!demo">Type something in the box to see it in action!</span>
</section>
<h2>Useful examples</h2>
<ul>
<li><b>MOUNTAIN</b> -> {{'MOUNTAIN' | capitalize}}</li> <!-- Mountain -->
<li><b>MOUNTAIN DOOM</b> -> {{'MOUNTAIN DOOM' | capitalize}}</li> <!-- Mountain Doom -->
<li><b>Capitalize ALL the things!</b> -> {{'Capitalize ALL the things!' | capitalize}}</li> <!-- Capitalize All The Things! -->
</ul>
<footer>
<a class="btn btn-primary" href="https://github.com/ng-milk/angular-capitalize-filter"><i class="fa fa-code-fork"></i> Fork on Github</a>
<a class="btn btn-default" href="https://github.com/ng-milk/angular-capitalize-filter/issues"><i class="fa fa-bug"></i> Submit an issue</a>
</footer>
</section>
<!-- Local JS -->
<script src="dist/ng-capitalize.js"></script>
<script>
angular.module('app', ['dm.capitalize'])
.controller('ctrl', ['$scope', function($scope){
$scope.demo = 'TRY ME OUT';
}]);
</script>
</body>
</html>