This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathdemo.html
92 lines (81 loc) · 3.63 KB
/
demo.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
<!doctype html>
<html ng-app="dnTimePicker">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Angular Timepicker Demo</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/SyntaxHighlighter/3.0.83/styles/shCore.css">
<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/SyntaxHighlighter/3.0.83/styles/shThemeDefault.css">
<style type="text/css">
.bs-docs-example {
position: relative;
margin: 15px 0;
padding: 39px 19px 14px;
background-color: #fff;
border: 1px solid #ddd;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.bs-docs-example:after {
content: "Example";
position: absolute;
top: -1px;
left: -1px;
padding: 3px 7px;
font-size: 12px;
font-weight: bold;
background-color: #f5f5f5;
border: 1px solid #ddd;
color: #9da0a4;
-webkit-border-radius: 4px 0 4px 0;
-moz-border-radius: 4px 0 4px 0;
border-radius: 4px 0 4px 0;
}
.dn-timepicker-popup {
max-height: 300px;
overflow-y: scroll;
}
</style>
</head>
<body>
<div class="container">
<header class="page-header">
<h1>Angular Timepicker Directive <small>Demo</small></h1>
</header>
<p>This directive creates a simple dropdown style timepicker, like the one used in Google Calendar.</p>
<h4>Basic</h4>
<div class="bs-docs-example">
<input type="text" dn-timepicker ng-model="time" />
<p>Selected time: {{time | date:'h:mm a'}}</p>
</div>
<h6>Code</h6>
<pre class="brush: xml"><input type="text" dn-timepicker ng-model="time" /></pre>
<h4>Range</h4>
<div class="bs-docs-example">
<input type="text" dn-timepicker ng-model="time2" min-time="9:00" max-time="17:00" step="10m"/>
<p>Selected time: {{time2 | date:'h:mm a'}}</p>
</div>
<h6>Code</h6>
<pre class="brush: xml"><input type="text" dn-timepicker ng-model="time" min-time="9:00" max-time="17:00" step="10m" /></pre>
<h4>Formatting</h4>
<div class="bs-docs-example">
<input type="text" dn-timepicker ng-model="time3" min-time="9:00 am" max-time="9:00 pm" step="10m" time-format="HH:mm" />
<p>Selected time: {{time3 | date:'h:mm a'}}</p>
</div>
<h6>Code</h6>
<pre class="brush: xml"><input type="text" dn-timepicker ng-model="time" min-time="9:00" max-time="17:00" step="10m" time-format="HH:mm" /></pre>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.3.0/ui-bootstrap.min.js"></script>
<script src="angular.timepicker.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/SyntaxHighlighter/3.0.83/scripts/shCore.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/SyntaxHighlighter/3.0.83/scripts/shBrushXml.js"></script>
<script type="text/javascript">
SyntaxHighlighter.all();
</script>
</body>
</html>