forked from Hypercubed/angular-floating-label
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (47 loc) · 2.12 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
<!DOCTYPE html>
<html lang="en" ng-app="example-app">
<head>
<meta charset="utf-8" />
<title>angular-floating-label example - with ui.bootstrap</title>
<style>
body {
padding-top: 4em;
}
input, textarea {
font-weight: 100;
}
</style>
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="../dist/angular-floating-label.min.css">
<!-- // <script src="../bower_components/jquery/dist/jquery.js"></script> -->
<script src="../bower_components/angular/angular.js"></script>
<script src="../bower_components/angular-bootstrap/ui-bootstrap.min.js"></script>
<script src="../dist/angular-floating-label.min.js"></script>
<script src="app.js"></script>
</head>
<body>
<div class="container">
<h1> Angular Floating Labels</h1>
<div ng-controller="MainController">
<form role="form">
<div class="row">
<div class="form-group col-xs-6 floating-label-form-group">
<label for="first-name">First Name</label>
<input class="form-control" floating-label="firstName" type="text" placeholder="First name" id="first-name" ng-model="firstName">
</div>
<div class="form-group col-xs-6 floating-label-form-group">
<label for="last-name">Last Name</label>
<input class="form-control" floating-label="lastName" type="text" placeholder="Last Name" id="last-name" ng-model="lastName">
</div>
</div>
<div class="row">
<div class="form-group col-xs-12 floating-label-form-group">
<label for="description">Description</label>
<textarea floating-label placeholder="Address for {{firstName}} {{lastName}}" id="address" rows="5"></textarea>
</div>
</div>
</form>
</div>
</div>
</body>
</html>