Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"$": true,
"_": true,
"define": true,
"moment": true
"moment": true,
"dayjs": true,
"weekday": true
},
"extends": ["standard"],
"plugins": [],
Expand Down
1 change: 1 addition & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"tests"
],
"dependencies": {
"dayjs": "^1.8.22",
"jquery": ">=1.9",
"moment": ">=2.8.3"
},
Expand Down
4 changes: 2 additions & 2 deletions clndr.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $(document).ready( function() {
// moment.locale('ru');

// Here's some magic to make sure the dates are happening this month.
var thisMonth = moment().format('YYYY-MM');
var thisMonth = dayjs().format('YYYY-MM');
// Events to load into calendar
var eventArray = [
{
Expand Down Expand Up @@ -152,4 +152,4 @@ $(document).ready( function() {
calendars.clndr3.forward();
}
});
});
});
6 changes: 4 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"></script>-->
<script src="https://cdn.jsdelivr.net/npm/dayjs@1.8.22/plugin/weekday.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dayjs@1.8.22/dayjs.min.js"></script>
<script src="../src/clndr.js"></script>
<script src="demo.js"></script>
</body>
</html>
</html>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"homepage": "https://github.com/kylestetz/CLNDR",
"main": "src/clndr.js",
"dependencies": {
"dayjs": "^1.8.22",
"jquery": ">=1.9",
"moment": ">=2.8.3"
},
Expand Down
Loading