File: examples/examples.js

Recommend this page to a friend!
  Classes of Stefan Gabos   Zebra Date Picker   examples/examples.js   Download  
File: examples/examples.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Zebra Date Picker
jQuery plugin to let the user pick dates
Author: By
Last change: Update of examples/examples.js
Date: 1 year ago
Size: 2,196 bytes
 

Contents

Class file image Download
$(document).ready(function() { $('#datepicker').Zebra_DatePicker(); $('#datepicker-future-tomorrow').Zebra_DatePicker({ direction: 1 }); $('#datepicker-dynamic-interval').Zebra_DatePicker({ direction: [1, 10] }); $('#datepicker-dates-interval').Zebra_DatePicker({ direction: ['2012-08-01', '2012-08-12'] }); $('#datepicker-after-date').Zebra_DatePicker({ direction: ['2012-08-01', false] }); $('#datepicker-disabled-dates').Zebra_DatePicker({ direction: true, disabled_dates: ['* * * 0,6'] }); $('#datepicker-range-start').Zebra_DatePicker({ direction: true, pair: $('#datepicker-range-end') }); $('#datepicker-range-end').Zebra_DatePicker({ direction: 1 }); $('#datepicker-formats').Zebra_DatePicker({ format: 'M d, Y' }); $('#datepicker-time').Zebra_DatePicker({ format: 'Y-m-d H:i' }); $('#datepicker-week-number').Zebra_DatePicker({ show_week_number: 'Wk' }); $('#datepicker-starting-view').Zebra_DatePicker({ view: 'years' }); $('#datepicker-partial-date-formats').Zebra_DatePicker({ format: 'm Y' }); $('#datepicker-custom-classes').Zebra_DatePicker({ disabled_dates: ['* * * 0,6'], custom_classes: { 'myclass': ['* * * 0,6'] } }); $('#datepicker-on-change').Zebra_DatePicker({ onChange: function(view, elements) { if (view === 'days') { elements.each(function() { if ($(this).data('date').match(/\-24$/)) $(this).css({ background: '#C40000', color: '#FFF' }); }); } } }); $('#datepicker-always-visible').Zebra_DatePicker({ always_visible: $('#container') }); $('#datepicker-rtl-support').Zebra_DatePicker({ rtl: true }); $('#datepicker-data-attributes').Zebra_DatePicker(); setTimeout(function() { $.Zebra_Pin($('blockquote.bg-warning')); }, 500); });