forked from naxeem/Pikaday-Material
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-angular.html
49 lines (48 loc) · 1.51 KB
/
example-angular.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pikday Material</title>
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
<link rel="stylesheet" href="./css/pikaday.css">
<style type="text/css" media="screen">
body {
font-family: 'Roboto', sans-serif;
}
[type="text"] {
font-weight: 400;
width: 100%;
color: #333;
border: none;
background: 0 0;
margin: 0;
padding: 1px 3px;
font-size: 14px;
line-height: 14px;
outline: 0;
transition: all .3s cubic-bezier(.64, .09, .08, 1);
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
height: 37px
}
.form-field {
width: 100%;
max-width: 300px;
margin: 10% auto;
border-bottom: 1px solid #ccc;
}
</style>
</head>
<body ng-app="dateApp">
<div class="form-field">
<input type="text" id="datepicker" pikaday="selectDate" placeholder="Date">
</div>
</body>
<script src="./pikaday/pikaday.js" type="text/javascript"></script>
<script src="./pikaday-angular/pikaday-angular.js" type="text/javascript"></script>
<script type="text/javascript">
angular.module('dateApp', ['pikaday'])
</script>
</html>