Skip to content

benardt/jsMonthlyCal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Grade

jsMontlyCal

jsMonthlyCal is a javascript library to draw monthly calendar. It is a static calendar as there a no way to change month from browser.

Screenshots

Global view

Usage

<!DOCTYPE html>
<html>
<head>
	<script src='./jsmonthlycal.js'></script>
	<script>
		window.onload = function() {
			var mydate = new Date();
			var options = {
				size: '10px',
				week: {
					color: 'DimGray'
				}
			};
			jsMonthlyCal.drawCalendar('here_calendar', mydate, 4, -2 , options);
		};
	</script>
</head>
<body>
<h2>Calendar</h2>
	<div>
		<table id="here_calendar" style="border: 1px solid; border-collapse: collapse;"></table>
	</div>
</body>
</html>

API reference

  • JScalendar.drawCalendar(container, date, nbtotal, nb, options)
    • container {string} div container id
    • date {date}
    • nbtotal {number} number of month to draw
    • nb {number} number of month after (positive) or before (negative)
    • options {object} all options to cutomize (CSS based language)

Dependencies

  • none

About

Static montlhy calendar with high customization level

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published