Git Product home page Git Product logo

jscalendar's Introduction

latest release latest development latest development

jsCalendar

Just a simple javascript calendar

DownloadLive previewDocumentationLanguagesCalendar 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.3 Javascript and CSS from unpkg cdn -->
<script src="https://unpkg.com/[email protected]/source/jsCalendar.min.js" integrity="sha384-JqNLUzAxpw7zEu6rKS/TNPZ5ayCWPUY601zaig7cUEVfL+pBoLcDiIEkWHjl07Ot" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/source/jsCalendar.min.css" integrity="sha384-+OB2CadpqXIt7AheMhNaVI99xKH8j8b+bHC8P5m2tkpFopGBklD3IRvYjPekeWIJ" crossorigin="anonymous">

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

<!-- jsCalendar v1.4.3 Javascript and CSS from jsdelivr npm cdn -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/source/jsCalendar.min.js" integrity="sha384-JqNLUzAxpw7zEu6rKS/TNPZ5ayCWPUY601zaig7cUEVfL+pBoLcDiIEkWHjl07Ot" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/source/jsCalendar.min.css" integrity="sha384-+OB2CadpqXIt7AheMhNaVI99xKH8j8b+bHC8P5m2tkpFopGBklD3IRvYjPekeWIJ" 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 libary 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.4-beta (beta minified versions may be out-of-date)

  • Added
    • Render handlers (based on PR #35 by jordanwallwork and Issue #40 by Daniel Rudolf)
      • Option and method onMonthRender
      • Option and method onDayRender
      • Option and method onDateRender
    • Default options were exposed on jsCalendar.options["option-name"]
    • Exposed jsCalendar.tools.getElement method (previously known as jsCalendar.prototype._getElement)
  • Bugs
    • Fixed days locale bug of the setLanguage method (Issue #28)
    • Fixed a typo in French language (by Thomas Chapuis)
    • Fixed min-date comparison on previous month navigation (Issue #30)
    • Fixed compatibility with bootstrap (Issue #31)
    • Fixed classic micro theme days of the week width bug
    • Fixed not parsing dataset options on dynamic calendar creation
    • Fixed this not pointing to jsCalendar instance on events handlers (onDateClick and onMonthChange)
  • 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) 2019 Grammatopoulos Athanasios-Vasileios


GramThanos DinoDevs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.