Get started with clndr CDN
MIT licensed
Clndr is a cross-platform calendar application for the command line.
Tags:- clndr
- calendar
- jquery
- plugin
- widget
- jquery-plugin
Stable version
Copied!
How to start using clndr CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with clndr CDN - cdnhub.io</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/clndr.min.css" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/clndr.min.js"></script>
<style>
#calendar { width: 100%; max-width: 600px; }
</style>
</head>
<body>
<div id="calendar"></div>
<script>
const calendarEl = document.getElementById('calendar');
const calendar = new Clndr({
target: calendarEl,
nav: {
previous: '#prev',
next: '#next'
},
templates: {
dayGridHeaderTemplate: function (date, type) {
return date.toLocaleString('en-US', { month: 'long', year: 'numeric' });
}
}
});
document.getElementById('prev').addEventListener('click', () => {
calendar.previous();
});
document.getElementById('next').addEventListener('click', () => {
calendar.next();
});
calendar.render();
</script>
</body>
</html>
Copied!
All versions
1.0.0
1.0.1
1.0.10
1.0.11
1.0.12
1.0.13
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
1.1.0
1.1.1
1.1.2
1.1.3
1.2.0
1.2.1
1.2.10
1.2.11
1.2.12
1.2.13
1.2.14
1.2.15
1.2.16
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.8
1.2.9
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.4.7
1.4.8
*** 1.5.1