-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.html
53 lines (38 loc) · 1.1 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dayparting test/demo</title>
<link rel="stylesheet" href="css/angular-scheduler.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<script src="lib/angular-scheduler.min.js"></script>
<script>
angular.module('myapp', ['scheduler'])
.controller('Ctrl', function($scope){
$scope.slots = [
{start: 300, stop: 420, day: 1},
{start: 60, stop: 120, day: 1}
];
});
</script>
<style>
body {
background: #f6f6f6;
font-size: 13px;
}
.wrapper {
width: 100%;
max-width: 700px;
margin: 50px auto;
}
</style>
</head>
<body ng-app="myapp">
<div class="wrapper" ng-controller="Ctrl">
<div style="font-family: monospace; font-size: 14px; margin-bottom: 30px;">
{{slots}}
</div>
<scheduler class="scheduler" slots="slots"></dayparting>
</div>
</body>
</html>