Coder Social home page Coder Social logo

calendar's Introduction

Calendar Project
================
Alan Chandler <[email protected]>

This project is a Javascript Calendar, using the "mootools" javascript framework.  The overall
package contains two classes

- Calendar.Single which provides a single calendar selection, and
- Calendar.Multiple which provides for a number of calendars which can have constraints on the gap between them

This README and other associated documentation is in need of an update.  The original code, and the MANUAL.html file were
copied from another project (see COPYING.txt for information) and the code was partially rewritten to provide the
Calendar.Multiple option and to add selection of times down to the nearest five minutes for use in another project

The key difference from the original is that the Calendar wraps a `<input>` tag of type hidden which contains a time and date
as a Unix Timestamp (ie seconds from 1st Jan 1970), displaying the calendar in the users local time (according to browser settings)
but maintaining the value in the original input field, so when a form is submitted it can be used to update a database.

As the Calender wraps the `<input>` element, it also provides a `<div>` with the result of any changes displayed, along with an icon that can be used to open the calendar (for user selection of a date).

Calendar.Single
--------------- 

The basic call for a single calendar is

-----------------------------
new Calendar.Single(input,options);
-----------------------------

where +input+ is the id of an html `<input>` element and +options+ is a literal object containing additional optional parameters.

Calendar.Multiple
-----------------

This is called so :-

----------------------------
new Calendar.Multiple(inputs,options);
----------------------------

where +inputs+ is an array of `<input>` elements and +options+ is a literal object containing additional optional parameters.


NOTE:  There is a copy of this code inside MBBall which may be more up
to date.  It generally received updates ahead of this version as
entering dates AND times is most important for that applicaton

calendar's People

Contributors

akc42 avatar

Watchers

 avatar James Cloos avatar

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.