GithubHelp home page GithubHelp logo

iomato / jquery-continuous-calendar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from continuouscalendar/jquery-continuous-calendar

0.0 1.0 0.0 8.08 MB

Date picker and range selector with scrollable months instead of paged (the only right way to do it)

Home Page: http://reaktor.github.com/jquery-continuous-calendar/

jquery-continuous-calendar's Introduction

Homepage

Examples

Playground

Unit tests

Latest revision as ZIP file

Change log

wicket-continuous-calendar

Features

  • Date dragging
  • No pagination, continuous month flow
  • Range shifting by dragging
  • Range expand with Shift + Mouse click
  • Display current date
  • Allow disabling of dates
  • Month select
  • Week select
  • Popup support (with current day in calndar icon)
  • Support for different date formats
  • Support for specifying holidays or disabled days
  • Support for setting minimum range

Supported languages

  • English
  • Estonian
  • Finnish
  • Latvian
  • Russian
  • Swedish

Supported browsers

  • IE7 →
  • FireFox
  • Chrome
  • Opera
  • Safari

Getting started

Insert in head

<!-- basic default calendar styles -->
<link rel="stylesheet" href="http://reaktor.github.com/jquery-continuous-calendar/build/jquery.continuous-calendar-latest.css" type="text/css" />

<!-- custom user specified calendar styles -->
<style type="text/css">
    .calendarScrollContent {height: 250px;}
</style>

<!-- required JavaScript files -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript" src="http://reaktor.github.com/jquery-continuous-calendar/build/jquery.continuous-calendar-latest.js"></script>

Insert in body

<!-- range selection is attached to fields with class startDate and endDate -->
<div id="dateRange1">
  <input type="hidden" class="startDate" name="range_start">
  <input type="hidden" class="endDate" name="range_end">
</div>
<script type="text/javascript" language="JavaScript">
  $("#dateRange1").continuousCalendar();
</script>

AMD support

Directory layout:

- index.html
- scripts/
  |- jquery-1.8.2.js
  |- jquery.continuous-calendar/
  |  |- DateFormat.js
  |  |- DateLocale.js
  |  |- DateRange.js
  |  |- DateTime.js
  |  |- _jquery.continuousCalendar.scss
  |  |- jquery.continuousCalendar.js
  |  `- jquery.tinyscrollbar-1.66/
  |     |- _jquery.tinyscrollbar.scss
  |     |- bg-scrollbar-thumb-y.png
  |     |- bg-scrollbar-track-y.png
  |     |- bg-scrollbar-trackend-y.png
  |     `- jquery.tinyscrollbar.js
  |- main.js
  `- require-2.1.1.js

index.html

<!DOCTYPE html>
<html>
  <head>
    <script data-main="scripts/main" src="scripts/require-2.1.1.js"></script>
  </head>
  <body>
    <div id="dateRange1">
      <input type="hidden" class="startDate" name="range_start">
      <input type="hidden" class="endDate" name="range_end">
    </div>
  </body>
</html>

main.js

require.config({
  paths: {
    'jquery':               'jquery-1.8.2',
    'jquery.tinyscrollbar': 'jquery.continuous-calendar/jquery.tinyscrollbar-1.66/jquery.tinyscrollbar'
  },
  shim: {
    'jquery.tinyscrollbar': [ 'jquery' ]
  }
})

require(['jquery', 'jquery.continuous-calendar/jquery.continuousCalendar'], function($) {
  $(function() {
    $("#dateRange1").continuousCalendar();
  })
})

Instructions for contributors

  • make a fork
  • code
  • run tests (src/test/*.html)
  • run release.sh (see git tag for previous versions)
  • push —tags
  • make pull request

License

Licensed under the Apache License, Version 2.0 (the “License”); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.

jquery-continuous-calendar's People

Contributors

barona-tapani-haka avatar eeroan avatar jjuutila avatar jvirtanen avatar kainulainen avatar kkainu avatar olecve avatar puustinen avatar pyguy2 avatar raimohanska avatar suva avatar theghostbel avatar tkareine avatar valtsu avatar

Watchers

 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.