-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
55 lines (51 loc) · 1.99 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
<html>
<head>
<title>Angular date Input</title>
<style>
.center {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
}
.title {
font-size: 24px;
font-family: sans-serif;
}
.sub-title {
font-family: sans-serif;
font-size: 18px;
margin-bottom: 24px;
}
input {
padding: 8px;
border: 1px solid #DDD;
border-radius: 2px;
font-size: 16px;
}
</style>
</head>
<body ng-app="exampleApp" ng-controller="exampleCtrl">
<a href="https://github.com/hanford/angular-date-input"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<div class="center">
<h1 class="title">angular-date-input</h1>
<div class="sub-title">A small angular directive for formatting input values into a date</div>
<input ng-model="date" date-input type="text">
<br />
<code>value: {{date}}</code>
<div style="margin-top:40px">
<iframe src="https://ghbtns.com/github-btn.html?user=hanford&repo=angular-date-input&type=star&count=true&size=large" frameborder="0" scrolling="0" height="30px" style="display:inline-block;margin:0 auto;width:111px"></iframe>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.0/angular.js"></script>
<script src="./dist/angular-date-input.js"></script>
<script>
angular.module('exampleApp', [
'angular-date-input'
])
.controller('exampleCtrl', function ($scope) {
$scope.date = '12312016'
})
</script>
</body>