-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
92 lines (74 loc) · 2.2 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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>ng1 calendar demo</title>
<script src="//cdn.bootcss.com/angular.js/1.4.5/angular.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.small-calendar-container {
width: 25%;
float: left;
padding: 5px;
}
@media screen and (max-width: 1024px) {
.small-calendar-container {
width: 50%;
float: left;
padding: 5px;
}
}
@media screen and (max-width: 600px) {
.small-calendar-container {
width: 100%;
float: left;
padding: 5px;
}
}
</style>
<link href="app.css" rel="stylesheet"></head>
<body ng-app="app">
<section ng-controller="CalendarController">
<h1>基本使用方式</h1>
<div>
<div class="small-calendar-container">
<h2>默认日历</h2>
<ng-calendar></ng-calendar>
</div>
<div class="small-calendar-container">
<h2>设置默认日期</h2>
<ng-calendar selected-date="now"></ng-calendar>
</div>
<div class="small-calendar-container">
<h2>设置最小日期</h2>
<ng-calendar min-date="min"></ng-calendar>
</div>
<div class="small-calendar-container">
<h2>同时设置最大最小日期</h2>
<ng-calendar min-date="min" max-date="max"></ng-calendar>
</div>
</div>
<ng-date-picker ng-model="now" placeholder="'请选择日期'"></ng-date-picker>
<div style="clear:both"></div>
</section>
<hr>
<section ng-controller="CalendarController">
<h1>2015年日历</h1>
<div ng-repeat="a in arr">
<div ng-repeat="b in a" class="small-calendar-container">
<ng-calendar selected-date="b"></ng-calendar>
</div>
</div>
<div style="clear:both"></div>
</section>
<hr>
<section>
<h1>扩展的日历,比较复杂的单元格</h1>
<ng-schedule></ng-schedule>
</section>
<script src="app.js"></script></body>
</html>