Skip to content

Commit

Permalink
docs: demonstrate CLNDR constraint options
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandboon committed Jun 23, 2015
1 parent 99d1f53 commit c1e0202
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion angular-clndr.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion angular-clndr.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>AngularJS Clndr Directive</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="angular-clndr.css" rel="stylesheet">
<style>
body {
Expand Down Expand Up @@ -72,8 +72,8 @@ <h2>Demo</h2>
</div>
</div>

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.1/angular.min.js"></script>
<script src="//kylestetz.github.io/CLNDR/js/moment.js"></script>
<script src="//kylestetz.github.io/CLNDR/js/clndr.js"></script>
<script src="angular-clndr.js"></script>
Expand All @@ -82,7 +82,11 @@ <h2>Demo</h2>
app.controller('DemoCtrl', function ($scope) {
$scope.options = {
weekOffset: 1,
daysOfTheWeek: ['ZO', 'MA', 'DI', 'WO', 'DO', 'VR', 'ZA']
daysOfTheWeek: ['ZO', 'MA', 'DI', 'WO', 'DO', 'VR', 'ZA'],
constraints: {
startDate: moment().subtract(1, 'months').format('YYYY-MM-15'),
endDate: moment().add(2, 'months').format('YYYY-MM-15')
}
};
$scope.events = [
{ date: moment().add(3, 'days').format(), title: "Happy days" },
Expand Down
4 changes: 2 additions & 2 deletions src/angular-clndr.sass
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
top: 0px
width: 15px

&.adjacent-month
opacity: 0.3
&.adjacent-month, &.inactive
opacity: 0.3

0 comments on commit c1e0202

Please sign in to comment.