Giter VIP home page Giter VIP logo

calendar-js's People

Contributors

bwhitetessi avatar igor-ribeiro avatar timster avatar vana-tur avatar vehmloewff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

calendar-js's Issues

Disable certain days of the week

Hi, awesome lib!

I was wondering is there a way to disable certain days of the week for every week. I'm thinking whether it's a holiday or the business doesn't operate let's say on Tuesday and Thursday, how can I go about disabling those days in this lib?

Thank you in advance

dealing with zero-index vs one-index of month

This may be entirely based on the dataset we're working with, but in my case, one-indexed months seem much more intuitive (as this is what I immediately pass to other spec-compliant services).

ISO-8601 also lists months as one-indexed, (01 - January, 02 - February, ... , 12 - December). Would it be possible to switch to using this system from the zero-indexed format calendarJS is currently using?

Edit: Stupid me, I just realized JavaScript is using zero-indexed months. Guess I'll have to handle this manually then :(

Would be great if there was some other way to deal with this more elegantly.

Is this still maintained/supported?

Love the idea of this project.
I see that this GitHub page says it's currently failing.
But is this still maintained?
If not, do you have suggestions for other projects with the same philosophy?

let's in index.js produces build errors in Vue + Webpack projects.

This is the error that shows up if you do npm run build:

ERROR in static/js/vendor.a6271913414e87e123c2.js from UglifyJs
Unexpected token: name (_months) [./node_modules/calendar-js/index.js:56,0][static/js/vendor.a6271913414e87e123c2.js:90602,6]

Vue + Webpack doesn't like the let's in the index.js of this project (the const's are okay).

I believe the current version of UglifyJS that Webpack has doesn't play well with ES6.

I wonder if you could replace the let's in index.js with var's? That would save my project for this month!

(Some say that this issue with UglifyJS will be solved in Webpack 4.)

Add day start week

Hi, thanks for the work done. Can you add an option for specifying the first day of the week? In many countries, the week begins on Monday and not on a Sunday.

Error when doing unit test with Karma/PhanthomJS

This is the whole log with relevant information:

09 02 2018 14:12:11.407:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
09 02 2018 14:12:11.409:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
09 02 2018 14:12:11.412:INFO [launcher]: Starting browser PhantomJS
09 02 2018 14:12:13.030:INFO [PhantomJS 2.1.1 (Windows 7.0.0)]: Connected on socket S6T46Jv0x9nFm2flAAAA with id 33088078
ERROR LOG: '[Vue warn]: Error in mounted hook: "TypeError: undefined is not a constructor (evaluating 'new Array(length).fill(1)')"

(found in <Root>)'
ERROR LOG: TypeError{line: 11949, sourceURL: 'http://localhost:9876/base/index.js?de3a07e13bdce4abf00010ccfe90a34195d2eaeb', stack: 'createArray@http://localhost:9876/base/index.js?de3a07e13bdce4abf00010ccfe90a34195d2eaeb:11949:32
generateCalendar@http://localhost:9876/base/index.js?de3a07e13bdce4abf00010ccfe90a34195d2eaeb:12066:18

a function to validate date

Hi! First of all thank you for this really easy to use calendar generator. Much much much more flexible rather than having to use other libraries that generate markup for me.

It would, however, be great if there was a function to validate whether a given date is valid (say, if I input Feb 29, 2017, it should return false).

Would this feature be in your roadmap? Thanks!

Awesome stuff!

Hey man, just wanted to say kudos for building this thing. I had somewhat similar requirements as you and would've tried to build exactly the same thing if you hadn't already done so. Saved me a lot of time. Thanks again. ๐Ÿ‘

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.