• Stars
    star
    194
  • Rank 193,019 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Just a simple javascript calendar

latest release latest development license npm project downloads cdn-stats

jsCalendar

Just a simple javascript calendar

β€’ Download β€’ Live preview β€’ Documentation β€’ Languages β€’ Calendar Generator β€’

preview image


Fast set up

Add the jsCalendar code on <head>

<link rel="stylesheet" type="text/css" href="jsCalendar.css">
<script type="text/javascript" src="jsCalendar.js"></script>

Then insert a calendar on <body>

<div class="auto-jsCalendar"></div>

Or maybe you need to display it in an other language!

<!-- Load Greek language -->
<script type="text/javascript" src="jsCalendar.lang.gr.js"></script>

<!-- Display calendar in Greek -->
<div class="auto-jsCalendar" data-language="gr"></div>

We also have a simple GUI calendar code generator, so that you can easily create your jsCalendar.


CDN (Unpkg & JsDelivr)

You can also use the jsCalendar package on the unpkg CDN.

<!-- jsCalendar v1.4.4 Javascript and CSS from unpkg cdn -->
<script src="https://unpkg.com/[email protected]/source/jsCalendar.min.js" integrity="sha384-0LaRLH/U5g8eCAwewLGQRyC/O+g0kXh8P+5pWpzijxwYczD3nKETIqUyhuA8B/UB" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/source/jsCalendar.min.css" integrity="sha384-44GnAqZy9yUojzFPjdcUpP822DGm1ebORKY8pe6TkHuqJ038FANyfBYBpRvw8O9w" crossorigin="anonymous">

Or you can also use the jsCalendar npm package on the jsdelivr CDN.

<!-- jsCalendar v1.4.4 Javascript and CSS from jsdelivr npm cdn -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/source/jsCalendar.min.js" integrity="sha384-0LaRLH/U5g8eCAwewLGQRyC/O+g0kXh8P+5pWpzijxwYczD3nKETIqUyhuA8B/UB" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/source/jsCalendar.min.css" integrity="sha384-44GnAqZy9yUojzFPjdcUpP822DGm1ebORKY8pe6TkHuqJ038FANyfBYBpRvw8O9w" crossorigin="anonymous">

Full example with all the files and their integrity hashes using unpkg here and using jsdelivr here (the hashes are the same).


npm package

If you are into npm you can install the lib's package by just typing in your command line

npm i simple-jscalendar

# Copy library files to your resources folders
cp ./node_modules/simple-jscalendar/source/jsCalendar.js ./js/jsCalendar.js
cp ./node_modules/simple-jscalendar/source/jsCalendar.css ./css/jsCalendar.css

# Maybe copy a language and a theme too
cp ./node_modules/simple-jscalendar/source/jsCalendar.lang.gr.js ./js/jsCalendar.lang.gr.js
cp ./node_modules/simple-jscalendar/themes/jsCalendar.clean.css ./css/jsCalendar.clean.css

More info on the npm page https://www.npmjs.com/package/simple-jscalendar


Learn to jsCalendar


Preview images

Build-in Themes Default Theme Material Theme Classic Theme Additional Themes DarkSeries Theme Clean Theme Micro Theme


Whats new?

Latest development code v1.4.5-beta (beta minified versions may be out-of-date)

  • Added
    • Added extension add method jsCalendar.ext('example', {init : <function>, create : <function>, update : <function>});
    • Added methods freeze/unfreeze/isFrozen to prevent the calendars from re-rendering the UI PR#56 by @paxperscientiam
  • Bugs
    • Fixed info.start parameter on onMonthRender (was not the first date)
    • Fixed selected dates not highlighted bug (depending on your timezone) (issue #44)
    • Fixed onDateRender incorrect isCurrentMonth, isPreviousMonth and isNextMonth (issue #45)
    • Fixed fdotw bug #42
    • Improved UX on dates outside min & max limits PR#58 by @zangarmarsh
  • Languages

Contact me

Contact me to leave me your feedback or to express your thoughts.

You can open an issue or send me a mail


License

This project is under The MIT license. I do although appreciate attribute.

Copyright (c) 2017-2021 Grammatopoulos Athanasios-Vasileios


GramThanos DinoDevs

More Repositories

1

WakeOnLAN

A simple C program that sends a magic packet
C
88
star
2

php-csrf

Single PHP library file for protection over Cross-Site Request Forgery
PHP
55
star
3

vpn-oidc

VPN Authentication through Open ID Connect using OpenVPN
JavaScript
21
star
4

WebDevAuthn

A tool to test & analyze FIDO2/WebAuthn requests and responses
JavaScript
17
star
5

CPU-on-Vivado-HLS

A simple MIPS-like CPU demo in C++ for Xilinx Vivado HLS
C++
16
star
6

PiLanshare

Share your Raspberry's WiFi to Ethernet
PHP
5
star
7

bf3-vu-day-night

Day & Night - Live change levels lighting during the game (Battlefield 3 - Venice Unleashed Mod)
Lua
4
star
8

FIDO2-Testing-Pages

Demo pages for testing the WebAuthn API with custom options (FIDO Project 2019-2020 @ University of Piraeus)
HTML
3
star
9

PHP-Split-Encrypt

Code obfuscation tool to bypass antivirus detection of malicious PHP code
PHP
3
star
10

BrainFLAG

A BrainFuck debugger and scanner for CTF flags
HTML
3
star
11

NBTjs

A javascript library for opening NBT files
JavaScript
3
star
12

falcon.js

Fast-Fourier Lattice-based Compact Signatures over NTRU in JavaScript
JavaScript
3
star
13

StrongBee

A python FIDO2/WebAuthn server
Python
2
star
14

StrongMonkey

SDK for interacting with FIDO2 Server API v3.0.0 (e.g. StrongKey FIDO2 Server)
PHP
2
star
15

jsAppend

Fast dynamic DOM creation using javascript
JavaScript
1
star
16

WebGL-Example-Minecraft-Steve

Steve on WebGL
JavaScript
1
star
17

BenchTimer

A C benchmark timer library
C
1
star
18

FIDO2-Demo-App

A demo Ruby on Rails application featuring FIDO2 password-less login (FIDO Project 2019-2020 @ University of Piraeus)
Ruby
1
star
19

jsStorage

Use *localStorage*, *sessionStorage*, *cookies*, *window.name* with the same API
JavaScript
1
star
20

AES-block-cipher-modes

Popular block cipher modes using Advanced Encryption Standard (AES) (Network Security 2019-2020 @ University of Piraeus)
C++
1
star
21

WiFi-Deauth

Wi-Fi Deauthentication Attack using Scapy (Mobile Network Security 2019-2020 @ University of Piraeus)
Python
1
star